diff options
Diffstat (limited to 'dev-db/henplus')
-rw-r--r-- | dev-db/henplus/Manifest | 5 | ||||
-rw-r--r-- | dev-db/henplus/files/0.9.8-build.xml.patch | 23 | ||||
-rw-r--r-- | dev-db/henplus/files/henplus.pre | 51 | ||||
-rw-r--r-- | dev-db/henplus/henplus-0.9.8-r1.ebuild | 43 | ||||
-rw-r--r-- | dev-db/henplus/metadata.xml | 11 |
5 files changed, 133 insertions, 0 deletions
diff --git a/dev-db/henplus/Manifest b/dev-db/henplus/Manifest new file mode 100644 index 000000000000..77bb6c0461aa --- /dev/null +++ b/dev-db/henplus/Manifest @@ -0,0 +1,5 @@ +AUX 0.9.8-build.xml.patch 771 BLAKE2B b0fc8433a08fe2321656c8a34190dc19efbc6ed52022824ef74cf55e990c43a5cd48147550c40230843239bddf15fc77d4f0ed1beea872af2df5d1ebfe7f6258 SHA512 b886c7f53bbbb10221b99c3d2ff32513c5388769310714e1c74c69aa662618bc719aa7338ccde92ca2119f9e6fa9591ae260dfe5055fa760f90b5f26ad740190 +AUX henplus.pre 1418 BLAKE2B bedb6cbef3fc1713895716c8af2cc3a70d77a42c7a940e86c57157064177afd59d52369f1aee72ac4e2c7501f219b8da1fe8482424fae62e1ef875fc255cf333 SHA512 331138630336c9f7a2f7cbf343b6ea77277d4ad77d706497545a6ff33cf44572cbe126acb4f0d212a40f652a24190b629f7776dbca08630de66d6f8ac3fae26a +DIST henplus-0.9.8.tar.gz 233035 BLAKE2B 0cfba9cde654103f539ce28508d77169ce3a34ccc9a8805253e9bcd3a731118408c8a241f82eb6da8be2b96d1a4932c95024a158eae48396b045d5b94b0acaa9 SHA512 a22fc847f4441f627c1fa12f4f365c38d0c8ddfc205758d044e797e83f8d37032995666c2ee3dbb68d0a5f563fa5d574886e85757b1faa0acfc055e92b2fad0b +EBUILD henplus-0.9.8-r1.ebuild 1025 BLAKE2B 6ab6fecb647dbbaadff21db0f705559f87e1e96a9c06ecd5f18eee8ce7298fb46253b24d858b3a503b7ddb2f17a43523cb5b17581270aadeb9b4580ea60f730c SHA512 0d55002c3686531f7485ea47ac91bddd73ff0beaf02f52b161c8cbb091e4aa38d230166e43fd724171f6f20a0bf75da588baf70fce4f17c364dd1c73cab282b5 +MISC metadata.xml 313 BLAKE2B 494eb57813ba2f3f9c9ba73b23547819ae369df2ea1973710bbd5d240163902d67a854abaaf401e2ce598fa2ad9b559d48ea51e5db2dde55b1639de7b612e481 SHA512 22c759bfaa403d45fd081972c2009675d69156ff6f2caff621d9330b5c4a6c56030e70fd9a0639ff6a8684c1ff0e213ce9b8d6890607b12522eb2c768361d762 diff --git a/dev-db/henplus/files/0.9.8-build.xml.patch b/dev-db/henplus/files/0.9.8-build.xml.patch new file mode 100644 index 000000000000..e2763978080e --- /dev/null +++ b/dev-db/henplus/files/0.9.8-build.xml.patch @@ -0,0 +1,23 @@ +diff -ur henplus-0.9.8.old/build.xml henplus-0.9.8/build.xml +--- henplus-0.9.8.old/build.xml 2009-05-01 23:51:41.000000000 +0300 ++++ henplus-0.9.8/build.xml 2009-05-01 23:52:31.000000000 +0300 +@@ -33,13 +33,13 @@ + <pathelement path="${classes}" /> + </path> + +- <taskdef name="ant-server" classname="net.sweetohm.ant.server.ServerTask"> +- <classpath> +- <pathelement location="${lib}/build/sat-0.7.jar" /> +- </classpath> +- </taskdef> +- + <target name="server"> ++ <taskdef name="ant-server" classname="net.sweetohm.ant.server.ServerTask"> ++ <classpath> ++ <pathelement location="${lib}/build/sat-0.7.jar" /> ++ </classpath> ++ </taskdef> ++ + <ant-server/> + </target> + diff --git a/dev-db/henplus/files/henplus.pre b/dev-db/henplus/files/henplus.pre new file mode 100644 index 000000000000..c29585e369fa --- /dev/null +++ b/dev-db/henplus/files/henplus.pre @@ -0,0 +1,51 @@ +# +# Based on the upstream script but parts not relevant to Gentoo +# stripped away. We would not need this at all but better to make +# this behave as the upstream docs say and then also have all the +# Gentoo goodies. +# https://bugs.gentoo.org/show_bug.cgi?id=176185 + +##------------------ +THISDIR=`dirname $0` +# install layout is: script in /usr/bin/henplus and libs in /usr/share/henplus +HENPLUSDIR=$THISDIR/../share/henplus + +# you may just throw your own jar files in this dir. +# (like additional JDBC-drivers, that are not in default +# classpath) +for f in $HENPLUSDIR/*.jar $HENPLUSDIR/*.zip ; do + if [ -r "$f" ] ; then + CLASSPATH=$CLASSPATH:$f + fi +done + +# starting at the current directory we look for additional +# JDBC-drivers in .henplus/lib-directories up the path. +# if no directory like that has been found the one in the +# home directory will be used +DIR=`pwd` +CUSTOM_HENPLUSDIR="" + +while [ $DIR != "/" ] ; do + if [ -d $DIR"/.henplus/lib" ]; then + CUSTOM_HENPLUSDIR=$DIR"/.henplus/lib" + break + fi + DIR=`dirname $DIR` +done + +if [ -z $CUSTOM_HENPLUSDIR ]; then + if [ -d "/.henplus/lib" ]; then + CUSTOM_HENPLUSDIR="/.henplus/lib" + else + CUSTOM_HENPLUSDIR=$HOME/.henplus/lib + fi +fi + +for f in $CUSTOM_HENPLUSDIR/*.jar $CUSTOM_HENPLUSDIR/*.zip ; do + if [ -r "$f" ] ; then + CLASSPATH=$CLASSPATH:$f + fi +done + +export CLASSPATH diff --git a/dev-db/henplus/henplus-0.9.8-r1.ebuild b/dev-db/henplus/henplus-0.9.8-r1.ebuild new file mode 100644 index 000000000000..a1d41261fac3 --- /dev/null +++ b/dev-db/henplus/henplus-0.9.8-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 eutils java-ant-2 + +DESCRIPTION="Java-based multisession SQL shell for databases with JDBC support" +HOMEPAGE="http://henplus.sf.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +COMMON_DEPEND="dev-java/commons-cli:1 + dev-java/libreadline-java:0" +RDEPEND=">=virtual/jre-1.6 + ${COMMON_DEPEND}" +DEPEND=">=virtual/jdk-1.6 + ${COMMON_DEPEND}" + +java_prepare() { + epatch "${FILESDIR}/0.9.8-build.xml.patch" + rm -v lib/*.jar lib/*/*.jar || die +} + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="commons-cli-1,libreadline-java" + +src_install () { + java-pkg_dojar "build/${PN}.jar" + + java-pkg_dolauncher ${PN} -pre "${FILESDIR}/${PN}.pre" \ + --main henplus.HenPlus + + dodoc README || die + dohtml doc/HenPlus.html || die + + use doc && java-pkg_dojavadoc javadoc/api + use source && java-pkg_dosrc "src/${PN}" +} diff --git a/dev-db/henplus/metadata.xml b/dev-db/henplus/metadata.xml new file mode 100644 index 000000000000..651b465469ac --- /dev/null +++ b/dev-db/henplus/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">henplus</remote-id> + </upstream> +</pkgmetadata> |