aboutsummaryrefslogtreecommitdiffstats
path: root/java/cos
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-02-16 20:30:16 +0800
committerantoine <antoine@FreeBSD.org>2014-02-16 20:30:16 +0800
commit138eca51025e400cd483f4e284f6288a8354ea7d (patch)
treeed901f6138be8b2e8f47864021087fa35862333e /java/cos
parent6dbc30d374cb5b1d1c855cb9b54ea8fa405e75b1 (diff)
downloadfreebsd-ports-gnome-138eca51025e400cd483f4e284f6288a8354ea7d.tar.gz
freebsd-ports-gnome-138eca51025e400cd483f4e284f6288a8354ea7d.tar.zst
freebsd-ports-gnome-138eca51025e400cd483f4e284f6288a8354ea7d.zip
- Stage support
- Remove infozip dependency
Diffstat (limited to 'java/cos')
-rw-r--r--java/cos/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/java/cos/Makefile b/java/cos/Makefile
index e7cf8b4dd640..7bac5e3d712f 100644
--- a/java/cos/Makefile
+++ b/java/cos/Makefile
@@ -9,11 +9,11 @@ CATEGORIES= java devel
MASTER_SITES= http://www.servlets.com/cos/ \
http://www.oreilly.com.tw/bookcode/
DISTNAME= ${PORTNAME}-05Nov2002
+EXTRACT_SUFX= .zip
MAINTAINER= java@FreeBSD.org
-COMMENT= The O\'Reilly package of utility classes for servlet developers
+COMMENT= The O'Reilly package of utility classes for servlet developers
-USE_ZIP= yes
NO_WRKSUBDIR= yes
USE_JAVA= yes
NO_BUILD= yes
@@ -21,12 +21,9 @@ RESTRICTED= Special conditions apply for commercial use, see licence
DATAFILES= readme.txt license.txt doc
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
-NO_STAGE= yes
do-install:
- @${INSTALL_DATA} ${WRKSRC}/lib/cos.jar ${JAVAJARDIR}/
- @cd ${WRKSRC} \
- && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \; \
- && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
- @${INSTALL_DATA} ${WRKSRC}/upload.war ${DATADIR}/doc
+ @${INSTALL_DATA} ${WRKSRC}/lib/cos.jar ${STAGEDIR}${JAVAJARDIR}
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATAFILES}" ${STAGEDIR}${DATADIR}
+ @${INSTALL_DATA} ${WRKSRC}/upload.war ${STAGEDIR}${DATADIR}/doc
.include <bsd.port.mk>