1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/lang/jruby/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: JRuby
# Date created: 20 September 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= jruby
2002-10-29 17:30:58 +00:00
PORTVERSION= 0.5.3
CATEGORIES= lang ruby java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-bin-${PORTVERSION}
2001-09-23 05:41:25 +00:00
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
2003-02-18 05:42:05 +00:00
COMMENT= An implementation of Ruby Interpreter in Pure Java
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
JRUBY_HOME?= ${PREFIX}/share/${PORTNAME}
PLIST_SUB= JRUBY_HOME="${JRUBY_HOME:S,^${PREFIX}/,,}"
2001-12-26 18:56:18 +00:00
post-extract:
${MV} ${WRKSRC}/README ${WRKSRC}/docs/
${RM} ${WRKSRC}/lib/COPYING.LIB
2001-12-26 18:56:18 +00:00
post-patch:
${REINPLACE_CMD} -e 's,!!JRUBY_HOME!!,${JRUBY_HOME},g' \
${WRKSRC}/bin/jruby.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/jruby.sh ${PREFIX}/bin/jruby
${MKDIR} ${JRUBY_HOME}/lib
${INSTALL_DATA} ${WRKSRC}/lib/* ${JRUBY_HOME}/lib/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}/
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}/
.endif
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>