diff options
author | Herve Quiroz <hq@FreeBSD.org> | 2005-04-05 23:02:27 +0000 |
---|---|---|
committer | Herve Quiroz <hq@FreeBSD.org> | 2005-04-05 23:02:27 +0000 |
commit | 4b7746a7121d35debf4c6a3e20ebd68be83fe837 (patch) | |
tree | 6376713fc60f75415d122b9c615a695298b03fbc /java/netrexx/Makefile | |
parent | - Update to 2.1.2 (diff) |
- Update to 2.05 [1]
- Since NetRexxC.cmd and NetRexxC.sh do same thing, only install .sh version
and remove dependency on rexx-imc (and remove the patch for NetRexxC.cmd) [1]
- Add a patch for NetRexxC.sh so the user is able to override JAVA_HOME at
runtime [1]
- Use FIND | {MKDIR,INSTALL_DATA} to install documentation
- Add $FreeBSD$ tag in pkg-plist
PR: 79564 [1]
Submitted by: Sam Lawrance <boris@brooknet.com.au> [1]
Notes
Notes:
svn path=/head/; revision=132599
Diffstat (limited to '')
-rw-r--r-- | java/netrexx/Makefile | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/java/netrexx/Makefile b/java/netrexx/Makefile index 09cd4e3f1447..7d0cd321326c 100644 --- a/java/netrexx/Makefile +++ b/java/netrexx/Makefile @@ -6,22 +6,20 @@ # PORTNAME= NetRexx -PORTVERSION= 2.02 -PORTREVISION= 3 +PORTVERSION= 2.05 CATEGORIES= java lang -MASTER_SITES= http://www2.hursley.ibm.com/netrexx/ +MASTER_SITES= http://www-306.ibm.com/software/awdtools/netrexx/ DISTNAME= NetRexx MAINTAINER= ports@FreeBSD.org COMMENT= Human-oriented programming language for writing/using Java classes -RUN_DEPENDS= ${LOCALBASE}/bin/rexx:${PORTSDIR}/lang/rexx-imc - -BROKEN= Unfetchable - NO_BUILD= yes USE_ZIP= yes USE_JAVA= yes +USE_REINPLACE= yes + +.include <bsd.port.pre.mk> pre-patch: for file in ${WRKSRC}/bin/NetRexxC.sh ${WRKSRC}/read.me.first; do \ @@ -29,26 +27,26 @@ pre-patch: ${MV} $${file}.new $${file}; \ done +post-patch: + ${REINPLACE_CMD} -e 's,%%JAVA_HOME%%,${JAVA_HOME},' \ + -e 's,%%JAVAJARDIR%%,${JAVAJARDIR},' \ + ${WRKSRC}/bin/NetRexxC.sh + do-install: @${INSTALL_SCRIPT} ${WRKSRC}/bin/NetRexxC.sh ${PREFIX}/bin @${LN} -sf ${PREFIX}/bin/NetRexxC.sh ${PREFIX}/bin/nrc - @${INSTALL_SCRIPT} ${WRKSRC}/bin/NetRexxC.cmd \ - ${PREFIX}/bin/NetRexxC.rexx - @${LN} -sf ${PREFIX}/bin/NetRexxC.rexx ${PREFIX}/bin/nrc.rexx - @${MKDIR} ${PREFIX}/share/java/classes - @${INSTALL_DATA} ${WRKSRC}/lib/NetRexxC.jar ${PREFIX}/share/java/classes - @${INSTALL_DATA} ${WRKSRC}/runlib/NetRexxR.jar ${PREFIX}/share/java/classes + @${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} - @${MKDIR} ${DOCSDIR}/netrexx/lang -.for dir in netrexx/lang . - @${INSTALL_DATA} ${WRKSRC}/browse/${dir}/* ${DOCSDIR}/${dir} - @${RM} -Rf ${WRKSRC}/browse/netrexx -.endfor + @cd ${WRKSRC}/browse && \ + ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; + @cd ${WRKSRC}/browse && \ + ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; .endif post-install: @@ -58,4 +56,4 @@ post-install: @${ECHO} "==================== IMPORTANT!! ====================" @${CAT} ${WRKSRC}/read.me.first -.include <bsd.port.mk> +.include <bsd.port.post.mk> |