1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Unbreak textproc/apache-poi to save the port from deletion

PR:		193142
1st Proposal:	turutani (kyoto)
2nd Proposal:	pfg@
winner:		vanilla@

In the final iteration, the Maven infrastructure was removed in favor
of a precompiled binary which provides the bonus of a simpler makefile
in additional to being poudriere-compatible.
This commit is contained in:
John Marino 2014-09-25 11:23:44 +00:00
parent 1b3bcb097d
commit eaeb431ebe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=369238
2 changed files with 21 additions and 34 deletions

View File

@ -2,56 +2,43 @@
# $FreeBSD$
PORTNAME= poi
PORTVERSION= 3.9
PORTVERSION= 3.10.1
CATEGORIES= textproc devel java
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/release/src
MASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/release/bin
PKGNAMEPREFIX= apache-
DISTNAME= ${PORTNAME}-src-${PORTVERSION}-20121203
DISTNAME= ${PORTNAME}-bin-${PORTVERSION}-${RELEASE_DATE}
MAINTAINER= ports@FreeBSD.org
COMMENT= Java API To Access Microsoft Format Files
BROKEN= Tries to fetch files during build stage
DEPRECATED= Broken for more than 6 months
EXPIRATION_DATE= 2014-09-28
LICENSE= APACHE20
BUILD_DEPENDS= ${JAVALIBDIR}/xalan.jar:${PORTSDIR}/textproc/xalan-j
PORTDOCS= *
USE_JAVA= yes
JAVA_VERSION= 1.6+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
DSTAMP= `date +%Y%m%d`
USE_ANT= yes
MAKE_ARGS=
MAKE_ENV+= ANT_INCLUDE_SHARED_JARS=YES
PORTDOCS= *
ALL_TARGET= jar
JARFILE= ${PORTNAME}-${PORTVERSION}-${DSTAMP}.jar
DESTJARFILE= ${PORTNAME}.jar
NO_BUILD= yes
RELEASE_DATE= 20140818
JARNAMES= examples excelant scratchpad ooxml ooxml-schemas
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
OPTIONS_DEFINE= DOCS
.for i in ${JARNAMES}
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${i}.jar
PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}-${i}.jar
.endfor
do-install:
${INSTALL_DATA} ${WRKSRC}/build/dist/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
@${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}/build/dist/${PORTNAME}-${i}-${PORTVERSION}-${DSTAMP}.jar ${JAVAJARDIR}/${PORTNAME}-${i}.jar
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${i}-${PORTVERSION}-${RELEASE_DATE}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${i}.jar
.endfor
cd ${WRKSRC}/docs/apidocs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
# Workaround stage and ANT bug
do-build:
@(cd ${BUILD_WRKSRC}; \
${SETENV} ${MAKE_ENV} ${ANT} ${ALL_TARGET})
@${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 <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (poi-src-3.9-20121203.tar.gz) = 15f948546525a73438ef6544e8ba006813b79a4a7e8529582c99e3926c238ead
SIZE (poi-src-3.9-20121203.tar.gz) = 48227396
SHA256 (poi-bin-3.10.1-20140818.tar.gz) = 9b6b7fcb5e90fe128808e5ecee97ab911676fbd419df85f660417e216ca8045c
SIZE (poi-bin-3.10.1-20140818.tar.gz) = 16653077