1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add staging support

- Convert to new options framework, add EXAMPLES option
This commit is contained in:
Pawel Pekala 2014-05-31 14:53:53 +00:00
parent af5bfb6f25
commit fc37e9702f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355986
2 changed files with 11 additions and 20 deletions

View File

@ -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>

View File

@ -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%%