aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2014-05-14 03:39:19 +0800
committerolgeni <olgeni@FreeBSD.org>2014-05-14 03:39:19 +0800
commit4d4c6d4d506a4125abedaa7f08fda2e71fcf4da3 (patch)
tree93ae638f937896a5a4da61b5f57e0a4e32a4e0cb
parentfefc528c3c2823150cff225582db538ac258c3cd (diff)
downloadfreebsd-ports-gnome-4d4c6d4d506a4125abedaa7f08fda2e71fcf4da3.tar.gz
freebsd-ports-gnome-4d4c6d4d506a4125abedaa7f08fda2e71fcf4da3.tar.zst
freebsd-ports-gnome-4d4c6d4d506a4125abedaa7f08fda2e71fcf4da3.zip
Add staging support.
-rw-r--r--java/springframework31/Makefile27
1 files changed, 12 insertions, 15 deletions
diff --git a/java/springframework31/Makefile b/java/springframework31/Makefile
index ffa772e5c46b..e90bfd8cfdd4 100644
--- a/java/springframework31/Makefile
+++ b/java/springframework31/Makefile
@@ -50,7 +50,6 @@ JAR_FILES= org.springframework.aop.jar \
PLIST_FILES += %%JAVAJARDIR%%/${f}
.endfor
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRESRCS}
@@ -128,23 +127,21 @@ PORTDOCS= *
.endif
do-install:
+ @${MKDIR} ${STAGEDIR}${JAVAJARDIR}
+ @${MKDIR} ${STAGEDIR}${JAVASHAREDIR}
.for f in ${JAR_FILES}
- @${INSTALL_DATA} ${WRKSRC}/dist/${f:S/.jar/-${PORTVERSION}.RELEASE.jar/} \
- ${JAVAJARDIR}/${f}
+ ${INSTALL_DATA} ${WRKSRC}/dist/${f:S/.jar/-${PORTVERSION}.RELEASE.jar/} \
+ ${STAGEDIR}${JAVAJARDIR}/${f}
.endfor
-.if ${PORT_OPTIONS:MRESRCS}
.for f in ${RESOURCE_FILES}
- @${INSTALL_DATA} `${FIND} "${WRKSRC}" -name ${f} -print` \
- ${JAVASHAREDIR}/${f}
+ ${INSTALL_DATA} `${FIND} "${WRKSRC}" -name ${f} -print | ${TAIL} -1` \
+ ${STAGEDIR}${JAVASHAREDIR}/${f}
.endfor
-.endif
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/changelog.txt ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/license.txt ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/notice.txt ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
- @cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} . ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/changelog.txt ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/notice.txt ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>