# Created by: Thierry Thomas PORTNAME= xmlbeans PORTVERSION= 3.1.0 # Do not upgrade without checking compatibility with math/R-cran-XLConnect CATEGORIES= textproc java MASTER_SITES= https://archive.apache.org/dist/poi/xmlbeans/release/bin/:xb \ https://repo1.maven.org/maven2/org/apache/poi/ooxml-schemas/${SCHEMAS_VER}/:sch PKGNAMEPREFIX= apache- DISTFILES= ${PORTNAME}-bin-${PORTVERSION}${EXTRACT_SUFX}:xb \ ooxml-schemas-${SCHEMAS_VER}.jar:sch EXTRACT_ONLY= ${PORTNAME}-bin-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= thierry@FreeBSD.org COMMENT= Java classes for XML LICENSE= APACHE20 USES= cpe tar:tgz USE_JAVA= yes JAVA_VERSION= 8+ SCHEMAS_VER= 1.4 CPE_VENDOR= apache WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} NO_BUILD= yes NO_ARCH= yes SUB_FILES= pkg-message OTHERDOCS= LICENSE.txt NOTICE.txt README.txt PORTDOCS= * PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES pre-configure: ${REINPLACE_CMD} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|' \ ${WRKSRC}/bin/_setlib ${SED} -i '' -e 's|xbean.jar|xmlbeans.jar|;s|:$$XMLBEANS_LIB/xmlbeans-qname.jar||;s|:$XMLBEANS_LIB/jsr173_1.0_api.jar||;s|:$XMLBEANS_LIB/resolver.jar||' \ ${WRKSRC}/bin/* do-install: @${MKDIR} ${STAGEDIR}${JAVAJARDIR} \ ${STAGEDIR}${PREFIX}/bin \ ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-${PORTVERSION}.jar \ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar ${INSTALL_DATA} ${DISTDIR}/ooxml-schemas-${SCHEMAS_VER}.jar \ ${STAGEDIR}${JAVAJARDIR}/ooxml-schemas.jar ${FIND} ${WRKSRC}/bin ! -name "*.cmd" -type f -exec \ ${INSTALL_SCRIPT} {} ${STAGEDIR}${PREFIX}/bin \; (cd ${WRKSRC} && ${COPYTREE_SHARE} schemas ${STAGEDIR}${DATADIR}) do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${OTHERDOCS} ${STAGEDIR}${DOCSDIR}) (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include