2001-04-07 04:56:17 +00: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 11:33:20 +00:00
|
|
|
PORTVERSION= 2.1
|
2004-02-04 05:21:48 +00:00
|
|
|
PORTREVISION= 2
|
2001-04-07 04:56:17 +00: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 07:50:58 +00:00
|
|
|
MAINTAINER= perky@FreeBSD.org
|
2003-02-14 04:51:33 +00:00
|
|
|
COMMENT= An implementation of Python Interpreter in Pure Java
|
2001-04-07 04:56:17 +00:00
|
|
|
|
2006-06-03 17:27:43 +00:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.3+
|
2001-04-07 04:56:17 +00:00
|
|
|
NO_BUILD= yes
|
2003-02-14 04:51:33 +00:00
|
|
|
REINPLACE_ARGS= -i ""
|
2001-04-07 04:56:17 +00:00
|
|
|
|
|
|
|
INST_PACKAGES?= demo lib source
|
2001-09-21 05:54:58 +00:00
|
|
|
INST_TARGET?= ${DISTNAME:S/-//g}
|
|
|
|
JYTHON_PREFIX= ${PREFIX}/${INST_TARGET}
|
2001-04-07 04:56:17 +00:00
|
|
|
PLIST_SUB+= JYTHON_DIR=${INST_TARGET}
|
|
|
|
|
2003-02-14 04:51:33 +00:00
|
|
|
CACHEDIR_SPEC= -Dpython.cachedir=${WRKDIR}/jython-cachedir
|
|
|
|
|
2001-04-07 04:56:17 +00:00
|
|
|
do-install:
|
2003-02-14 04:51:33 +00: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 04:56:17 +00:00
|
|
|
|
2003-02-14 04:51:33 +00:00
|
|
|
@# Install symbolic links for convenience.
|
2002-01-22 11:33:20 +00:00
|
|
|
-${LN} -sf ${JYTHON_PREFIX}/jython ${PREFIX}/bin/jython
|
2002-01-28 11:28:22 +00:00
|
|
|
-${LN} -sf ${JYTHON_PREFIX}/jythonc ${PREFIX}/bin/jythonc
|
2002-01-22 11:33:20 +00:00
|
|
|
-${LN} -sf ${JYTHON_PREFIX}/registry ${PREFIX}/etc/jython.reg
|
2001-04-07 04:56:17 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|