# Created by: Anton Yudin # $FreeBSD$ PORTNAME= poi PORTVERSION= 3.10.1 CATEGORIES= textproc devel java MASTER_SITES= ${MASTER_SITE_APACHE} MASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/release/bin PKGNAMEPREFIX= apache- DISTNAME= ${PORTNAME}-bin-${PORTVERSION}-${RELEASE_DATE} MAINTAINER= ports@FreeBSD.org COMMENT= Java API To Access Microsoft Format Files LICENSE= APACHE20 PORTDOCS= * USE_JAVA= yes JAVA_VERSION= 1.6+ NO_BUILD= yes RELEASE_DATE= 20140818 JARNAMES= examples excelant scratchpad ooxml ooxml-schemas WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar OPTIONS_DEFINE= DOCS .for i in ${JARNAMES} PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}-${i}.jar .endfor do-install: @${ECHO_MSG} -n ">> Installing JAR as ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${RELEASE_DATE}.jar..." @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}-${RELEASE_DATE}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar .for i in ${JARNAMES} @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${i}-${PORTVERSION}-${RELEASE_DATE}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${i}.jar .endfor @${ECHO_MSG} " [ DONE ]" @${ECHO_MSG} -n ">> Installing documentation in ${STAGEDIR}${DOCSDIR}/..." @cd ${WRKSRC}/docs \ && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \ && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \; @${ECHO_MSG} " [ DONE ]" .include