- switch to MODJAVA_BUILD
- don't use a handrolled MODJAVA_{DOC,JAR}_DIR
This commit is contained in:
parent
c01499dbff
commit
e466d0f8cd
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2011/08/30 17:16:36 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2011/09/01 08:06:28 jasper Exp $
|
||||
|
||||
COMMENT= Java port of GNU getopt family functions
|
||||
|
||||
DISTNAME= java-getopt-1.0.13
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
CATEGORIES= devel
|
||||
|
||||
HOMEPAGE= http://www.urbanophile.com/arenn/hacking/download.html
|
||||
@ -20,21 +20,14 @@ WRKDIST= ${WRKDIR}
|
||||
|
||||
MODULES= java
|
||||
MODJAVA_VER= 1.6+
|
||||
|
||||
BUILD_DEPENDS= devel/apache-ant
|
||||
|
||||
JAR_DIR= ${PREFIX}/share/java/classes/
|
||||
DOC_DIR= ${PREFIX}/share/java/getopt/
|
||||
MODJAVA_BUILD= ant
|
||||
|
||||
post-extract:
|
||||
cp ${WRKSRC}/gnu/getopt/buildx.xml ${WRKSRC}/build.xml
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/ant
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${JAR_DIR} ${DOC_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/build/lib/gnu.getopt.jar ${JAR_DIR}
|
||||
cp -r ${WRKSRC}/build/api/* ${DOC_DIR}
|
||||
${INSTALL_DATA_DIR} ${MODJAVA_JAR_DIR} ${MODJAVA_DOC_DIR}/getopt/
|
||||
${INSTALL_DATA} ${WRKSRC}/build/lib/gnu.getopt.jar ${MODJAVA_JAR_DIR}
|
||||
cp -r ${WRKSRC}/build/api/* ${MODJAVA_DOC_DIR}/getopt/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,24 +1,25 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/08/30 07:16:22 jasper Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2011/09/01 08:06:28 jasper Exp $
|
||||
share/java/
|
||||
share/java/classes/
|
||||
share/java/classes/gnu.getopt.jar
|
||||
share/java/getopt/
|
||||
share/java/getopt/allclasses-frame.html
|
||||
share/java/getopt/allclasses-noframe.html
|
||||
share/java/getopt/constant-values.html
|
||||
share/java/getopt/deprecated-list.html
|
||||
share/java/getopt/gnu/
|
||||
share/java/getopt/gnu/getopt/
|
||||
share/java/getopt/gnu/getopt/Getopt.html
|
||||
share/java/getopt/gnu/getopt/LongOpt.html
|
||||
share/java/getopt/gnu/getopt/package-frame.html
|
||||
share/java/getopt/gnu/getopt/package-summary.html
|
||||
share/java/getopt/gnu/getopt/package-tree.html
|
||||
share/java/getopt/help-doc.html
|
||||
share/java/getopt/index-all.html
|
||||
share/java/getopt/index.html
|
||||
share/java/getopt/overview-tree.html
|
||||
share/java/getopt/package-list
|
||||
share/java/getopt/resources/
|
||||
share/java/getopt/resources/inherit.gif
|
||||
share/java/getopt/stylesheet.css
|
||||
share/java/doc/
|
||||
share/java/doc/getopt/
|
||||
share/java/doc/getopt/allclasses-frame.html
|
||||
share/java/doc/getopt/allclasses-noframe.html
|
||||
share/java/doc/getopt/constant-values.html
|
||||
share/java/doc/getopt/deprecated-list.html
|
||||
share/java/doc/getopt/gnu/
|
||||
share/java/doc/getopt/gnu/getopt/
|
||||
share/java/doc/getopt/gnu/getopt/Getopt.html
|
||||
share/java/doc/getopt/gnu/getopt/LongOpt.html
|
||||
share/java/doc/getopt/gnu/getopt/package-frame.html
|
||||
share/java/doc/getopt/gnu/getopt/package-summary.html
|
||||
share/java/doc/getopt/gnu/getopt/package-tree.html
|
||||
share/java/doc/getopt/help-doc.html
|
||||
share/java/doc/getopt/index-all.html
|
||||
share/java/doc/getopt/index.html
|
||||
share/java/doc/getopt/overview-tree.html
|
||||
share/java/doc/getopt/package-list
|
||||
share/java/doc/getopt/resources/
|
||||
share/java/doc/getopt/resources/inherit.gif
|
||||
share/java/doc/getopt/stylesheet.css
|
||||
|
Loading…
Reference in New Issue
Block a user