Update java/eclipse-pydev to version 3.5.0_2
[dports.git] / java / eclipse-pydev / Makefile
1 # Created by: Nicola Vitale <nivit@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       pydev
5 PORTVERSION=    3.5.0
6 PORTREVISION=   2
7 CATEGORIES=     java devel python
8 MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/PyDev%20${PORTVERSION}/
9 PKGNAMEPREFIX=  eclipse-
10 DISTNAME=       PyDev%20${PORTVERSION}
11
12 MAINTAINER=     nivit@FreeBSD.org
13 COMMENT=        Eclipse plugin for Python and Jython development
14
15 LICENSE=        EPL
16
17 RUN_DEPENDS=    ${LOCALBASE}/bin/eclipse:java/eclipse
18
19 BUNDLES_INFO=   ${PREFIX}/share/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
20
21 JYTHON_DESC=    Use Jython as Python interpreter
22
23 NO_WRKSUBDIR=   yes
24
25 OPTIONS_DEFINE= JYTHON
26
27 PLUGINDIR=      share/eclipse/dropins/pydev/eclipse/plugins
28 PYDEV_BUNDLES_INFO=     ${PREFIX}/${PLUGINDIR}/bundles.info
29
30 USES=           python:2.7 zip
31
32 .include <bsd.port.options.mk>
33
34 .if ${PORT_OPTIONS:MJYTHON}
35 RUN_DEPENDS+=   jython:lang/jython
36 .endif
37
38 pre-install:
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; \
44         done
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}
49
50 add-plist-post:
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}
53
54 .include "${PORTSDIR}/java/eclipse/Makefile.plugins"
55
56 .include <bsd.port.mk>