head	1.44;
access;
symbols
	RELEASE_8_3_0:1.40
	RELEASE_9_0_0:1.38
	RELEASE_7_4_0:1.34
	RELEASE_8_2_0:1.34
	RELEASE_6_EOL:1.33
	RELEASE_8_1_0:1.33
	RELEASE_7_3_0:1.33
	RELEASE_8_0_0:1.32
	RELEASE_7_2_0:1.32
	RELEASE_7_1_0:1.29
	RELEASE_6_4_0:1.29
	RELEASE_5_EOL:1.27
	RELEASE_7_0_0:1.24
	RELEASE_6_3_0:1.24
	PRE_XORG_7:1.18
	RELEASE_4_EOL:1.15
	RELEASE_6_2_0:1.15
	RELEASE_6_1_0:1.14
	RELEASE_5_5_0:1.14
	RELEASE_6_0_0:1.13
	RELEASE_5_4_0:1.13
	RELEASE_4_11_0:1.13
	RELEASE_5_3_0:1.13
	RELEASE_4_10_0:1.13
	RELEASE_5_2_1:1.13
	RELEASE_5_2_0:1.13
	RELEASE_4_9_0:1.13
	RELEASE_5_1_0:1.13
	RELEASE_4_8_0:1.13
	RELEASE_5_0_0:1.12
	RELEASE_4_7_0:1.10
	RELEASE_4_6_2:1.9
	RELEASE_4_6_1:1.9
	RELEASE_4_6_0:1.9
	RELEASE_5_0_DP1:1.8
	RELEASE_4_5_0:1.6;
locks; strict;
comment	@# @;


1.44
date	2013.03.02.20.13.25;	author svnexp;	state Exp;
branches;
next	1.43;

1.43
date	2013.02.28.01.50.42;	author svnexp;	state Exp;
branches;
next	1.42;

1.42
date	2012.12.10.13.24.59;	author svnexp;	state Exp;
branches;
next	1.41;

1.41
date	2012.11.17.05.58.51;	author svnexp;	state Exp;
branches;
next	1.40;

1.40
date	2012.01.31.08.42.14;	author knu;	state Exp;
branches;
next	1.39;

1.39
date	2012.01.16.03.11.44;	author knu;	state Exp;
branches;
next	1.38;

1.38
date	2011.11.21.08.26.06;	author knu;	state Exp;
branches;
next	1.37;

1.37
date	2011.10.17.06.09.20;	author knu;	state Exp;
branches;
next	1.36;

1.36
date	2011.10.17.06.06.01;	author knu;	state Exp;
branches;
next	1.35;

1.35
date	2011.08.18.05.07.39;	author knu;	state Exp;
branches;
next	1.34;

1.34
date	2010.12.29.21.23.44;	author knu;	state Exp;
branches;
next	1.33;

1.33
date	2009.12.16.10.25.20;	author linimon;	state Exp;
branches;
next	1.32;

1.32
date	2008.12.09.08.02.18;	author nemoliu;	state Exp;
branches;
next	1.31;

1.31
date	2008.12.08.06.43.49;	author linimon;	state Exp;
branches;
next	1.30;

1.30
date	2008.11.18.16.21.08;	author itetcu;	state Exp;
branches;
next	1.29;

1.29
date	2008.09.05.07.11.25;	author nemoliu;	state Exp;
branches;
next	1.28;

1.28
date	2008.06.06.13.41.10;	author edwin;	state Exp;
branches;
next	1.27;

1.27
date	2008.04.23.06.26.05;	author nemoliu;	state Exp;
branches;
next	1.26;

1.26
date	2008.01.24.06.12.21;	author nemoliu;	state Exp;
branches;
next	1.25;

1.25
date	2007.12.26.02.55.53;	author nemoliu;	state Exp;
branches;
next	1.24;

1.24
date	2007.09.06.03.10.33;	author nemoliu;	state Exp;
branches;
next	1.23;

1.23
date	2007.08.21.11.18.13;	author nemoliu;	state Exp;
branches;
next	1.22;

1.22
date	2007.08.21.02.03.27;	author nemoliu;	state Exp;
branches;
next	1.21;

1.21
date	2007.07.25.02.34.31;	author nemoliu;	state Exp;
branches;
next	1.20;

1.20
date	2007.05.22.06.41.01;	author nemoliu;	state Exp;
branches;
next	1.19;

1.19
date	2007.05.19.20.13.41;	author flz;	state Exp;
branches;
next	1.18;

1.18
date	2007.04.30.06.27.41;	author nemoliu;	state Exp;
branches;
next	1.17;

1.17
date	2007.04.29.07.34.05;	author nemoliu;	state Exp;
branches;
next	1.16;

1.16
date	2007.04.25.03.03.50;	author clsung;	state Exp;
branches;
next	1.15;

1.15
date	2006.05.09.20.52.15;	author edwin;	state Exp;
branches;
next	1.14;

1.14
date	2005.11.11.01.17.41;	author linimon;	state Exp;
branches;
next	1.13;

1.13
date	2003.02.18.05.28.14;	author knu;	state Exp;
branches;
next	1.12;

1.12
date	2002.10.29.17.30.58;	author knu;	state Exp;
branches;
next	1.11;

1.11
date	2002.10.08.17.59.57;	author knu;	state Exp;
branches;
next	1.10;

1.10
date	2002.08.13.14.27.57;	author knu;	state Exp;
branches;
next	1.9;

1.9
date	2002.05.15.20.31.11;	author knu;	state Exp;
branches;
next	1.8;

1.8
date	2002.01.29.11.24.08;	author knu;	state Exp;
branches;
next	1.7;

1.7
date	2002.01.26.12.07.04;	author knu;	state Exp;
branches;
next	1.6;

1.6
date	2001.12.26.18.56.18;	author knu;	state Exp;
branches;
next	1.5;

1.5
date	2001.11.15.09.43.55;	author knu;	state Exp;
branches;
next	1.4;

1.4
date	2001.10.21.20.59.45;	author knu;	state Exp;
branches;
next	1.3;

1.3
date	2001.09.29.14.02.57;	author knu;	state Exp;
branches;
next	1.2;

1.2
date	2001.09.23.05.41.25;	author knu;	state Exp;
branches;
next	1.1;

1.1
date	2001.09.20.09.18.26;	author knu;	state Exp;
branches;
next	;


desc
@@


1.44
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313244
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Akinori MUSHA aka knu <knu@@idaemons.org>
# $FreeBSD: head/lang/jruby/Makefile 313244 2013-03-02 14:44:37Z miwi $

PORTNAME=	jruby
PORTVERSION=	1.7.3
CATEGORIES=	lang ruby java
MASTER_SITES=	http://jruby.org.s3.amazonaws.com/downloads/${PORTVERSION}/
DISTNAME=	${PORTNAME}-bin-${PORTVERSION}

MAINTAINER=	ruby@@FreeBSD.org
COMMENT=	An implementation of Ruby Interpreter in Pure Java

RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash

NO_BUILD=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.6+

WRKDIR?=	${WRKDIRPREFIX}${.CURDIR}/work
JRUBY_HOME?=	${PREFIX}/share/${PORTNAME}
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
REPLACE_FILES=	${WRKSRC}/bin/jruby
REPLACE_LIST=	JAVA_HOME=${JAVA_HOME}
REPLACE_LIST_TEMP=	${REPLACE_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}
SHEBANG_FILES=	rake spec spec_translator Rakefile '*.rb'

PLIST_SUB+=	PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} JRUBY_HOME=${JRUBY_HOME:S,${PREFIX}/,,}

.include <bsd.port.pre.mk>

pre-patch:
	@@${ECHO_MSG} "Installation settings:"
	@@${ECHO_MSG} "   JRUBY_HOME:    ${JRUBY_HOME}"
	@@${ECHO_MSG} "   JAVA_HOME:     ${JAVA_HOME}"

post-patch:
	@@${ECHO_MSG} -n ">> Adjusting shebangs to use /usr/bin/env ..."
	@@${FIND} ${WRKSRC}/bin -type f -exec ${GREP} -q '^#!/bin/bash' {} \; -exec ${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/usr/bin/env bash|' {} \;
	@@${FIND} ${WRKSRC} -type f -name '*.rb' -exec ${GREP} -q '^#!/usr/local/bin/ruby' {} \; -exec ${REINPLACE_CMD} -e 's|^#!/usr/local/bin/ruby|#!/usr/bin/env jruby|' {} \;
.for target in ${SHEBANG_FILES}
	@@${FIND} ${WRKSRC} -type f -name ${target} -exec ${GREP} -q '^#!/usr/bin/env ruby' {} \; -exec ${REINPLACE_CMD} -e 's|^#!/usr/bin/env ruby|#!/usr/bin/env jruby|' {} \;
.endfor
	@@${ECHO_MSG} " [ DONE ]"

	@@${ECHO_MSG} -n ">> Removing unneeded files..."
	@@${RM} -f `${FIND} ${WRKSRC} -name '*.bat'` `${FIND} ${WRKSRC} -name '*.orig'` `${FIND} ${WRKSRC} -name '*.exe'` `${FIND} ${WRKSRC} -name '*.bak'`
	@@${ECHO_MSG} " [ DONE ]"

.for target in ${REPLACE_FILES}
	@@${ECHO_MSG} -n ">> Customizing `basename ${target}`..."
	@@${SED} ${REPLACE_LIST_TEMP} ${target} > ${WRKDIR}/`basename ${target}`
	@@${ECHO_MSG} " [ DONE ]"
	@@${MV} ${WRKDIR}/`basename ${target}` ${target}
.endfor

do-install:
	@@${ECHO_MSG} -n ">> Installing JRuby files..."

	@@cd ${WRKSRC}/bin \
	  && ${FIND} . -type d -exec ${MKDIR} ${JRUBY_HOME}/bin/{} \; \
	  && ${FIND} . -type f -exec ${INSTALL_SCRIPT} {} ${JRUBY_HOME}/bin/{} \;
	@@cd ${WRKSRC}/lib \
	  && ${FIND} . -type d -exec ${MKDIR} ${JRUBY_HOME}/lib/{} \; \
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${JRUBY_HOME}/lib/{} \;

	@@${ECHO_MSG} " [ DONE ]"

	@@${ECHO_MSG} -n ">> Installing symlinks in ${PREFIX}/bin..."
	@@${LN} -sf ${JRUBY_HOME}/bin/jruby ${PREFIX}/bin/jruby
	@@${LN} -sf ${JRUBY_HOME}/bin/jirb ${PREFIX}/bin/jirb
	@@${ECHO_MSG} " [ DONE ]"

.if !defined(NOPORTDOCS)
	@@${ECHO_MSG} -n ">> Installing Documents files..."
	@@${MKDIR} ${DOCSDIR}
	@@(cd ${WRKSRC}/ \
	  && ${COPYTREE_SHARE} [A-Z]\* ${DOCSDIR})
	@@(cd ${WRKSRC}/docs \
	  && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
.if !defined(NOPORTEXAMPLES)
	@@${MKDIR} ${EXAMPLESDIR}
	@@(cd ${WRKSRC}/samples \
	  && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
	@@${ECHO_MSG} " [ DONE ]"
.endif

.include <bsd.port.post.mk>
@


1.43
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313074
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/jruby/Makefile 313074 2013-02-28 01:37:15Z swills $
d5 1
a5 1
PORTVERSION=	1.7.1
@


1.42
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308604
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308604 | bapt | 2012-12-10 13:18:28 +0000 (Mon, 10 Dec 2012) | 3 lines
## SVN ##
## SVN ## Decommissioning java 1.5 (EOLed since October 2009):
## SVN ## suppress any reference to JAVA_VERSION=	1.5+ (part2)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/jruby/Makefile 308604 2012-12-10 13:18:28Z bapt $
d5 1
a5 1
PORTVERSION=	1.6.6
a64 3
	@@cd ${WRKSRC}/share \
	  && ${FIND} . -type d -exec ${MKDIR} ${JRUBY_HOME}/share/{} \; \
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${JRUBY_HOME}/share/{} \;
@


1.41
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	JRuby
# Date created:			20 September 2001
# Whom:				Akinori MUSHA aka knu <knu@@idaemons.org>
#
# $FreeBSD: head/lang/jruby/Makefile 300896 2012-07-14 13:54:48Z beat $
#
d17 1
a17 1
JAVA_VERSION=	1.5+
@


1.40
log
@Update to 1.6.6.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.39
log
@Update to 1.6.5.1, a security fix. (CVE-2011-4838)
@
text
@d9 1
a9 1
PORTVERSION=	1.6.5.1
@


1.38
log
@Update to 1.6.5.

Strip off version number part from JRUBY_HOME.

Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	1.6.5
@


1.37
log
@Set MAINTAINER to ruby@@ instead of ports@@.
@
text
@d9 1
a9 1
PORTVERSION=	1.6.4
d24 1
a24 1
JRUBY_HOME?=	${PREFIX}/share/${PORTNAME}-${PORTVERSION}
d31 1
a31 1
PLIST_SUB+=	PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION}
@


1.36
log
@Update to 1.6.4.

PR:		ports/160236
Submitted by:	Bruce Albrecht <bruce@@elite.zuhause.org>
@
text
@d14 1
a14 1
MAINTAINER=	ports@@FreeBSD.org
@


1.35
log
@Update to 1.6.3.
@
text
@d9 1
a9 1
PORTVERSION=	1.6.3
@


1.34
log
@Update to 1.5.6.
@
text
@d9 1
a9 1
PORTVERSION=	1.5.6
@


1.33
log
@Reset nemoliu@@FreeBSD.org due to > 6 months of inactivity and no response
to email.

Hat:		portmgr
@
text
@d9 1
a9 1
PORTVERSION=	1.1.5
d11 1
a11 4
MASTER_SITES=	http://dist.codehaus.org/jruby/ \
		http://repo2.maven.org/maven/jruby/ \
		http://repo1.maven.org/maven/jruby/ \
		http://dist.codehaus.org/jruby/previous/
d21 1
a21 1
JAVA_VERSION=	1.3+
d76 2
a77 2
	@@${LN} -s ${JRUBY_HOME}/bin/jruby ${PREFIX}/bin/jruby
	@@${LN} -s ${JRUBY_HOME}/bin/jirb ${PREFIX}/bin/jirb
@


1.32
log
@- Update to 1.1.5
- Change MASTER_SITES
@
text
@d17 1
a17 1
MAINTAINER=	nemoliu@@FreeBSD.org
@


1.31
log
@Reset nemoliu due to maintainer-timeouts and no response to email.

Hat:	portmgr
@
text
@d9 1
a9 2
PORTVERSION=	1.1.3
PORTREVISION=	2
d17 1
a17 1
MAINTAINER=	ports@@FreeBSD.org
@


1.30
log
@- install PORTEXAMPLES only if ! -DNOPORTEXAMPLES (not -DNOPORTDOCS)
- fix plist for -DNOPORTEXAMPLES and -DNOPORTDOCS
- bump PORTREVISION

Approved by:	maintainer timeout on QAT BotMail
Prompted by:	QAT QA run
@
text
@d18 1
a18 1
MAINTAINER=	nemoliu@@FreeBSD.org
@


1.29
log
@- Update to 1.1.3

PR:		125937
Submitted by:	Geoff The <geoff2k@@gmail.com>
@
text
@d10 1
a10 1
PORTREVISION=	1
d91 2
@


1.28
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@d9 1
a9 1
PORTVERSION=	1.1.1
d28 1
a28 1
JRUBY_HOME?=	${PREFIX}/share/${PORTNAME}
d30 2
a31 4
REPLACE_FILES=	${WRKSRC}/bin/jruby \
		${WRKSRC}/bin/jrubyc
REPLACE_LIST=	JRUBY_HOME=${JRUBY_HOME} \
		JAVA_HOME=${JAVA_HOME}
d33 3
d45 8
d54 1
a54 1
	@@${RM} -f `${FIND} ${WRKSRC} -name '*.bat'` `${FIND} ${WRKSRC} -name '*.orig'` `${FIND} ${WRKSRC} -name '*.exe'`
d56 4
a59 3
.for file in ${REPLACE_FILES}
	@@${ECHO_MSG} -n ">> Customizing `basename ${file}`..."
	@@${SED} ${REPLACE_LIST_TEMP} ${file} > ${WRKDIR}/`basename ${file}`
d61 1
d65 5
a69 3
	@@${ECHO_MSG} -n ">> Installation JRuby files..."
	@@${INSTALL_SCRIPT} ${WRKDIR}/jruby ${PREFIX}/bin/jruby
	@@${INSTALL_SCRIPT} ${WRKDIR}/jrubyc ${PREFIX}/bin/jrubyc
d73 4
d78 6
d85 1
a85 1
	@@${ECHO_MSG} -n ">> Installation Documents files..."
d87 2
@


1.27
log
@- update to 1.1.1

Approved by:	delphij (mentor,implicit)
@
text
@d10 1
@


1.26
log
@- Change MASTER_SITES

Approved by:	delphij(mentor,implicit)
@
text
@d9 1
a9 1
PORTVERSION=	1.0.3
d30 1
a30 3
		${WRKSRC}/bin/jrubyc \
		${WRKSRC}/bin/jrubycli \
		${WRKSRC}/bin/jrubysrv
a55 2
	@@${INSTALL_SCRIPT} ${WRKDIR}/jrubycli ${PREFIX}/bin/jrubycli
	@@${INSTALL_SCRIPT} ${WRKDIR}/jrubysrv ${PREFIX}/bin/jrubysrv
@


1.25
log
@- update to 1.0.3

Approved by:	delphij (mentor,implicit)
@
text
@d12 2
a13 2
		http://repo2.maven.org/maven/jruby/misc/ \
		http://repo1.maven.org/maven/jruby/misc/ \
@


1.24
log
@ - update to 1.0.1

Approved by:	delphij (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	1.0.1
@


1.23
log
@ - add bash to RUN_DEPENDS
 - change bash declare in patch

Approved by:	delphij (mentor)
@
text
@d9 1
a9 2
PORTVERSION=	1.0
PORTREVISION=	1
@


1.22
log
@ - add two sites to MASTER_SITE

Approved by:	delphij (mentor)
@
text
@d21 2
@


1.21
log
@ - update to 1.0

Approved by:	delphij (mentor)
@
text
@d13 2
@


1.20
log
@ - fix mastersite

Approved by:	portmgr (marcus, linimon)
		delphij (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	0.9.9
d27 3
a29 1
		${WRKSRC}/bin/jrubyc
d55 2
@


1.19
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@d12 2
a13 1
MASTER_SITES=	http://dist.codehaus.org/jruby/
@


1.18
log
@Use my @@FreeBSD.org address.

Approved by:	delphij (mentor)
@
text
@d10 1
@


1.17
log
@ - Update to 0.9.9
 - Update pkg-plist
 - Use my FreeBSD.org address

Approved by:	delphij (mentor)
@
text
@d14 1
a14 1
MAINTAINER=	nemoliu@@gmail.com
@


1.16
log
@- Update to 0.9.8
- grab maintainership
- Release log:
* Ruby on Rails support. We have been working hard on getting Rails own unit
  tests running and over 98% of them now run successfully. We feel things are
  running well enough to invite Ruby users to kick the tires and help root out
  any final issues.
* Ruby classes can extend concrete/abstract Java classes and override methods
* New Java primitive array syntax
* Reimplementation of String, Numeric classes, and Array to be more correct
  and performant
* Significant bottlenecks have been identified. In some cases IO is 6.5x
  faster than previous releases. Java included classes are significantly
  faster than in the past.
* 225 Jira issues resolved since last release

PR:		ports/111316
Submitted by:	maintainer (Nemo Liu)
@
text
@d9 1
a9 1
PORTVERSION=	0.9.8
@


1.15
log
@Remove USE_REINPLACE from the categories starting with L
@
text
@d9 1
a9 1
PORTVERSION=	0.5.3
d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
a12 1
DIST_SUBDIR=	ruby
d14 1
a14 1
MAINTAINER=	ports@@FreeBSD.org
a16 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
d18 2
d21 1
d23 13
a35 6

PLIST_SUB=	JRUBY_HOME="${JRUBY_HOME:S,^${PREFIX}/,,}"

post-extract:
	${MV} ${WRKSRC}/README ${WRKSRC}/docs/
	${RM} ${WRKSRC}/lib/COPYING.LIB
d38 8
a45 2
	${REINPLACE_CMD} -e 's,!!JRUBY_HOME!!,${JRUBY_HOME},g' \
		${WRKSRC}/bin/jruby.sh
d48 7
a54 3
	${INSTALL_SCRIPT} ${WRKSRC}/bin/jruby.sh ${PREFIX}/bin/jruby
	${MKDIR} ${JRUBY_HOME}/lib
	${INSTALL_DATA} ${WRKSRC}/lib/* ${JRUBY_HOME}/lib/
d56 8
a63 4
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}/
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}/
a64 1
	${CAT} ${PKGMESSAGE}
d66 1
a66 1
.include <bsd.port.mk>
@


1.14
log
@With portmgr hat on, reset maintainership of knu's ports since he has
been inactive more than 6 months.  We hope to see him back sometime.
@
text
@a18 2
USE_REINPLACE=	yes

@


1.13
log
@De-pkg-comment.
@
text
@d16 1
a16 1
MAINTAINER=	knu@@FreeBSD.org
@


1.12
log
@Update to 0.5.3.
@
text
@d17 1
@


1.11
log
@Update to 0.5.2.

The port does not install source files (for reference) any more.
@
text
@d9 1
a9 1
PORTVERSION=	0.5.2
@


1.10
log
@Update to 0.5.1.

Install source files properly.
@
text
@d9 1
a9 1
PORTVERSION=	0.5.1
d13 1
a13 1
DISTFILES=	${BINDIST}
a14 1
EXTRACT_ONLY=	${BINDIST}
d18 1
a18 2
RUN_DEPENDS=	${JAVA}:${PORTSDIR}/java/javavmwrapper
#RUN_DEPENDS=	${JAVA}:${PORTSDIR}/java/linux-jdk13
d20 2
a21 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:S/./_/g}
d23 1
a23 1
JAVA?=		${LOCALBASE}/bin/javavm
d25 1
a25 8
BINDIST=	${PORTNAME}-${PORTVERSION:S/./_/g}${EXTRACT_SUFX}
SRCDIST=	${PORTNAME}-src-${PORTVERSION:S/./_/g}${EXTRACT_SUFX}

.if !defined(NOPORTDOCS)
DISTFILES+=	${SRCDIST}

FILES=		README samples src
.endif
d28 2
a29 5
.if !defined(NOPORTDOCS)
	${MKDIR} ${WRKSRC}/src
	cd ${WRKSRC}/src; ${TAR} zxf ${DISTDIR}/${DIST_SUBDIR}/${SRCDIST}
.endif
	${FIND} ${WRKSRC} -name '*.swp' -delete
d31 3
a33 5
do-build:
	( \
	${ECHO_CMD} '#!/bin/sh'; \
	${ECHO_CMD} 'exec ${JAVA} -jar ${PREFIX}/share/java/classes/jruby.jar "$$@@"'; \
	) > ${WRKSRC}/jruby
d36 3
a38 9
	${INSTALL_SCRIPT} ${WRKSRC}/jruby ${PREFIX}/bin/
	${MKDIR} ${PREFIX}/share/java/classes
	${INSTALL_DATA} ${WRKSRC}/jruby.jar ${PREFIX}/share/java/classes/
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/java/${PORTNAME}
	cd ${WRKSRC}; ${CP} -R ${FILES} ${PREFIX}/share/java/${PORTNAME}/
.endif

post-install:
d40 4
a43 3
	cd ${WRKSRC}; find ${FILES} -type f | sort | ${SED} 's,^,share/java/${PORTNAME}/,' >> ${TMPPLIST}
	cd ${WRKSRC}; find ${FILES} -type d | sort -r | ${SED} 's,^,@@dirrm share/java/${PORTNAME}/,' >> ${TMPPLIST}
	${ECHO_CMD} '@@dirrm share/java/${PORTNAME}' >> ${TMPPLIST}
d45 1
a45 1
	${ECHO_CMD} '@@unexec ${RMDIR} %D/share/java 2> /dev/null || true' >> ${TMPPLIST}
@


1.9
log
@Update to 0.5.0.
@
text
@d9 1
a9 1
PORTVERSION=	0.5.0
d13 1
a13 1
DISTFILES=	${PORTNAME}-${PORTVERSION:S/./_/g}${EXTRACT_SUFX}
d15 1
d26 3
d30 1
a30 1
DISTFILES+=	${PORTNAME}-src-${PORTVERSION:S/./_/g}${EXTRACT_SUFX}
d32 1
a32 1
FILES=		README samples
d36 4
@


1.8
log
@Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.

Use command macros where appropriate.
@
text
@d9 1
a9 1
PORTVERSION=	0.3.1
d28 1
a28 1
FILES=		README README.test test.rb samples
@


1.7
log
@Update to 0.3.1.
@
text
@d36 2
a37 2
	${ECHO} '#!/bin/sh'; \
	${ECHO} 'exec ${JAVA} -jar ${PREFIX}/share/java/classes/jruby.jar "$$@@"'; \
d53 1
a53 1
	${ECHO} '@@dirrm share/java/${PORTNAME}' >> ${TMPPLIST}
d55 1
a55 1
	${ECHO} '@@unexec ${RMDIR} %D/share/java 2> /dev/null || true' >> ${TMPPLIST}
@


1.6
log
@Update to 0.3.0.
@
text
@d9 1
a9 1
PORTVERSION=	0.3.0
@


1.5
log
@Update to 0.2.1.
@
text
@d9 1
a9 1
PORTVERSION=	0.2.1
d21 1
a21 1
WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/g}
d28 1
a28 1
FILES=		README test.rb samples
d30 3
@


1.4
log
@Update to 0.2.0.
@
text
@d9 1
a9 1
PORTVERSION=	0.2.0
d21 2
a24 2
NO_WRKSUBDIR=	yes

d28 1
a28 1
FILES=		README build.xml jruby.mf org test.rb samples
@


1.3
log
@Update to 0.1.7.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/jruby/Makefile,v 1.2 2001/09/23 05:41:25 knu Exp $
d9 1
a9 1
PORTVERSION=	0.1.7
@


1.2
log
@Update to 0.1.6b.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/jruby/Makefile,v 1.1 2001/09/20 09:18:26 knu Exp $
d9 1
a9 1
PORTVERSION=	0.1.6b
@


1.1
log
@Add jruby, an implementation of Ruby Interpreter in Pure Java.

That it is still in the alpha stage, but it actually works.
@
text
@d5 1
a5 1
# $FreeBSD$
d9 1
a9 1
PORTVERSION=	0.1.5
d14 1
d28 1
a28 1
FILES=		README build.xml jruby.mf org test.rb
@

