Muhammad Moinur Rahman 0835676e36
Mk/**java.mk: Convert bsd.java.mk to USES
The following features have been added or changed:
- Instead of USE_JAVA use USES=java. This defaults to
  USES=java:build,run if NO_BUILD is undefined. Else it defaults to
  USES=java:run
- Instead of USE_ANT=yes use USES=java:ant which also implies
  USES=java:build
- Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or
  extract
- Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply
  build or run
- Instead of JAVA_RUN=yes use USES=java:run does not imply extract or
  build
- Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version>

Approved by: mat (portmgr), glewis
Differential Revision:  https://reviews.freebsd.org/D48201
2024-12-31 09:57:55 +01:00

37 lines
1.2 KiB
Makefile

PORTNAME= ShellEd
PORTVERSION= 1.0.2a
PORTREVISION= 4
CATEGORIES= java devel
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/1.0.2
PKGNAMEPREFIX= eclipse-
DISTNAME= shelled_${PORTVERSION}
DIST_SUBDIR= eclipse
MAINTAINER= zhoushuqun@gmail.com
COMMENT= Shell script editor for Eclipse
WWW= https://sourceforge.net/projects/shelled/
RUN_DEPENDS= eclipse:java/eclipse
USES= java zip
NO_BUILD= yes
NO_WRKSUBDIR= yes
JAVA_OS= native
do-install:
@${MKDIR} ${WRKSRC}/eclipse
@${MV} ${WRKSRC}/plugins ${WRKSRC}/eclipse/plugins
@${MV} ${WRKSRC}/features ${WRKSRC}/eclipse/features
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/eclipse
@${CP} -r ${WRKSRC}/eclipse/plugins ${STAGEDIR}${PREFIX}/lib/eclipse
@${CP} -r ${WRKSRC}/eclipse/features ${STAGEDIR}${PREFIX}/lib/eclipse
@(cd ${WRKSRC}; ${FIND} -s eclipse/features eclipse/plugins -not -type d) | ${SED} -e 's,^eclipse,lib/eclipse,' >> ${TMPPLIST}
@(cd ${WRKSRC}; ${FIND} -s -d eclipse/features eclipse/plugins -type d -empty) \
| ${GREP} -vE 'eclipse/plugins$$|eclipse/features$$' \
| ${SED} -ne 's,^,@dir lib/,p' >> ${TMPPLIST}
@${MV} ${WRKSRC}/eclipse/plugins ${WRKSRC}/plugins
@${MV} ${WRKSRC}/eclipse/features ${WRKSRC}/features
@${RM} -r ${WRKSRC}/eclipse
.include <bsd.port.mk>