diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-12-04 17:55:02 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-12-04 17:55:02 +0000 |
commit | aaaabdd4a9bd95af2aa1d5b5ad1d763170be5ae9 (patch) | |
tree | 10beb8ea88fe296e3bd4d6e766210b0ee677193c /dev-java/datavision | |
parent | Changed HOMEPAGE and closing bug #73354. (Manifest recommit) (diff) | |
download | gentoo-2-aaaabdd4a9bd95af2aa1d5b5ad1d763170be5ae9.tar.gz gentoo-2-aaaabdd4a9bd95af2aa1d5b5ad1d763170be5ae9.tar.bz2 gentoo-2-aaaabdd4a9bd95af2aa1d5b5ad1d763170be5ae9.zip |
Initial import. Fixes #63297. All hail luckyduck.
Diffstat (limited to 'dev-java/datavision')
-rw-r--r-- | dev-java/datavision/ChangeLog | 9 | ||||
-rw-r--r-- | dev-java/datavision/Manifest | 6 | ||||
-rw-r--r-- | dev-java/datavision/datavision-0.8.2.ebuild | 104 | ||||
-rw-r--r-- | dev-java/datavision/files/build.xml | 112 | ||||
-rw-r--r-- | dev-java/datavision/files/datavision.sh | 12 | ||||
-rw-r--r-- | dev-java/datavision/files/digest-datavision-0.8.2 | 1 | ||||
-rw-r--r-- | dev-java/datavision/metadata.xml | 25 |
7 files changed, 269 insertions, 0 deletions
diff --git a/dev-java/datavision/ChangeLog b/dev-java/datavision/ChangeLog new file mode 100644 index 000000000000..7c90129c157a --- /dev/null +++ b/dev-java/datavision/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-java/datavision +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/datavision/ChangeLog,v 1.6 2004/12/04 17:55:01 karltk Exp $ + +*datavision-0.8.2 (04 Dec 2004) + + 04 Dec 2004; Karl Trygve Kalleberg <karltk@gentoo.org> datavision-0.8.2.ebuild: + Initial import. Ebuild submitted by the talented Mr. Jan Brinkmann + <lucky@the-luckyduck.de>. Fixes #63297. diff --git a/dev-java/datavision/Manifest b/dev-java/datavision/Manifest new file mode 100644 index 000000000000..3763aa76499a --- /dev/null +++ b/dev-java/datavision/Manifest @@ -0,0 +1,6 @@ +MD5 c40036ed612728b9af1daf3e5d9dda40 datavision-0.8.2.ebuild 2525 +MD5 1d706602b5be72a1d0f569bd353fc087 ChangeLog 288 +MD5 0637a933ecb6e8cedfc4ddfcf3491728 metadata.xml 310 +MD5 37dd8fb9ad8b62b3cc97e3417a8fde41 files/digest-datavision-0.8.2 69 +MD5 a282952fb231f9f35456cecb32fb45f9 files/datavision.sh 418 +MD5 0c349e98a6dce2623ff69e1be9efcc79 files/build.xml 3172 diff --git a/dev-java/datavision/datavision-0.8.2.ebuild b/dev-java/datavision/datavision-0.8.2.ebuild new file mode 100644 index 000000000000..735ec83aaa6e --- /dev/null +++ b/dev-java/datavision/datavision-0.8.2.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/datavision/datavision-0.8.2.ebuild,v 1.1 2004/12/04 17:55:01 karltk Exp $ + +inherit java-pkg + +DESCRIPTION="Open Source reporting tool similar to Crystal Reports" +SRC_URI="mirror://sourceforge/datavision/${P}.tar.gz" +HOMEPAGE="http://datavision.sourceforge.net/" +IUSE="doc jikes mysql postgres" +SLOT="0.8" +LICENSE="Apache-1.1" +KEYWORDS="~x86" #karltk: missing some deps for ~amd64 ~ppc" +DEPEND=">=virtual/jdk-1.4 + junit?( >=dev-java/junit-3.7 ) + jikes?( >=dev-java/jikes-1.21 )" +RDEPEND=">=virtual/jre-1.4 + >=app-text/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* + mysql? ( >=jdbc-mysql-3.0 ) + postgres? ( >=jdbc2-postgresql-7.3 )" + +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 jcalendar-1.2 + java-pkg_jar-from jruby + + # the new build.xml + cd ${S} + rm build.xml + cp ${FILESDIR}/build.xml . + + # copy the 'new' startup file to ${S} + rm datavision.sh + cp ${FILESDIR}/datavision.sh . + + 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-postgres\`" >> datavision.sh + fi + + echo "\$JAVA -cp \${localclasspath} jimm.datavision.DataVision $*" >> datavision.sh +} + +src_compile() { + local antflags="jar" + if use doc; then + antflags="${antflags} docs" + fi + if use jikes; then + antflags="${antflags} -Dbuild.compiler=jikes" + fi + ant ${antflags} +} + +src_install() { + java-pkg_dojar dist/DataVision.jar + + newbin datavision.sh datavision + + dodoc COPYING ChangeLog Credits INSTALL 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 " " + einfo " " +} diff --git a/dev-java/datavision/files/build.xml b/dev-java/datavision/files/build.xml new file mode 100644 index 000000000000..a6f920a88df5 --- /dev/null +++ b/dev-java/datavision/files/build.xml @@ -0,0 +1,112 @@ +<?xml version="1.0"?> + +<project name="DataVision" default="jar" basedir="."> + <!-- some properties --> + <property name="src.dir" value="." /> + <property name="build.dir" value="build" /> + <property name="test.dir" value="tests" /> + <property name="lib.dir" value="lib" /> + <property name="docs.dir" value="docs" /> + <property name="dist.dir" value="dist" /> + <property name="jarfile" value="${dist.dir}/DataVision.jar" /> + <property name="jarmanifest" value="jimm/Manifest" /> + <property name="properties.dir" value="jimm/properties" /> + <property name="images.dir" value="${build}/toolbarButtonGraphics" /> + <property name="images.sourcedir" value="images" /> + + <!-- properties file for external jars etc --> + <property file="build.properties" /> + + + <!-- classpath --> + <path id="compile.classpath"> + <pathelement path="${lib.dir}/minml2.jar" /> + <pathelement path="${lib.dir}/jcalendar.jar" /> + <pathelement path="${lib.dir}/jruby.jar" /> + <pathelement path="${lib.dir}/gnu-regexp.jar" /> + <pathelement path="${lib.dir}/iText.jar" /> + <pathelement path="${lib.dir}/junit.jar" /> + </path> + + + <!-- init --> + <target name="init"> + <mkdir dir="${dist.dir}" /> + <mkdir dir="${build.dir}" /> + <mkdir dir="${docs.dir}" /> + <mkdir dir="${test.dir}" /> + </target> + + + <!-- Copy image files into build directory --> + <target name="images" depends="init"> + <copy todir="${images.dir}"> + <fileset dir="${images.sourcedir}" /> + </copy> + </target> + + + <!-- Copy properties files into build directory --> + <target name="properties"> + <copy todir="${build.dir}"> + <fileset dir="${properties.dir}" includes="*.properties" /> + </copy> + </target> + + + <!-- compile everything --> + <target name="compile" depends="init, images, properties"> + <mkdir dir="${build.dir}" /> + <javac srcdir="${src.dir}" + destdir="${build.dir}" + includes="jimm/**" + excludes="jimm/datavision/test/**,jimm/datavision/testdata/**" + source="1.4" + target="1.4"> + <classpath refid="compile.classpath" /> + </javac> + </target> + + + <!-- build the jar file --> + <target name="jar" depends="compile"> + <jar jarfile="${jarfile}" basedir="${build.dir}" manifest="${jarmanifest}" /> + </target> + + + <!-- generate javadocs --> + <target name="docs" depends="init"> + <javadoc sourcepath="${src.dir}" + packagenames="jimm.*" + destdir="${docs.dir}" + author="true" + version="true" + use="true" + windowtitle="${ant.project.name} API" /> + </target> + + <!-- Compile and run tests --> + <target name="compile.test" depends="compile"> + <javac srcdir="${src.dir}" destdir="${test.dir}" + includes="jimm/**" + excludes="jimm/datavision/testdata/**" + source="1.4" + target="1.4"> + <classpath refid="compile.classpath" /> + </javac> + </target> + + <!-- test --> + <target name="test" depends="compile.test"> + <java classname="jimm.datavision.test.AllTests" + classpathref="test.run.classpath" /> + </target> + + <!-- clean up --> + <target name="clean"> + <delete dir="${build.dir}" /> + <delete dir="${test.dir}" /> + <delete dir="${docs.dir}" /> + <delete dir="${dist.dir}" /> + </target> +</project> diff --git a/dev-java/datavision/files/datavision.sh b/dev-java/datavision/files/datavision.sh new file mode 100644 index 000000000000..830ab5c9489c --- /dev/null +++ b/dev-java/datavision/files/datavision.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +JAVA=`java-config -J` + +localclasspath=${CLASSPATH} +localclasspath=${localclasspath}:`java-config -p datavision` +localclasspath=${localclasspath}:`java-config -p minml2` +localclasspath=${localclasspath}:`java-config -p jcalendar` +localclasspath=${localclasspath}:`java-config -p jruby` +localclasspath=${localclasspath}:`java-config -p gnu-regexp-1` +localclasspath=${localclasspath}:`java-config -p itext` + diff --git a/dev-java/datavision/files/digest-datavision-0.8.2 b/dev-java/datavision/files/digest-datavision-0.8.2 new file mode 100644 index 000000000000..b381b9642c0d --- /dev/null +++ b/dev-java/datavision/files/digest-datavision-0.8.2 @@ -0,0 +1 @@ +MD5 6f2a324fa131c0f9ced15fc5158d665f datavision-0.8.2.tar.gz 2674981 diff --git a/dev-java/datavision/metadata.xml b/dev-java/datavision/metadata.xml new file mode 100644 index 000000000000..e6dcf7ffbcc8 --- /dev/null +++ b/dev-java/datavision/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> +<herd>java</herd> + +<longdescription> + +DataVision is an Open Source reporting tool similar to Crystal Reports. Reports +can be designed using a drag-and-drop GUI. They may be run, viewed, and printed +from the application or exported as HTML, XML, PDF, LaTeX2e, DocBook, or tab- or +comma-delimited text files. The output files produced by LaTeX2e and DocBook can +in turn be used to produce PDF, text, HTML, PostScript, and more. + +DataVision is written in Java and runs almost anywhere. It can generate reports +from databases or text data files. Any database with an available JDBC driver +should work: Oracle, PostgreSQL, MySQL, Informix, hsqldb, Microsoft Access, +Progress, and more. Columns read from text files can be separated by any +character. + +Report descriptions are stored as XML files. This means you can not only use the +DataVision GUI but you may also edit reports using your favorite text editor. + +</longdescription> +</pkgmetadata> |