diff options
author | hq <hq@FreeBSD.org> | 2005-07-29 20:36:08 +0800 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2005-07-29 20:36:08 +0800 |
commit | e96a4e7c81c299c7f953f3eaca0c5b5147df2108 (patch) | |
tree | afa3d6d4fb1ca1c36bb00e0b90fd50d3a50f9488 /java | |
parent | 28d8d48f3bcaac0324456828da43854d1370fbaa (diff) | |
download | freebsd-ports-gnome-e96a4e7c81c299c7f953f3eaca0c5b5147df2108.tar.gz freebsd-ports-gnome-e96a4e7c81c299c7f953f3eaca0c5b5147df2108.tar.zst freebsd-ports-gnome-e96a4e7c81c299c7f953f3eaca0c5b5147df2108.zip |
- Don't mkdir ${JAVAJARDIR} (already in mtree)
- Use %%JAVAJARDIR%%
- Use FIND | INSTALL_DATA rather than CP
Diffstat (limited to 'java')
-rw-r--r-- | java/jakarta-commons-discovery/Makefile | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/java/jakarta-commons-discovery/Makefile b/java/jakarta-commons-discovery/Makefile index cb57e0a0bf75..12f206a2c7ed 100644 --- a/java/jakarta-commons-discovery/Makefile +++ b/java/jakarta-commons-discovery/Makefile @@ -24,24 +24,19 @@ NO_BUILD= YES PORTDOCS= api LICENSE .endif JARFILE= ${PORTNAME}.jar -PLIST_FILES+= ${JAVAJARDIR:S,^${PREFIX}/,,}/${JARFILE} +PLIST_FILES+= %%JAVAJARDIR%%/${JARFILE} post-extract: @${MV} ${WRKSRC}/LICENSE ${WRKSRC}/docs/ do-install: @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..." - @${MKDIR} ${JAVAJARDIR} @${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/ @${ECHO_MSG} " [ DONE ]" .if !defined(NOPORTDOCS) @${ECHO_MSG} -n ">> Installing documentation..." - @${MKDIR} ${DOCSDIR} -.for DOCFILE in ${PORTDOCS} - @${CP} -r ${WRKSRC}/docs/${DOCFILE} ${DOCSDIR}/ - @${ECHO_MSG} -n " ${DOCFILE}" -.endfor - @${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} + @cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; + @cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; @${ECHO_MSG} " [ DONE ]" .endif |