Update java/eclipse-pydev to version 3.5.0_1
[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=   1
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:${PORTSDIR}/java/eclipse
18
19 BUNDLES_INFO=   ${PREFIX}/lib/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 USE_PYTHON=     yes
31 USES=           zip
32
33 .include <bsd.port.options.mk>
34
35 .if ${PORT_OPTIONS:MJYTHON}
36 RUN_DEPENDS+=   jython:${PORTSDIR}/lang/jython
37 .endif
38
39 pre-install:
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; \
45         done
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}
50
51 add-plist-post:
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}
54
55 .include "${PORTSDIR}/java/eclipse/Makefile.plugins"
56
57 .include <bsd.port.mk>