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:java/eclipse
19 BUNDLES_INFO= ${PREFIX}/share/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
32 .include <bsd.port.options.mk>
34 .if ${PORT_OPTIONS:MJYTHON}
35 RUN_DEPENDS+= jython:lang/jython
39 @${ECHO_MSG} "===> Creating bundles.info"
40 @PLUGINS=$$(ls -1 ${WRKSRC}/plugins); \
41 for d in $${PLUGINS}; do \
42 (${ECHO_CMD} "$${d},../../${PLUGINDIR}/$${d}/,4,false" | \
43 ${SED} -e 's/_\([0-9]\)/,\1/1' -e '/templates/d') >> ${WRKSRC}/plugins/bundles.info; \
45 @# ignore javashell.py file, because there is a syntax error
46 @# see http://goo.gl/E4epH
47 ${PYTHON_CMD} -m compileall -x javashell.py -f ${WRKSRC}/plugins
48 ${PYTHON_CMD} -O -m compileall -x javashell.py -f ${WRKSRC}
51 ${ECHO_CMD} "@exec ${CAT} ${PYDEV_BUNDLES_INFO} >> ${BUNDLES_INFO}" >> ${TMPPLIST}
52 ${ECHO_CMD} "@unexec ${SED} -i '' -E '/^((org)|(com))\.python\.pydev/d' %D/share/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info" >> ${TMPPLIST}
54 .include "${PORTSDIR}/java/eclipse/Makefile.plugins"
56 .include <bsd.port.mk>