public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-db/jxtray/
@ 2015-09-29 21:20 James Le Cuirot
  0 siblings, 0 replies; only message in thread
From: James Le Cuirot @ 2015-09-29 21:20 UTC (permalink / raw
  To: gentoo-commits

commit:     004dae4c9137df13c3c200eb56186d84f3619556
Author:     William L. Thomson Jr <wlt <AT> o-sinc <DOT> com>
AuthorDate: Thu Sep 17 23:48:07 2015 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Tue Sep 29 21:19:30 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=004dae4c

dev-db/jxtray: Updated dev-java/jdom slot from 1.0 -> 0 for v1

 dev-db/jxtray/jxtray-0.5-r5.ebuild | 73 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

diff --git a/dev-db/jxtray/jxtray-0.5-r5.ebuild b/dev-db/jxtray/jxtray-0.5-r5.ebuild
new file mode 100644
index 0000000..35ee230
--- /dev/null
+++ b/dev-db/jxtray/jxtray-0.5-r5.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit java-pkg-2 java-ant-2
+
+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="~amd64 ~x86"
+IUSE="doc firebird mssql mysql postgres"
+
+COMMON_DEP="
+	dev-java/jdom:0
+	>=dev-java/kunststoff-2.0.2:2.0
+	dev-java/poi:0
+	dev-java/sax:0
+	>=dev-java/xerces-2.7:2
+	dev-java/xml-commons:0
+	firebird? ( dev-java/jdbc-jaybird:0 )
+	mssql? ( >=dev-java/jtds-1.2:1.2 )
+	mysql? ( dev-java/jdbc-mysql:0 )
+	postgres? ( dev-java/jdbc-postgresql:0 )
+	!firebird? ( !mssql? ( !postgres? ( dev-java/jdbc-mysql:0 ) ) )"
+RDEPEND=">=virtual/jre-1.4
+	${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+	${COMMON_DEP}"
+
+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-pkg_getjars jdom)"
+	cp="${cp}:$(java-pkg_getjars xerces-2)"
+	cp="${cp}:$(java-pkg_getjars xml-commons)"
+	cp="${cp}:$(java-pkg_getjars sax)"
+	cp="${cp}:$(java-pkg_getjars poi)"
+
+	cd "${S}"/lib/lookandfeel
+	rm *.jar
+	cp="${cp}:$(java-pkg_getjars kunststoff-2.0)"
+
+	cd "${S}"/lib/drivers
+	rm *.jar
+	use firebird && cp="${cp}:$(java-pkg_getjars jdbc-jaybird)"
+	use mssql && cp="${cp}:$(java-pkg_getjars jtds-1.2)"
+	use mysql && cp="${cp}:$(java-pkg_getjars jdbc-mysql)"
+	use postgres && cp="${cp}:$(java-pkg_getjars jdbc-postgresql)"
+
+	echo "classpath=${cp}" > "${S}"/build.properties
+}
+
+src_compile() {
+	eant jar $(use_doc javadoc)
+}
+
+src_install() {
+	java-pkg_newjar dist/${P}.jar ${PN}.jar
+
+	java-pkg_dolauncher jxtray --main jxtray.Jxtray
+
+	dodoc CHANGELOG.txt README.txt
+	use doc && java-pkg_dojavadoc javadoc
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-29 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-29 21:20 [gentoo-commits] repo/gentoo:master commit in: dev-db/jxtray/ James Le Cuirot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox