2013-06-30 07:16:01 +02:00
|
|
|
# Created by: Nicola Vitale <nivit@FreeBSD.org>
|
2008-01-23 11:33:41 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pydev
|
2013-08-28 15:42:57 +02:00
|
|
|
PORTVERSION= 2.8.1
|
2013-06-30 07:16:01 +02:00
|
|
|
PORTREVISION= 0
|
2008-01-23 11:33:41 +01:00
|
|
|
CATEGORIES= java devel python
|
2011-12-13 16:15:50 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/PyDev%20${PORTVERSION}/
|
2008-01-23 11:33:41 +01:00
|
|
|
PKGNAMEPREFIX= eclipse-
|
2011-12-13 16:15:50 +01:00
|
|
|
DISTNAME= PyDev%20${PORTVERSION}
|
2008-01-23 11:33:41 +01:00
|
|
|
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
|
|
COMMENT= Eclipse plugin for Python and Jython development
|
|
|
|
|
2012-07-14 00:30:06 +02:00
|
|
|
LICENSE= EPL
|
2008-01-23 11:33:41 +01:00
|
|
|
|
2012-07-14 00:30:06 +02:00
|
|
|
RUN_DEPENDS= eclipse:${PORTSDIR}/java/eclipse
|
2008-01-23 11:33:41 +01:00
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2012-07-14 00:30:06 +02:00
|
|
|
OPTIONS_DEFINE= JYTHON
|
|
|
|
JYTHON_DESC= Use Jython as Python interpreter
|
|
|
|
|
2013-09-20 21:48:32 +02:00
|
|
|
NO_STAGE= yes
|
2012-07-14 00:30:06 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MJYTHON}
|
|
|
|
RUN_DEPENDS+= jython:${PORTSDIR}/lang/jython
|
|
|
|
.endif
|
2010-05-02 22:58:20 +02:00
|
|
|
|
2012-07-14 00:30:06 +02:00
|
|
|
USE_PYTHON= yes
|
2008-01-23 11:33:41 +01:00
|
|
|
USE_ZIP= yes
|
|
|
|
|
2013-08-28 15:42:57 +02:00
|
|
|
DISTDATE= 2013072611
|
2012-07-14 00:30:06 +02:00
|
|
|
|
2012-07-19 23:43:28 +02:00
|
|
|
SUB_FILES= pkg-install
|
2012-07-21 14:45:13 +02:00
|
|
|
SUB_LIST= BUNDLES_INFO=${BUNDLES_INFO} PLUGINDIR=${PLUGINDIR}
|
2012-07-19 23:43:28 +02:00
|
|
|
|
2012-07-14 00:30:06 +02:00
|
|
|
pre-install:
|
|
|
|
@# ignore javashell.py file, because there is a syntax error
|
|
|
|
@# see http://goo.gl/E4epH
|
|
|
|
${PYTHON_CMD} -m compileall -x javashell.py -f ${WRKSRC}/plugins
|
|
|
|
${PYTHON_CMD} -O -m compileall -x javashell.py -f ${WRKSRC}
|
2008-01-23 11:33:41 +01:00
|
|
|
|
2012-07-21 14:45:13 +02:00
|
|
|
PLUGINDIR= share/eclipse/dropins/pydev/eclipse/plugins
|
2012-07-19 23:43:28 +02:00
|
|
|
BUNDLES_INFO= ${PREFIX}/lib/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
|
2012-07-21 14:45:13 +02:00
|
|
|
|
2008-01-23 11:33:41 +01:00
|
|
|
post-install:
|
2012-07-19 23:43:28 +02:00
|
|
|
@${ECHO_MSG} "===> Updating ${BUNDLES_INFO}"
|
2012-07-21 14:45:13 +02:00
|
|
|
@PLUGINS=$$(ls -1 ${PREFIX}/${PLUGINDIR}); \
|
|
|
|
for d in $${PLUGINS}; do \
|
|
|
|
(${ECHO_CMD} "$${d},../../${PLUGINDIR}/$${d}/,4,false" | \
|
|
|
|
${SED} -e 's/_\([0-9]\)/,\1/1' -e '/templates/d') >> ${BUNDLES_INFO}; \
|
|
|
|
done
|
2012-07-19 23:43:28 +02:00
|
|
|
@(${SORT} ${BUNDLES_INFO} > ${BUNDLES_INFO}.sort) && \
|
|
|
|
${MV} ${BUNDLES_INFO}.sort ${BUNDLES_INFO}
|
2012-07-21 14:45:13 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2008-01-23 11:33:41 +01:00
|
|
|
|
2012-07-14 00:30:06 +02:00
|
|
|
add-plist-post:
|
|
|
|
@${ECHO_CMD} "@exec ${MKDIR} %D/share/eclipse/dropins/${PORTNAME}/eclipse/plugins/com.python.pydev.codecompletion_${PORTVERSION}.${DISTDATE}/icons" >> ${TMPPLIST}
|
2012-07-19 23:43:28 +02:00
|
|
|
@${ECHO_CMD} "@unexec ${SED} -i '' -E '/^((org)|(com))\.python\.pydev/d' %D/lib/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info" >> ${TMPPLIST}
|
2012-07-14 00:30:06 +02:00
|
|
|
|
|
|
|
.include "${PORTSDIR}/java/eclipse/Makefile.plugins"
|
|
|
|
|
2008-01-23 11:33:41 +01:00
|
|
|
.include <bsd.port.mk>
|