mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
748524212d
PR: 38344 Submitted by: maintainer
37 lines
961 B
Makefile
37 lines
961 B
Makefile
# New ports collection makefile for: jython
|
|
# Date created: 3 April 2001
|
|
# Whom: Hye-Shik Chang <perky@python.or.kr>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= jython
|
|
PORTVERSION= 2.1
|
|
CATEGORIES= lang python java
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
|
|
EXTRACT_SUFX= .class
|
|
EXTRACT_ONLY= # none
|
|
|
|
MAINTAINER= perky@fallin.lv
|
|
|
|
USE_JAVA= 1.3+
|
|
NO_BUILD= yes
|
|
|
|
INST_PACKAGES?= demo lib source
|
|
INST_TARGET?= ${DISTNAME:S/-//g}
|
|
JYTHON_PREFIX= ${PREFIX}/${INST_TARGET}
|
|
PLIST_SUB+= JYTHON_DIR=${INST_TARGET}
|
|
|
|
do-install:
|
|
cd ${DISTDIR} && ${JAVA} -classpath . ${DISTNAME} -o ${JYTHON_PREFIX} ${INST_PACKAGES}
|
|
cd ${JYTHON_PREFIX} && ./jython Lib/compileall.py Lib/
|
|
|
|
# symbolic links for convenience
|
|
-${LN} -sf ${JYTHON_PREFIX}/jython ${PREFIX}/bin/jython
|
|
-${LN} -sf ${JYTHON_PREFIX}/jythonc ${PREFIX}/bin/jythonc
|
|
-${LN} -sf ${JYTHON_PREFIX}/registry ${PREFIX}/etc/jython.reg
|
|
|
|
.include <bsd.port.mk>
|