diff options
author | William Thomson <wltjr@gentoo.org> | 2006-12-05 00:38:56 +0000 |
---|---|---|
committer | William Thomson <wltjr@gentoo.org> | 2006-12-05 00:38:56 +0000 |
commit | 86e1bfd693e6e800900f0198d1fc02f9ce426510 (patch) | |
tree | 2fe3c4e013842ba919b8995f65207a54b08045e1 /dev-java/datavision/datavision-1.0.0.ebuild | |
parent | Adding -ppc -pp64 to all 5.5 and 6.0 ebuilds due to missing sun.ssl.* stuff i... (diff) | |
download | gentoo-2-86e1bfd693e6e800900f0198d1fc02f9ce426510.tar.gz gentoo-2-86e1bfd693e6e800900f0198d1fc02f9ce426510.tar.bz2 gentoo-2-86e1bfd693e6e800900f0198d1fc02f9ce426510.zip |
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
(Portage version: 2.1.2_rc2-r4)
Diffstat (limited to 'dev-java/datavision/datavision-1.0.0.ebuild')
-rw-r--r-- | dev-java/datavision/datavision-1.0.0.ebuild | 100 |
1 files changed, 100 insertions, 0 deletions
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 +} |