1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

- Add LICENSE

- Add NO_ARCH
- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2016-05-10 21:30:47 +00:00
parent c81da4249d
commit b93d640fe2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=414966

View File

@ -11,39 +11,35 @@ DISTNAME= ${PORTNAME}-1.0d11
MAINTAINER= ports@FreeBSD.org
COMMENT= Java-based XInclude processors
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/lgpl.txt
RUN_DEPENDS= ${JAVALIBDIR}/jdom.jar:java/jdom \
${JAVALIBDIR}/xercesImpl.jar:textproc/xerces-j
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
NO_ARCH= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS_DEFINE= DOCS
SUFFIXES= -sax -dom -jdom
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar bin/xincluder ${SUFFIXES:S,^,bin/xincluder,}
PORTDOCS= apidoc index.html
SUB_FILES= xincluder.sh
OPTIONS_DEFINE= DOCS
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing scripts in ${PREFIX}/bin..."
@${ECHO_MSG} -n " xincluder"
${INSTALL_SCRIPT} ${WRKDIR}/xincluder.sh ${STAGEDIR}${PREFIX}/bin/xincluder
.for suffix in ${SUFFIXES}
@${ECHO_MSG} -n " xincluder${suffix}"
${LN} -s xincluder ${STAGEDIR}${PREFIX}/bin/xincluder${suffix}
.endfor
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
cd ${WRKSRC} \
&& ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
&& ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
@${ECHO_MSG} " [ DONE ]"
do-install-DOCS-on:
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>