1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add staging support

- Convert to new options framework
This commit is contained in:
Pawel Pekala 2014-05-31 14:08:39 +00:00
parent 8a5080229f
commit 70e0487f6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355978

View File

@ -18,26 +18,21 @@ NO_BUILD= yes
NO_CDROM= See the license
DOWNLOAD_URL= http://download.oracle.com/otndocs/jcp/7286-jta-${PORTVERSION}-spec-oth-JSpec/?submit=Download
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
PORTDOCS= ${DISTNAME}.pdf javadocs
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= you must manually fetch the distribution from ${DOWNLOAD_URL} and place it in ${DISTDIR} then run make again
.endif
do-install:
@${ECHO_MSG} -n ">> Install JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
@${ECHO_MSG} " [ DONE ]"
.endif
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/${DISTNAME}.pdf ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} javadocs ${STAGEDIR}${DOCSDIR})
.include <bsd.port.post.mk>