1 # Created by: Nicola Vitale <nivit@FreeBSD.org>
7 CATEGORIES= java devel python
8 MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/PyDev%20${PORTVERSION}/
9 PKGNAMEPREFIX= eclipse-
10 DISTNAME= PyDev%20${PORTVERSION}
12 MAINTAINER= nivit@FreeBSD.org
13 COMMENT= Eclipse plugin for Python and Jython development
17 RUN_DEPENDS= ${LOCALBASE}/bin/eclipse:${PORTSDIR}/java/eclipse
19 BUNDLES_INFO= ${PREFIX}/lib/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
21 JYTHON_DESC= Use Jython as Python interpreter
25 OPTIONS_DEFINE= JYTHON
27 PLUGINDIR= share/eclipse/dropins/pydev/eclipse/plugins
28 PYDEV_BUNDLES_INFO= ${PREFIX}/${PLUGINDIR}/bundles.info
33 .include <bsd.port.options.mk>
35 .if ${PORT_OPTIONS:MJYTHON}
36 RUN_DEPENDS+= jython:${PORTSDIR}/lang/jython
40 @${ECHO_MSG} "===> Creating bundles.info"
41 @PLUGINS=$$(ls -1 ${WRKDIR}/plugins); \
42 for d in $${PLUGINS}; do \
43 (${ECHO_CMD} "$${d},../../${PLUGINDIR}/$${d}/,4,false" | \
44 ${SED} -e 's/_\([0-9]\)/,\1/1' -e '/templates/d') >> ${WRKDIR}/plugins/bundles.info; \
46 @# ignore javashell.py file, because there is a syntax error
47 @# see http://goo.gl/E4epH
48 ${PYTHON_CMD} -m compileall -x javashell.py -f ${WRKSRC}/plugins
49 ${PYTHON_CMD} -O -m compileall -x javashell.py -f ${WRKSRC}
52 @${ECHO_CMD} "@exec ${CAT} ${PYDEV_BUNDLES_INFO} >> ${BUNDLES_INFO}" >> ${TMPPLIST}
53 @${ECHO_CMD} "@unexec ${SED} -i '' -E '/^((org)|(com))\.python\.pydev/d' %D/lib/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info" >> ${TMPPLIST}
55 .include "${PORTSDIR}/java/eclipse/Makefile.plugins"
57 .include <bsd.port.mk>