From 2b37a6c50d6d7934b68276412fd7ce2d8506e95f Mon Sep 17 00:00:00 2001 From: William Thomson Date: Tue, 5 Dec 2006 00:38:56 +0000 Subject: [PATCH] Revision bumped package, migrated to gen 2 in the process. Still needs extensive USE flag conditional testing. Just tested base package with no USE flags set. Just trying to update a stale package, and address Bug # 129878 Package-Manager: portage-2.1.2_rc2-r4 --- dev-java/datavision/ChangeLog | 10 +- dev-java/datavision/Manifest | 20 +++- dev-java/datavision/datavision-1.0.0.ebuild | 100 ++++++++++++++++++ dev-java/datavision/files/datavision-sh.patch | 20 ++++ .../datavision/files/digest-datavision-1.0.0 | 3 + 5 files changed, 148 insertions(+), 5 deletions(-) create mode 100644 dev-java/datavision/datavision-1.0.0.ebuild create mode 100644 dev-java/datavision/files/datavision-sh.patch create mode 100644 dev-java/datavision/files/digest-datavision-1.0.0 diff --git a/dev-java/datavision/ChangeLog b/dev-java/datavision/ChangeLog index df7d0979a75f..5e39e6842222 100644 --- a/dev-java/datavision/ChangeLog +++ b/dev-java/datavision/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-java/datavision # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/datavision/ChangeLog,v 1.11 2006/09/28 02:28:12 nichoj Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/datavision/ChangeLog,v 1.12 2006/12/05 00:38:56 wltjr Exp $ + +*datavision-1.0.0 (05 Dec 2006) + + 05 Dec 2006; William L. Thomson Jr. + +files/datavision-sh.patch, +datavision-1.0.0.ebuild: + Revision bumped package, migrated to gen 2 in the process. Still needs + extensive USE flag conditional testing. Just tested base package with no USE + flags set. Just trying to update a stale package, and address Bug # 129878 28 Sep 2006; Joshua Nichols datavision-0.8.2.ebuild: Marked ~amd64 for bug #146146. diff --git a/dev-java/datavision/Manifest b/dev-java/datavision/Manifest index ae43e6625832..1080cbd2a321 100644 --- a/dev-java/datavision/Manifest +++ b/dev-java/datavision/Manifest @@ -2,19 +2,28 @@ AUX build.xml 3172 RMD160 33a3a44dc03195f5eefaacc9d96a03f2bd4b2ad8 SHA1 9b9bd78b MD5 0c349e98a6dce2623ff69e1be9efcc79 files/build.xml 3172 RMD160 33a3a44dc03195f5eefaacc9d96a03f2bd4b2ad8 files/build.xml 3172 SHA256 ada3f45f7d65bf575ebccafe046c966b5f1f5e9ce92c22d213da53119dc6f734 files/build.xml 3172 +AUX datavision-sh.patch 863 RMD160 f303c52bc11bd2356cf36b293eb07fe00405d1ae SHA1 ab66466c8bdd15770af967b572fc9d50ee9e111a SHA256 b78c561012f5a93c56f96d2bb4934bdc524192ecb228e5b3e863d0d792405e1d +MD5 239765402a3281d37fe37eaaf5428307 files/datavision-sh.patch 863 +RMD160 f303c52bc11bd2356cf36b293eb07fe00405d1ae files/datavision-sh.patch 863 +SHA256 b78c561012f5a93c56f96d2bb4934bdc524192ecb228e5b3e863d0d792405e1d files/datavision-sh.patch 863 AUX datavision.sh 418 RMD160 157e3afd12294de71e394036bda189053b95798f SHA1 09bf5f914d19400478638d1f3f889537ea5f5a94 SHA256 3b325516501fc2ec4047710197f5b89cc65ba47f6b41a2f446280c661c5ab3a7 MD5 a282952fb231f9f35456cecb32fb45f9 files/datavision.sh 418 RMD160 157e3afd12294de71e394036bda189053b95798f files/datavision.sh 418 SHA256 3b325516501fc2ec4047710197f5b89cc65ba47f6b41a2f446280c661c5ab3a7 files/datavision.sh 418 DIST datavision-0.8.2.tar.gz 2674981 RMD160 bc870305b332da90396af6791bccb7ed6fa20c3c SHA1 770cf43d68d29d7bcbc39f3bb9ee17f57291a208 SHA256 83debc92d21564cdc746d6705b65b38d20f2ff3148ee1f043ccc552b59499eab +DIST datavision-1.0.0.tar.gz 3451018 RMD160 dd960a52252d7220fb2f0e61df33abdf9744de11 SHA1 6fdbf11140bf24ed12cd82c2b0bc8d1b4637f9db SHA256 f4caaaeebdeea0f11303976df626099d951e5602a5c0658c458488e9c617a051 EBUILD datavision-0.8.2.ebuild 2621 RMD160 1b0db8b987dc5f80f8a4aece780ea67ecae7e119 SHA1 0b1ecc94aa9d2bc2d4a229ce715c921db225ba69 SHA256 effd28e397e867338963bd90df817bbdda856a14f23d3fb08095259ff272ebfc MD5 02fa1153e024e77b5bf3971803ac0ed4 datavision-0.8.2.ebuild 2621 RMD160 1b0db8b987dc5f80f8a4aece780ea67ecae7e119 datavision-0.8.2.ebuild 2621 SHA256 effd28e397e867338963bd90df817bbdda856a14f23d3fb08095259ff272ebfc datavision-0.8.2.ebuild 2621 -MISC ChangeLog 878 RMD160 fcf111d32fbc316bb2c41444ca641760cdf3ba9c SHA1 aca24d68d008f136733c607602887d2a281db215 SHA256 689f18d92f4bdfcd7b44e02c74d9f7a5f4ffc6ded7f253b565268eb817928426 -MD5 5c31d51c0405734edbccbb0e8ecccfa3 ChangeLog 878 -RMD160 fcf111d32fbc316bb2c41444ca641760cdf3ba9c ChangeLog 878 -SHA256 689f18d92f4bdfcd7b44e02c74d9f7a5f4ffc6ded7f253b565268eb817928426 ChangeLog 878 +EBUILD datavision-1.0.0.ebuild 2551 RMD160 0f66351b0f27633c24cb92828308165b4f40a5e4 SHA1 dcf615189d38fb5dda25b4ac46a501b669420fe8 SHA256 fe8a9ebc5ca69015745a55f499f2d699b74995db5536cc2318d7a1d87fcd834c +MD5 8f576ad5da0d331fc80ad40cc593b857 datavision-1.0.0.ebuild 2551 +RMD160 0f66351b0f27633c24cb92828308165b4f40a5e4 datavision-1.0.0.ebuild 2551 +SHA256 fe8a9ebc5ca69015745a55f499f2d699b74995db5536cc2318d7a1d87fcd834c datavision-1.0.0.ebuild 2551 +MISC ChangeLog 1253 RMD160 fad15ace63bd811deb5c40fdfe4f5a867e0cc8c4 SHA1 29020637da5f44bf2d9d42ddb034df3ec98a0f68 SHA256 f56af1b0745bbde1b9677633ba6740eb3e669d7c73f453e4eee2d3875ce6bd3e +MD5 1ebc34247526a3ffb719e5681562467e ChangeLog 1253 +RMD160 fad15ace63bd811deb5c40fdfe4f5a867e0cc8c4 ChangeLog 1253 +SHA256 f56af1b0745bbde1b9677633ba6740eb3e669d7c73f453e4eee2d3875ce6bd3e ChangeLog 1253 MISC metadata.xml 1074 RMD160 764557d45d43661f82222b43c94e386e3510f664 SHA1 4acc0296d8f16494b0511449870e62910f1475cb SHA256 ce1149adae30e49e31a025f04b85000ab6376a912e1f3f206194d8c6b33dcf55 MD5 5840092606eb4cc78c7f2ab5a1ea6c0b metadata.xml 1074 RMD160 764557d45d43661f82222b43c94e386e3510f664 metadata.xml 1074 @@ -22,3 +31,6 @@ SHA256 ce1149adae30e49e31a025f04b85000ab6376a912e1f3f206194d8c6b33dcf55 metadata MD5 daa3c205b8f879109d078a1d79476868 files/digest-datavision-0.8.2 253 RMD160 aeea87fef89d3af6ae712e9473a1dd4949071acf files/digest-datavision-0.8.2 253 SHA256 f0d580b5366ab1b7ac06d736c4d836f9e994b3f1873f18988b5b3011914c3183 files/digest-datavision-0.8.2 253 +MD5 80a733fca595b4ce36a4f3934947fbed files/digest-datavision-1.0.0 253 +RMD160 22afa6aed1564d9a2542ed0fe9419df4e616a092 files/digest-datavision-1.0.0 253 +SHA256 c88a28660ed015cd83df3fc3e46f8d2836fcb33e9ef30d1fce145e76535d0c02 files/digest-datavision-1.0.0 253 diff --git a/dev-java/datavision/datavision-1.0.0.ebuild b/dev-java/datavision/datavision-1.0.0.ebuild new file mode 100644 index 000000000000..10311d821ba3 --- /dev/null +++ b/dev-java/datavision/datavision-1.0.0.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/datavision/datavision-1.0.0.ebuild,v 1.1 2006/12/05 00:38:56 wltjr Exp $ + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Open Source reporting tool similar to Crystal Reports" +SRC_URI="mirror://sourceforge/datavision/${P}.tar.gz" +HOMEPAGE="http://datavision.sourceforge.net/" +IUSE="doc junit mysql postgres" +SLOT="1.0" +LICENSE="Apache-1.1" +KEYWORDS="~x86 ~amd64" +RDEPEND=">=virtual/jre-1.4 + >=dev-java/itext-1.02b + >=dev-java/jruby-0.7.0 + =dev-java/gnu-regexp-1.1* + =dev-java/jcalendar-1.2* + =dev-java/minml2-0.3* + =dev-java/bsf-2.3* + dev-lang/ruby + mysql? ( >=dev-java/jdbc-mysql-3.0 ) + postgres? ( >=dev-java/jdbc2-postgresql-7.3 )" +DEPEND=">=virtual/jdk-1.4 + ${RDEPEND} + junit? ( >=dev-java/junit-3.7 )" + +src_unpack() { + unpack ${A} + cd ${S}/lib + + # lets avoid a new packed jar issue :) + rm -f *.jar + + java-pkg_jar-from minml2-0.3 minml2.jar + java-pkg_jar-from gnu-regexp-1 + java-pkg_jar-from itext + java-pkg_jar-from bsf-2.3 + java-pkg_jar-from jcalendar-1.2 + java-pkg_jar-from jruby + + # the new build.xml + cd ${S} +# rm build.xml +# cp ${FILESDIR}/build.xml . + + # patch startup file + epatch ${FILESDIR}/datavision-sh.patch + + if use mysql; then + echo "localclasspath=\${localclasspath}:\`java-config -p jdbc-mysql\`" >> datavision.sh + fi + if use postgres; then + echo "localclasspath=\${localclasspath}:\`java-config -p jdbc2-postgresql-6\`" >> datavision.sh + fi + + echo "\$JAVA -cp \${localclasspath} jimm.datavision.DataVision \$*" >> datavision.sh +} + +src_compile() { + local antflags="jar" + use doc && antflags="${antflags} docs.release" + eant ${antflags} +} + +src_install() { + java-pkg_dojar lib/DataVision.jar + + newbin datavision.sh datavision + + dodoc ChangeLog Credits README TODO + if use doc; then + java-pkg_dohtml docs/DataVision/* + fi +} + +pkg_postinst() { + einfo "CONFIGURATION NOTES" + einfo + einfo "Make sure your CLASSPATH variable is updated via java-config(1)" + einfo "to use your desired JDBC driver." + einfo + einfo "You must then create a database. Run '/usr/bin/${PN}'" + einfo "and fill the connection dialog box with your database details." + + if use mysql; then + einfo + einfo "MySQL example:" + einfo "Driver class name: com.mysql.jdbc.Driver" + einfo "Connection: jdbc:mysql://localhost/database" + fi + + if use postgres; then + einfo + einfo "PostgreSQL example:" + einfo "Driver class name:org.postgresql.Driver" + einfo "Connection: jdbc:postgresql://localhost/database" + fi + einfo +} diff --git a/dev-java/datavision/files/datavision-sh.patch b/dev-java/datavision/files/datavision-sh.patch new file mode 100644 index 000000000000..609720cb266c --- /dev/null +++ b/dev-java/datavision/files/datavision-sh.patch @@ -0,0 +1,20 @@ +--- datavision.sh 2005-11-08 08:01:37.000000000 -0500 ++++ /wlt/gentoo/gentoo-x86/dev-java/datavision/files/datavision.sh 2006-12-04 19:09:32.000000000 -0500 +@@ -1,6 +1,13 @@ +-#! /bin/sh ++#!/bin/bash + +-classpath="$CLASSPATH":lib/DataVision.jar:lib/jcalendar.jar:lib/jruby.jar:lib/iText.jar:lib/bsf.jar ++JAVA=`java-config -J` ++ ++localclasspath=${CLASSPATH} ++localclasspath=${localclasspath}:`java-config -p datavision-1.0` ++localclasspath=${localclasspath}:`java-config -p minml2-0.3` ++localclasspath=${localclasspath}:`java-config -p jcalendar-1.2` ++localclasspath=${localclasspath}:`java-config -p jruby` ++localclasspath=${localclasspath}:`java-config -p bsf-2.3` ++localclasspath=${localclasspath}:`java-config -p gnu-regexp-1` ++localclasspath=${localclasspath}:`java-config -p itext` + +-cd `dirname $0` +-java -classpath $classpath jimm.datavision.DataVision $* diff --git a/dev-java/datavision/files/digest-datavision-1.0.0 b/dev-java/datavision/files/digest-datavision-1.0.0 new file mode 100644 index 000000000000..f97d06a92710 --- /dev/null +++ b/dev-java/datavision/files/digest-datavision-1.0.0 @@ -0,0 +1,3 @@ +MD5 82017d881828b2342cd4f1552a25a77a datavision-1.0.0.tar.gz 3451018 +RMD160 dd960a52252d7220fb2f0e61df33abdf9744de11 datavision-1.0.0.tar.gz 3451018 +SHA256 f4caaaeebdeea0f11303976df626099d951e5602a5c0658c458488e9c617a051 datavision-1.0.0.tar.gz 3451018 -- 2.26.2