aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-09-25 19:23:44 +0800
committermarino <marino@FreeBSD.org>2014-09-25 19:23:44 +0800
commit9caeee9933ac55dd7b015897410e45ea36fdfc51 (patch)
treec2ffd7c6f95e8757f77063d14d1aa2c80a2d1bcd /textproc
parent7af9096bbe75ee527c3a3be7eb11df8ba35917ee (diff)
downloadfreebsd-ports-gnome-9caeee9933ac55dd7b015897410e45ea36fdfc51.tar.gz
freebsd-ports-gnome-9caeee9933ac55dd7b015897410e45ea36fdfc51.tar.zst
freebsd-ports-gnome-9caeee9933ac55dd7b015897410e45ea36fdfc51.zip
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.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/apache-poi/Makefile51
-rw-r--r--textproc/apache-poi/distinfo4
2 files changed, 21 insertions, 34 deletions
diff --git a/textproc/apache-poi/Makefile b/textproc/apache-poi/Makefile
index c7269c4313e8..721d045ab852 100644
--- a/textproc/apache-poi/Makefile
+++ b/textproc/apache-poi/Makefile
@@ -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>
diff --git a/textproc/apache-poi/distinfo b/textproc/apache-poi/distinfo
index 4b33ab562847..3f609f00d199 100644
--- a/textproc/apache-poi/distinfo
+++ b/textproc/apache-poi/distinfo
@@ -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