mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
USES=java:ant does not imply USES=java:run so we need to add the run arg seperately when we are using USES=java:ant. Not all ports require the the argument so it is better to address the ports individually instead of handling it automatically by implying run for ant. Thanks to vvd for carefully going through this. Reported by: vvd Approved by: portmgr (blanket)
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
PORTNAME= xml-security
|
|
DISTVERSION= 1_5_5
|
|
PORTREVISION= 2
|
|
CATEGORIES= security java
|
|
MASTER_SITES= https://archive.apache.org/dist/santuario/java-library/${DISTVERSION}/
|
|
DISTNAME= ${PORTNAME}-src-${DISTVERSION}
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
|
COMMENT= Java library for XML Signature and Encryption
|
|
WWW= https://santuario.apache.org/javaindex.html
|
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/commons-logging.jar:java/apache-commons-logging \
|
|
${JAVALIBDIR}/xalan.jar:textproc/xalan-j
|
|
RUN_DEPENDS= ${JAVALIBDIR}/commons-logging.jar:java/apache-commons-logging
|
|
|
|
LICENSE= APACHE20
|
|
|
|
USES= cpe java:ant,run zip
|
|
CPE_PRODUCT= xml_security_for_java
|
|
CPE_VENDOR= apache
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
|
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
|
|
ALL_TARGET= jar
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/xmlsec.jar
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
DOCS_ALL_TARGET= javadoc
|
|
|
|
do-install:
|
|
@${ECHO} -n ">> Installing JAR as ${JAVAJARDIR}/xmlsec.jar..."
|
|
@${INSTALL_DATA} ${WRKSRC}/build/xmlsec-${PORTVERSION}.jar \
|
|
${STAGEDIR}/${JAVAJARDIR}/xmlsec.jar
|
|
@${ECHO} " [ DONE ]"
|
|
|
|
do-install-DOCS-on:
|
|
@${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
|
|
@(cd ${WRKSRC}/build/docs/html && ${COPYTREE_SHARE} javadoc \
|
|
${STAGEDIR}/${DOCSDIR})
|
|
@${ECHO} " [ DONE ]"
|
|
|
|
do-install-EXAMPLES-on:
|
|
@${ECHO} -n ">> Installing examples in ${EXAMPLESDIR}..."
|
|
@${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
|
|
@(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} "javax org" \
|
|
${STAGEDIR}/${EXAMPLESDIR})
|
|
@${ECHO} " [ DONE ]"
|
|
|
|
.include <bsd.port.mk>
|