From dd83a8774c3ff6d488e78dc450c4a323fb4bb776 Mon Sep 17 00:00:00 2001 From: Fabian Köster Date: Sat, 27 Oct 2012 10:43:08 +0200 Subject: Initial commit --- dev-java/obantoo/obantoo-1.5.2.ebuild | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 dev-java/obantoo/obantoo-1.5.2.ebuild (limited to 'dev-java/obantoo/obantoo-1.5.2.ebuild') diff --git a/dev-java/obantoo/obantoo-1.5.2.ebuild b/dev-java/obantoo/obantoo-1.5.2.ebuild new file mode 100644 index 0000000..d0f3fb2 --- /dev/null +++ b/dev-java/obantoo/obantoo-1.5.2.ebuild @@ -0,0 +1,49 @@ +EAPI="2" +JAVA_PKG_IUSE="doc source" + +inherit eutils java-pkg-2 + +DESCRIPTION="A Java Library for HBCI (Homebanking Computer Interface) / FinTS (Financial Transaction Services)" +HOMEPAGE="http://obantoo.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +COMMON_DEP="dev-java/itext:5" + +RDEPEND=">=virtual/jre-1.6 + ${COMMON_DEP}" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + ${COMMON_DEP}" + +S=${WORKDIR} + +java_prepare() { +# epatch ${FILESDIR}/${PV}-hibiscus-encoding.patch + rm -rv bin/* doc/api || die +} + +src_compile() { + + local classpath="$(java-pkg_getjars itext-5)" + + find src -name '*.java' > sources.list + ejavac -encoding latin1 -cp "${classpath}" -d bin @sources.list + jar cf ${PN}.jar -C bin/ . + # TODO: javadoc +} + + +src_install() { + java-pkg_newjar ${PN}.jar + + use doc && dodoc doc/* + use doc && java-pkg_dojavadoc javadoc + + use source && java-pkg_dosrc src/de +} -- cgit v1.2.3-65-gdbad