Bug 181332 - Update databases/jasperreports to version 5.1.2
Summary: Update databases/jasperreports to version 5.1.2
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-15 21:30 UTC by Pedro F. Giffuni
Modified: 2013-11-04 14:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.24 KB, patch)
2013-08-15 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-15 21:30:00 UTC
Bring the latest version of jasperreports.

I would recommend updating the prerequisite apache-poi (ports/181308)

Fix: Patch attached with submission follows:
Comment 1 William Grzybowski freebsd_committer freebsd_triage 2013-11-02 23:15:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2013-11-04 14:34:00 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-11-04 14:34:04 UTC
Author: wg
Date: Mon Nov  4 14:33:56 2013
New Revision: 332732
URL: http://svnweb.freebsd.org/changeset/ports/332732

Log:
  databases/jasperreports: update to 5.1.2
  
  - Update to 5.1.2 [1]
  - Convert to options
  - Allow staging
  
  PR:		ports/181332 [1]
  Submitted by:	Pedro Giffuni <giffunip tutopia.com>

Modified:
  head/databases/jasperreports/Makefile
  head/databases/jasperreports/distinfo

Modified: head/databases/jasperreports/Makefile
==============================================================================
--- head/databases/jasperreports/Makefile	Mon Nov  4 14:29:44 2013	(r332731)
+++ head/databases/jasperreports/Makefile	Mon Nov  4 14:33:56 2013	(r332732)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	jasperreports
-PORTVERSION=	3.7.6
+PORTVERSION=	5.1.2
 CATEGORIES=	databases print java
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/JasperReports%20${PORTVERSION}
 DISTFILES=	${PORTNAME}-${PORTVERSION}.jar ${PORTNAME}-applet-${PORTVERSION}.jar
@@ -19,15 +19,12 @@ RUN_DEPENDS=	${JAVALIBDIR}/itext.jar:${P
 		${JAVALIBDIR}/commons-beanutils.jar:${PORTSDIR}/java/jakarta-commons-beanutils\
 		${JAVALIBDIR}/commons-digester.jar:${PORTSDIR}/textproc/jakarta-commons-digester
 
-.if !defined(WITHOUT_MYSQL)
-RUN_DEPENDS+=	${JAVALIBDIR}/mysql-connector-java.jar:${PORTSDIR}/databases/mysql-connector-java
-.else
-RUN_DEPENDS+=	${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j
-.endif
+OPTIONS_DEFINE=	MYSQL PGSQL ORACLE8 ORACLE9 HSQLDB
+OPTIONS_DEFAULT=MYSQL PGSQL
 
-.if !defined(WITHOUT_PGSQL)
-RUN_DEPENDS+=	${JAVALIBDIR}/postgresql.jar:${PORTSDIR}/databases/postgresql-jdbc
-.endif
+ORACLE8_DESC=	Install libraries required for Oracle 8
+ORACLE9_DESC=	Install libraries required for Oracle 9
+HSQLDB_DESC=	Install libraries required for HSQLDB
 
 USE_JAVA=	yes
 JAVA_VERSION=	1.6+
@@ -40,50 +37,33 @@ LICENSE=	LGPL3
 
 PLIST_FILES=	${DISTFILES:S|^|%%JAVAJARDIR%%/|:S|-${PORTVERSION}||}
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if exists(${JAVALIBDIR}/classes12.zip)
-WITH_ORACLE8=	yes
+.if ${PORT_OPTIONS:MMYSQL}
+RUN_DEPENDS+=	${JAVALIBDIR}/mysql-connector-java.jar:${PORTSDIR}/databases/mysql-connector-java
+.else
+RUN_DEPENDS+=	${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j
+.endif
+
+.if ${PORT_OPTIONS:MPGSQL}
+RUN_DEPENDS+=	${JAVALIBDIR}/postgresql.jar:${PORTSDIR}/databases/postgresql-jdbc
 .endif
-.if defined(WITH_ORACLE8)
+
+
+.if ${PORT_OPTIONS:MORACLE8}
+WITH_ORACLE8=	yes
 RUN_DEPENDS+=	${JAVALIBDIR}/classes12.zip:${PORTSDIR}/databases/jdbc-oracle8i
 .endif
 
-.if exists(${JAVALIBDIR}/ojdbc14.jar)
+.if ${PORT_OPTIONS:MORACLE9}
 WITH_ORACLE9=	yes
-.endif
-.if defined(WITH_ORACLE9)
 RUN_DEPENDS+=	${JAVALIBDIR}/ojdbc14.jar:${PORTSDIR}/databases/jdbc-oracle9i
 .endif
 
-.if exists(${JAVALIBDIR}/hsqldb.jar)
-WITH_HSQLDB=	yes
-.endif
-.if defined(WITH_HSQLDB)
+.if ${PORT_OPTIONS:MHSQLDB}
 RUN_DEPENDS+=	${JAVALIBDIR}/hsqldb.jar:${PORTSDIR}/databases/hsqldb
 .endif
 
-pre-everything::
-	@${ECHO_MSG} '*********************************************************'
-	@${ECHO_MSG} '* You need at least one JDBC driver.                    *'
-.if !defined(WITHOUT_MYSQL)
-	@${ECHO_MSG} '* Define WITHOUT_MYSQL to remove MySQL support.         *'
-.endif
-.if !defined(WITHOUT_PGSQL)
-	@${ECHO_MSG} '* Define WITHOUT_PGSQL to remove PostgreSQL support.    *'
-.endif
-.if !defined(WITH_ORACLE8)
-	@${ECHO_MSG} '* Define WITH_ORACLE8 to add Oracle 8i support.         *'
-.endif
-.if !defined(WITH_ORACLE9)
-	@${ECHO_MSG} '* Define WITH_ORACLE9 to add Oracle 9i support.         *'
-.endif
-.if !defined(WITH_HSQLDB)
-	@${ECHO_MSG} '* Define WITH_HSQLDB to add HSQLDB support.            *'
-.endif
-	@${ECHO_MSG} '*********************************************************'
-
 post-extract:
 .for jf in ${DISTFILES}
 	${MV} ${WRKDIR}/${jf} ${WRKDIR}/${jf:S|-${PORTVERSION}||}
@@ -91,6 +71,6 @@ post-extract:
 
 do-install:
 	${INSTALL_DATA} ${DISTFILES:S|^|${WRKDIR}/|:S|-${PORTVERSION}||}	\
-		${JAVAJARDIR}
+		${STAGEDIR}${JAVAJARDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/databases/jasperreports/distinfo
==============================================================================
--- head/databases/jasperreports/distinfo	Mon Nov  4 14:29:44 2013	(r332731)
+++ head/databases/jasperreports/distinfo	Mon Nov  4 14:33:56 2013	(r332732)
@@ -1,4 +1,4 @@
-SHA256 (jasperreports-3.7.6.jar) = fc8b919452c367eecb62c9649d4a58be598fd8a7c42e6943be61e2ebf16416f5
-SIZE (jasperreports-3.7.6.jar) = 3015437
-SHA256 (jasperreports-applet-3.7.6.jar) = a8e49cdb349a4ad6b50df341f969920b9f565d12ae9e9972c92406736a948479
-SIZE (jasperreports-applet-3.7.6.jar) = 440490
+SHA256 (jasperreports-5.1.2.jar) = fd349ecd5e21547491e865042ac3277de1e550c3b6946c2d87d71a125d87477e
+SIZE (jasperreports-5.1.2.jar) = 4530683
+SHA256 (jasperreports-applet-5.1.2.jar) = e31dc3ce36a37ef9692394030cf8f4831aba363c780cf30f3232f3f6046ae954
+SIZE (jasperreports-applet-5.1.2.jar) = 513918
_______________________________________________
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"