Bug 181308 - Update textproc/jakarta-poi to version 3.9
Summary: Update textproc/jakarta-poi to version 3.9
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-14 21:30 UTC by Pedro F. Giffuni
Modified: 2013-11-04 14:30 UTC (History)
0 users

See Also:


Attachments
file.diff (2.63 KB, patch)
2013-08-14 21:30 UTC, Pedro F. Giffuni
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro F. Giffuni 2013-08-14 21:30:03 UTC
jakarata-poi has become apache-poi nowadays.

The old version we supported was not building anymore and updating
this is a pre-requisite for updating the jasperreports port.
Install more components while here.

Fix: After applying the patch I would recommend renaming the directory to apache-poi or perhaps just poi.

Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-08-14 21:30:14 UTC
Maintainer of textproc/jakarta-poi,

Please note that PR ports/181308 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/181308

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-08-14 21:30:15 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Pedro F. Giffuni 2013-08-14 23:39:58 UTC
 I forgot ...

 We should probably add:

 LICENSE= AL2
Comment 4 William Grzybowski freebsd_committer freebsd_triage 2013-11-02 23:14:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-11-04 14:20:48 UTC
Author: wg
Date: Mon Nov  4 14:20:39 2013
New Revision: 332726
URL: http://svnweb.freebsd.org/changeset/ports/332726

Log:
  textproc/apache-poi: update to 3.9
  
  - Update to 3.9
  - Rename it to jakarta-poi
  - Allow staging
  
  PR:		ports/181308
  Submitted by:	Pedro Giffuni <giffunip tutopia.com>
  Approved by:	maintainer (timeout)

Added:
  head/textproc/apache-poi/
     - copied from r332703, head/textproc/jakarta-poi/
Deleted:
  head/textproc/jakarta-poi/
Modified:
  head/MOVED
  head/databases/jasperreports/Makefile
  head/textproc/apache-poi/Makefile
  head/textproc/apache-poi/distinfo
  head/textproc/apache-poi/pkg-descr

Modified: head/MOVED
==============================================================================
--- head/MOVED	Mon Nov  4 14:20:06 2013	(r332725)
+++ head/MOVED	Mon Nov  4 14:20:39 2013	(r332726)
@@ -5164,3 +5164,4 @@ databases/ruby-memcache||2013-11-03|Has 
 deskutils/blogtk||2013-11-03|Has expired: This is dead upstream and is no longer being maintained
 devel/ruby-io-reactor||2013-11-03|Has expired: Does not work with Ruby 1.9
 textproc/p5-Text-Emoticon-MSN||2013-11-03|Has expired: Primary MSN Messenger service terminated 30 APR 2013
+textproc/jakarta-poi|textproc/apache-poi|2013-11-04|Replaced with apache-poi

Modified: head/databases/jasperreports/Makefile
==============================================================================
--- head/databases/jasperreports/Makefile	Mon Nov  4 14:20:06 2013	(r332725)
+++ head/databases/jasperreports/Makefile	Mon Nov  4 14:20:39 2013	(r332726)
@@ -13,7 +13,7 @@ COMMENT=	JasperReports is a powerful ope
 RUN_DEPENDS=	${JAVALIBDIR}/itext.jar:${PORTSDIR}/devel/itext			\
 		${JAVALIBDIR}/xalan.jar:${PORTSDIR}/textproc/xalan-j		\
 		${JAVALIBDIR}/crimson.jar:${PORTSDIR}/textproc/crimson		\
-		${JAVALIBDIR}/poi.jar:${PORTSDIR}/textproc/jakarta-poi		\
+		${JAVALIBDIR}/poi.jar:${PORTSDIR}/textproc/apache-poi		\
 		${JAVALIBDIR}/jfreechart.jar:${PORTSDIR}/java/jfreechart	\
 		${JAVASHAREDIR}/batik/batik.jar:${PORTSDIR}/graphics/batik	\
 		${JAVALIBDIR}/commons-beanutils.jar:${PORTSDIR}/java/jakarta-commons-beanutils\

Modified: head/textproc/apache-poi/Makefile
==============================================================================
--- head/textproc/jakarta-poi/Makefile	Mon Nov  4 12:40:38 2013	(r332703)
+++ head/textproc/apache-poi/Makefile	Mon Nov  4 14:20:39 2013	(r332726)
@@ -2,13 +2,12 @@
 # $FreeBSD$
 
 PORTNAME=	poi
-PORTVERSION=	2.5.1
-PORTREVISION=	2
+PORTVERSION=	3.9
 CATEGORIES=	textproc devel java
-MASTER_SITES=	${MASTER_SITE_APACHE_JAKARTA}
+MASTER_SITES=	${MASTER_SITE_APACHE}
 MASTER_SITE_SUBDIR=	${PORTNAME:S,-,/,}/release/src
-PKGNAMEPREFIX=	jakarta-
-DISTNAME=	${PORTNAME}-src-${PORTVERSION}-final-20040804
+PKGNAMEPREFIX=	apache-
+DISTNAME=	${PORTNAME}-src-${PORTVERSION}-20121203
 
 MAINTAINER=	toha@toha.org.ua
 COMMENT=	Java API To Access Microsoft Format Files
@@ -18,33 +17,35 @@ BUILD_DEPENDS=	${JAVALIBDIR}/xalan.jar:$
 USE_JAVA=	yes
 JAVA_VERSION=	1.6+
 
-NO_WRKSUBDIR=	yes
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
 DSTAMP=		`date +%Y%m%d`
 
 USE_ANT=	yes
+MAKE_ARGS=
 MAKE_ENV+=	ANT_INCLUDE_SHARED_JARS=YES
-.if !defined(NOPORTDOCS)
 PORTDOCS=	*
-.endif
 ALL_TARGET=	jar
-JARFILE=	${PORTNAME}-${PORTVERSION}-final-${DSTAMP}.jar
+JARFILE=	${PORTNAME}-${PORTVERSION}-${DSTAMP}.jar
 DESTJARFILE=	${PORTNAME}.jar
+JARNAMES=	examples excelant scratchpad ooxml ooxml-schemas
 
 PLIST_FILES=	%%JAVAJARDIR%%/${DESTJARFILE}
 
-NO_STAGE=	yes
+.for i in ${JARNAMES}
+PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${i}.jar
+.endfor
+
 do-install:
-	@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
-	@${INSTALL_DATA} ${WRKSRC}/build/dist/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
-	@${ECHO_MSG} " [ DONE ]"
-
-.if !defined(NOPORTDOCS)
-	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
-	@cd ${WRKSRC}/docs/apidocs \
-	  && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
-	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
-	@${ECHO_MSG} " [ DONE ]"
-.endif
+	${INSTALL_DATA} ${WRKSRC}/build/dist/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
+.for i in ${JARNAMES}
+	${INSTALL_DATA} ${WRKSRC}/build/dist/${PORTNAME}-${i}-${PORTVERSION}-${DSTAMP}.jar ${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})
 
 .include <bsd.port.mk>

Modified: head/textproc/apache-poi/distinfo
==============================================================================
--- head/textproc/jakarta-poi/distinfo	Mon Nov  4 12:40:38 2013	(r332703)
+++ head/textproc/apache-poi/distinfo	Mon Nov  4 14:20:39 2013	(r332726)
@@ -1,2 +1,2 @@
-SHA256 (poi-src-2.5.1-final-20040804.tar.gz) = 783c6c36b9762aafd3386adcfbe71ad46aaa14d9fe20545c4a60eb591cfe0cc1
-SIZE (poi-src-2.5.1-final-20040804.tar.gz) = 6870414
+SHA256 (poi-src-3.9-20121203.tar.gz) = 15f948546525a73438ef6544e8ba006813b79a4a7e8529582c99e3926c238ead
+SIZE (poi-src-3.9-20121203.tar.gz) = 48227396

Modified: head/textproc/apache-poi/pkg-descr
==============================================================================
--- head/textproc/jakarta-poi/pkg-descr	Mon Nov  4 12:40:38 2013	(r332703)
+++ head/textproc/apache-poi/pkg-descr	Mon Nov  4 14:20:39 2013	(r332726)
@@ -5,4 +5,4 @@ write Word files using Java. POI is your
 Word Excel solution. However, we have a complete API for porting other OLE 2
 Compound Document formats and welcome others to participate.
 
-WWW: http://jakarta.apache.org/poi/
+WWW: http://poi.apache.org/
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 6 William Grzybowski freebsd_committer freebsd_triage 2013-11-04 14:21:11 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!