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
- Drop RUN_DEPENDS on javavmwrapper, pulled in by java port
- Use PORDATA instead of generated plist
- Fix WWW line
This commit is contained in:
Pawel Pekala 2014-06-01 11:49:31 +00:00
parent bf83f6b90f
commit 5df9af412a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356104
2 changed files with 10 additions and 24 deletions

View File

@ -12,42 +12,28 @@ PKGNAMEPREFIX= jakarta-
MAINTAINER= ports@FreeBSD.org
COMMENT= XML based scripting engine
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
READMES= LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
DATAFILES= custom lib bin
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
SUB_FILES= jelly.sh
PLIST_FILES= bin/jelly
PORTDOCS= *
PORTDATA= *
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
post-extract:
${RM} -f ${WRKSRC}/bin/jelly.bat ${WRKSRC}/bin/jelly
do-install:
cd ${WRKSRC} && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} ";"
cd ${WRKSRC} && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} ";"
${INSTALL_SCRIPT} ${WRKDIR}/jelly.sh ${PREFIX}/bin/jelly
.if !defined(NOPORTDOCS)
cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} ";"
cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} ";"
${INSTALL_DATA} ${READMES:S|^|${WRKSRC}/|} ${DOCSDIR}/
.endif
post-install:
@${FIND} -s ${DATAFILES:S,^,${WRKSRC}/,} -not -type d 2>/dev/null | \
${SED} -ne 's,^${WRKSRC},${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
@${FIND} -s -d ${DATAFILES:S,^,${WRKSRC}/,} -type d 2>/dev/null | \
${SED} -ne 's,^${WRKSRC},@dirrm ${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
@${ECHO_CMD} '@dirrm ${DATADIR:S,^${PREFIX}/,,}' >> ${TMPPLIST}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "custom lib bin" \
${STAGEDIR}${DATADIR})
${INSTALL_SCRIPT} ${WRKDIR}/jelly.sh ${STAGEDIR}${PREFIX}/bin/jelly
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
${INSTALL_DATA} ${READMES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -12,4 +12,4 @@ dynamic web site generation. A single Jelly tag can produce, consume, filter or
transform XML events. This leads to a powerful XML pipeline engine similar in
some ways to Cocoon.
WWW: http://jakarta.apache.org/commons/jelly/index.html
WWW: http://jakarta.apache.org/commons/jelly/index.html