diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-12-23 00:05:13 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-12-23 00:05:13 +0000 |
commit | b63aefa1aa7e095b892c1738a8b95e2d3d528103 (patch) | |
tree | 1a631d0b064333b6318eac66ac47033054edd6f6 /dev-db/jxtray | |
parent | endeavour version bump (Manifest recommit) (diff) | |
download | gentoo-2-b63aefa1aa7e095b892c1738a8b95e2d3d528103.tar.gz gentoo-2-b63aefa1aa7e095b892c1738a8b95e2d3d528103.tar.bz2 gentoo-2-b63aefa1aa7e095b892c1738a8b95e2d3d528103.zip |
Initial import. Fixes #74247.
Diffstat (limited to 'dev-db/jxtray')
-rw-r--r-- | dev-db/jxtray/ChangeLog | 9 | ||||
-rw-r--r-- | dev-db/jxtray/Manifest | 6 | ||||
-rw-r--r-- | dev-db/jxtray/files/build.xml | 62 | ||||
-rw-r--r-- | dev-db/jxtray/files/default.properties | 11 | ||||
-rw-r--r-- | dev-db/jxtray/files/digest-jxtray-0.5 | 1 | ||||
-rw-r--r-- | dev-db/jxtray/jxtray-0.5.ebuild | 85 | ||||
-rw-r--r-- | dev-db/jxtray/metadata.xml | 16 |
7 files changed, 190 insertions, 0 deletions
diff --git a/dev-db/jxtray/ChangeLog b/dev-db/jxtray/ChangeLog new file mode 100644 index 000000000000..da818bec1051 --- /dev/null +++ b/dev-db/jxtray/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-db/jxtray +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/jxtray/ChangeLog,v 1.1 2004/12/23 00:05:13 karltk Exp $ + +*jxtray-0.5 (23 Dec 2004) + + 23 Dec 2004; Karl Trygve Kalleberg <karltk@gentoo.org> jxtray-0.5.ebuild: + Initial import. Ebuild submitted by our very own Saleem + A(too-long-a-name-anyway) <compnerd@compnerd.org>. Fixes #74247. diff --git a/dev-db/jxtray/Manifest b/dev-db/jxtray/Manifest new file mode 100644 index 000000000000..bf3c5a3d7007 --- /dev/null +++ b/dev-db/jxtray/Manifest @@ -0,0 +1,6 @@ +MD5 f0da07704727ba32e5d23fb814b5393c jxtray-0.5.ebuild 2193 +MD5 263a074ca1dfc07a23bf4c57b685fa1f ChangeLog 343 +MD5 0637a933ecb6e8cedfc4ddfcf3491728 metadata.xml 310 +MD5 f22e8babdfdaf992bc35e20ab66ce9f5 files/default.properties 217 +MD5 97bb388f459c454b06a8276c62609259 files/build.xml 1599 +MD5 f84f96f0c025c480d3404ee1ad22e3fc files/digest-jxtray-0.5 64 diff --git a/dev-db/jxtray/files/build.xml b/dev-db/jxtray/files/build.xml new file mode 100644 index 000000000000..4d4fadf5974d --- /dev/null +++ b/dev-db/jxtray/files/build.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> + +<project name="jxtray" default="jar" basedir="."> + + <property file="${basedir}/build.properties"/> + <property file="${basedir}/default.properties"/> + <property name="jxtray.version" value="0.5"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + <mkdir dir="${dist}"/> + <mkdir dir="${javadoc}"/> + </target> + + <target name="compile" depends="init"> + <javac srcdir="${srcdir}" + destdir="${build}" + classpath="${classpath}" + source="1.4" + target="1.4"/> + + <copy toDir="${build}/images"> + <fileset dir="images" includes="**/*.*"/> + </copy> + + <copy toDir="${build}/share"> + <fileset dir="share" includes="**/*.*"/> + </copy> + + <copy toDir="${build}/doc"> + <fileset dir="doc" includes="**/*.*"/> + </copy> + </target> + + <target name="javadoc" depends="compile"> + <javadoc sourcepath="${srcdir}" + destdir="${javadoc}" + packagenames="${packages}"/> + </target> + + <target name="jar" depends="compile"> + + <!-- + <unjar dest="${build}"> + <fileset dir="${basedir}/lib" includes="**/*.jar"/> + </unjar> + --> + + <jar jarfile="${dist}/jxtray-${jxtray.version}.jar" basedir="${build}"> + <manifest> + <attribute name="Main-Class" value="jxtray.Jxtray"/> + </manifest> + </jar> + </target> + + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + <delete dir="${javadoc}"/> + </target> +</project> diff --git a/dev-db/jxtray/files/default.properties b/dev-db/jxtray/files/default.properties new file mode 100644 index 000000000000..2c2418d0adf2 --- /dev/null +++ b/dev-db/jxtray/files/default.properties @@ -0,0 +1,11 @@ + +build=${basedir}/build +dist=${basedir}/dist + +javadoc=${build}/doc +packages=jxtray.* + +srcdir=${basedir}/src + +classpath=${basedir}/lib/jdom.jar:${basedir}/lib/xerces.jar:${basedir}/poi.jar:${basedir}/lib/xml-apis.jar + diff --git a/dev-db/jxtray/files/digest-jxtray-0.5 b/dev-db/jxtray/files/digest-jxtray-0.5 new file mode 100644 index 000000000000..eb8824c7c83b --- /dev/null +++ b/dev-db/jxtray/files/digest-jxtray-0.5 @@ -0,0 +1 @@ +MD5 2d8f90c6c597e2a50b2217c4ec4abb03 jxtray-src-0.5.tgz 2476739 diff --git a/dev-db/jxtray/jxtray-0.5.ebuild b/dev-db/jxtray/jxtray-0.5.ebuild new file mode 100644 index 000000000000..e451a9c0aa19 --- /dev/null +++ b/dev-db/jxtray/jxtray-0.5.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/jxtray/jxtray-0.5.ebuild,v 1.1 2004/12/23 00:05:13 karltk Exp $ + +inherit java-pkg + +DESCRIPTION="Java based Database Explorer" +HOMEPAGE="http://jxtray.sourceforge.net" +SRC_URI="mirror://sourceforge/jxtray/${PN}-src-${PV}.tgz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc jikes firebird mssql mysql postgres" + +DEPEND=">=virtual/jdk-1.3 + dev-java/ant-core + dev-java/jdom + dev-java/sax + dev-java/poi + >=dev-java/xerces-2.6.2 + dev-java/xml-commons + >=dev-java/kunststoff-2.0.2 + jikes? ( >=dev-java/jikes-1.21 ) + firebird? ( dev-java/jdbc3-firebird ) + mssql? ( =dev-java/jtds-0.9* ) + mysql? ( dev-java/jdbc-mysql ) + postgres? ( dev-java/jdbc3-postgresql ) + !firebird? ( !mssql? ( !postgres? ( dev-java/jdbc-mysql ) ) )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-src-${PV}" + +src_unpack() { + unpack ${A} + cp ${FILESDIR}/build.xml ${FILESDIR}/default.properties ${S} + local cp="" + + cd ${S}/lib + rm *.jar + cp="${cp}:`java-config -p jdom`" + cp="${cp}:`java-config -p xerces-2`" + cp="${cp}:`java-config -p sax`" + cp="${cp}:`java-config -p poi`" + cp="${cp}:`java-config -p xml-commons`" + + cd ${S}/lib/lookandfeel + rm *.jar + cp="${cp}:`java-config -p kunststoff-2.0`" + + cd ${S}/lib/drivers + rm *.jar + use firebird && cp="${cp}:`java-config -p jdbc3-firebird`" + use mssql && cp="${cp}:`java-config -p jtds-0.9`" + use mysql && cp="${cp}:`java-config -p jdbc-mysql`" + use postgres && cp="${cp}:`java-config -p jdbc3-postgres`" + + echo "classpath=${cp}" > ${S}/build.properties +} + +src_compile() { + local antflags="jar" + + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + use doc && antflags="${antflags} javadoc" + + ant ${antflags} || die "Compile failed!" +} + +src_install() { + local cp="java-config -p jxtray,jdom,xerces-2,sax,poi,xml-commons,kunststoff-2.0" + + use firebird && cp="${cp},jdbc3-firebird" + use mssql && cp="${cp},jtds-0.9" + use mysql && cp="${cp},jdbc-mysql" + use postgres && cp="${cp},jdbc3-postgres" + + java-pkg_dojar ${S}/dist/${PN}-${PV}.jar + + echo "#!/bin/sh" > ${PN} + echo "java -cp \$(${cp}) jxtray.Jxtray" >> ${PN} + dobin ${PN} + + dodoc CHANGELOG.txt LICENSE.txt README.txt + use doc && java-pkg_dohtml -r ${S}/javadoc/* +} diff --git a/dev-db/jxtray/metadata.xml b/dev-db/jxtray/metadata.xml new file mode 100644 index 000000000000..f2eb970ad837 --- /dev/null +++ b/dev-db/jxtray/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> +<herd>java</herd> + +<longdescription> + +Jxtray is a database explorer written in Java. Jxtray can be used to connect to +any type of database with suitable JDBC drivers. It can provide you with +information regarding your data bases, carry out SQL queries and extract data in +the following formats: CSV, SQL, HTML, XML. The name jxtray comes from the +French word j'extrait, which means the function of retrieval of data. + +</longdescription> +</pkgmetadata> |