1 # Created by: Sutra Zhou <zhoushuqun@gmail.com>
8 MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/1.0.2
9 PKGNAMEPREFIX= eclipse-
10 DISTNAME= shelled_${PORTVERSION}
13 MAINTAINER= zhoushuqun@gmail.com
14 COMMENT= ShellEd is a superb shell script editor for Eclipse
16 RUN_DEPENDS= eclipse:java/eclipse
26 @${MKDIR} ${WRKSRC}/eclipse
27 @${MV} ${WRKSRC}/plugins ${WRKSRC}/eclipse/plugins
28 @${MV} ${WRKSRC}/features ${WRKSRC}/eclipse/features
29 @${MKDIR} ${STAGEDIR}${PREFIX}/lib/eclipse
30 @${CP} -r ${WRKSRC}/eclipse/plugins ${STAGEDIR}${PREFIX}/lib/eclipse
31 @${CP} -r ${WRKSRC}/eclipse/features ${STAGEDIR}${PREFIX}/lib/eclipse
32 @(cd ${WRKSRC}; ${FIND} -s eclipse/features eclipse/plugins -not -type d) | ${SED} -e 's,^eclipse,lib/eclipse,' >> ${TMPPLIST}
33 @(cd ${WRKSRC}; ${FIND} -s -d eclipse/features eclipse/plugins -type d -empty) \
34 | ${GREP} -vE 'eclipse/plugins$$|eclipse/features$$' \
35 | ${SED} -ne 's,^,@dir lib/,p' >> ${TMPPLIST}
36 @${MV} ${WRKSRC}/eclipse/plugins ${WRKSRC}/plugins
37 @${MV} ${WRKSRC}/eclipse/features ${WRKSRC}/features
38 @${RM} -r ${WRKSRC}/eclipse
40 .include <bsd.port.mk>