2001-04-07 06:56:17 +02:00
|
|
|
# New ports collection makefile for: jython
|
|
|
|
# Date created: 3 April 2001
|
|
|
|
# Whom: Hye-Shik Chang <perky@python.or.kr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= jython
|
2002-01-22 12:33:20 +01:00
|
|
|
PORTVERSION= 2.1
|
2003-02-14 05:51:33 +01:00
|
|
|
PORTREVISION= 1
|
2001-04-07 06:56:17 +02:00
|
|
|
CATEGORIES= lang python java
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
|
|
|
|
EXTRACT_SUFX= .class
|
|
|
|
EXTRACT_ONLY= # none
|
|
|
|
|
2002-06-25 09:50:58 +02:00
|
|
|
MAINTAINER= perky@FreeBSD.org
|
2003-02-14 05:51:33 +01:00
|
|
|
COMMENT= An implementation of Python Interpreter in Pure Java
|
2001-04-07 06:56:17 +02:00
|
|
|
|
2002-05-20 17:10:42 +02:00
|
|
|
USE_JAVA= 1.3+
|
2001-04-07 06:56:17 +02:00
|
|
|
NO_BUILD= yes
|
2003-02-14 05:51:33 +01:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
REINPLACE_ARGS= -i ""
|
2001-04-07 06:56:17 +02:00
|
|
|
|
|
|
|
INST_PACKAGES?= demo lib source
|
2001-09-21 07:54:58 +02:00
|
|
|
INST_TARGET?= ${DISTNAME:S/-//g}
|
|
|
|
JYTHON_PREFIX= ${PREFIX}/${INST_TARGET}
|
2001-04-07 06:56:17 +02:00
|
|
|
PLIST_SUB+= JYTHON_DIR=${INST_TARGET}
|
|
|
|
|
2003-02-14 05:51:33 +01:00
|
|
|
CACHEDIR_SPEC= -Dpython.cachedir=${WRKDIR}/jython-cachedir
|
|
|
|
|
2001-04-07 06:56:17 +02:00
|
|
|
do-install:
|
2003-02-14 05:51:33 +01:00
|
|
|
@# Do tons of backflips so that the cachedir is put into the user's home
|
|
|
|
@# directory (it's irritating to not be able to cache stuff if you're
|
|
|
|
@# not root). Furthermore, don't leave a cachedir around from either a
|
|
|
|
@# port install or a package install, but do cache the *.py files in Lib
|
|
|
|
@# during a port install or a package install.
|
|
|
|
cd ${DISTDIR} && ${JAVA} ${CACHEDIR_SPEC} -classpath . ${DISTNAME} \
|
|
|
|
-o ${JYTHON_PREFIX} ${INST_PACKAGES}
|
|
|
|
${REINPLACE_CMD} \
|
|
|
|
's/-cl/"-Dpython.cachedir=$${HOME}\/.jython-cachedir" -cl/g' \
|
|
|
|
${JYTHON_PREFIX}/jython
|
|
|
|
${REINPLACE_CMD} 's/^python\.cachedir/#&/g' ${JYTHON_PREFIX}/registry
|
|
|
|
${JYTHON_PREFIX}/jython ${CACHEDIR_SPEC} -c None
|
2001-04-07 06:56:17 +02:00
|
|
|
|
2003-02-14 05:51:33 +01:00
|
|
|
@# Install symbolic links for convenience.
|
2002-01-22 12:33:20 +01:00
|
|
|
-${LN} -sf ${JYTHON_PREFIX}/jython ${PREFIX}/bin/jython
|
2002-01-28 12:28:22 +01:00
|
|
|
-${LN} -sf ${JYTHON_PREFIX}/jythonc ${PREFIX}/bin/jythonc
|
2002-01-22 12:33:20 +01:00
|
|
|
-${LN} -sf ${JYTHON_PREFIX}/registry ${PREFIX}/etc/jython.reg
|
2001-04-07 06:56:17 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|