aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-05-31 22:53:53 +0800
committerpawel <pawel@FreeBSD.org>2014-05-31 22:53:53 +0800
commit451d9e12fd71c4903aecd310f484607d3af2dab4 (patch)
tree3b4a282b1d15699fbaf9f606d7d0c7883e6e5575 /java
parentf532da5855cc92c5448351ba83aecaa7c96ab711 (diff)
downloadfreebsd-ports-gnome-451d9e12fd71c4903aecd310f484607d3af2dab4.tar.gz
freebsd-ports-gnome-451d9e12fd71c4903aecd310f484607d3af2dab4.tar.zst
freebsd-ports-gnome-451d9e12fd71c4903aecd310f484607d3af2dab4.zip
- Add staging support
- Convert to new options framework, add EXAMPLES option
Diffstat (limited to 'java')
-rw-r--r--java/netrexx/Makefile27
-rw-r--r--java/netrexx/pkg-plist4
2 files changed, 11 insertions, 20 deletions
diff --git a/java/netrexx/Makefile b/java/netrexx/Makefile
index 5b0f827915e5..2aa42e13c231 100644
--- a/java/netrexx/Makefile
+++ b/java/netrexx/Makefile
@@ -15,8 +15,7 @@ NO_BUILD= yes
USES= zip
USE_JAVA= yes
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS EXAMPLES
pre-patch:
for file in ${WRKSRC}/bin/NetRexxC.sh ${WRKSRC}/read.me.first; do \
@@ -30,21 +29,13 @@ post-patch:
${WRKSRC}/bin/NetRexxC.sh
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/bin/NetRexxC.sh ${PREFIX}/bin
- @${LN} -sf ${PREFIX}/bin/NetRexxC.sh ${PREFIX}/bin/nrc
-
- @${INSTALL_DATA} ${WRKSRC}/lib/NetRexxC.jar ${JAVAJARDIR}
- @${INSTALL_DATA} ${WRKSRC}/runlib/NetRexxR.jar ${JAVAJARDIR}
-
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/bin/hello.nrx \
- ${EXAMPLESDIR}
- @cd ${WRKSRC}/browse && \
- ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
- @cd ${WRKSRC}/browse && \
- ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
-.endif
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/NetRexxC.sh ${STAGEDIR}${PREFIX}/bin
+ ${LN} -sf ${PREFIX}/bin/NetRexxC.sh ${STAGEDIR}${PREFIX}/bin/nrc
+ ${INSTALL_DATA} ${WRKSRC}/lib/NetRexxC.jar ${STAGEDIR}${JAVAJARDIR}
+ ${INSTALL_DATA} ${WRKSRC}/runlib/NetRexxR.jar ${STAGEDIR}${JAVAJARDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/bin/hello.nrx ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/browse && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
post-install:
@${ECHO} "==================== IBM LICENSE ===================="
@@ -53,4 +44,4 @@ post-install:
@${ECHO} "==================== IMPORTANT!! ===================="
@${CAT} ${WRKSRC}/read.me.first
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/java/netrexx/pkg-plist b/java/netrexx/pkg-plist
index f37425f778f1..5f154785fc1c 100644
--- a/java/netrexx/pkg-plist
+++ b/java/netrexx/pkg-plist
@@ -129,10 +129,10 @@ bin/nrc
%%PORTDOCS%%%%DOCSDIR%%/ArchText.nrx
%%PORTDOCS%%%%DOCSDIR%%/wordclock.html
%%PORTDOCS%%%%DOCSDIR%%/ArchText.class
-%%PORTDOCS%%%%EXAMPLESDIR%%/hello.nrx
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hello.nrx
%%JAVAJARDIR%%/NetRexxC.jar
%%JAVAJARDIR%%/NetRexxR.jar
%%PORTDOCS%%@dirrm %%DOCSDIR%%/netrexx/lang
%%PORTDOCS%%@dirrm %%DOCSDIR%%/netrexx
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%