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 --- net-libs/willuhn-hbci4java/Manifest | 2 + .../willuhn-hbci4java-2.5.12.30.ebuild | 67 ++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 net-libs/willuhn-hbci4java/Manifest create mode 100644 net-libs/willuhn-hbci4java/willuhn-hbci4java-2.5.12.30.ebuild (limited to 'net-libs/willuhn-hbci4java') diff --git a/net-libs/willuhn-hbci4java/Manifest b/net-libs/willuhn-hbci4java/Manifest new file mode 100644 index 0000000..9e6f654 --- /dev/null +++ b/net-libs/willuhn-hbci4java/Manifest @@ -0,0 +1,2 @@ +DIST willuhn-hbci4java-2.5.12.30.tar.gz 2833964 SHA256 6fd541c02384d64ece3e032a7b0650bf52d86ea89c9afb439df1bb1ad471ed19 SHA512 ac2371b886decf692fb8afdb58a810e613679d7984b3d6853e778d7559c4127fc0fac4bf387ec789e4c8ad3ab95c5e4ce17e3fbde0ec478648f1ed53cff8f69c WHIRLPOOL e2e094e8b8eea845a66780b09c0112384fb9cc6624ec1a919206b60ac9246b32ca92ad3fa294e19841666c0a9347e9192a32fbf782e3ddcfeceeb8f54012a694 +EBUILD willuhn-hbci4java-2.5.12.30.ebuild 1551 SHA256 bd0b684ddccecfdcc1f6371dc29686681aa5b04e3aa06ee396f0252793ab60c7 SHA512 0b0a58dd3f3504c93d5f6bc3760101d95659129f9fbd2eeae0a4276cb8b0874ff91568a7e7b6134257567a349e80ae987dcd78e37a987558db0628aac47b68d3 WHIRLPOOL 0c06d6bd935ff8d4af394b4b6a5ad326991c1a5adb80c16eeb479f5f99dbff5afb208537394aaf85cb21aed6c41f634a769df4e32679fe8294673eef5c155636 diff --git a/net-libs/willuhn-hbci4java/willuhn-hbci4java-2.5.12.30.ebuild b/net-libs/willuhn-hbci4java/willuhn-hbci4java-2.5.12.30.ebuild new file mode 100644 index 0000000..51dcb1e --- /dev/null +++ b/net-libs/willuhn-hbci4java/willuhn-hbci4java-2.5.12.30.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +JAVA_PKG_IUSE="doc source" + +WANT_ANT_TASKS="ant-nodeps" +inherit eutils java-pkg-2 java-ant-2 + +PATCH_VERSION="$(get_version_component_range 4)" + +DESCRIPTION="A Java Library for HBCI/FinTS (Hibiscus Branch)" +HOMEPAGE="https://github.com/willuhn/hbci4java" +SRC_URI="https://github.com/willuhn/hbci4java/tarball/PATCH_${PATCH_VERSION} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+smartcard" + +COMMON_DEP=" + dev-java/xerces:2 + >=dev-java/log4j-1.2.8:0 + !net-libs/hbci4java + smartcard? ( sys-libs/pcsc-ctapi-wrapper )" + +RDEPEND=">=virtual/jre-1.6 + ${COMMON_DEP}" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip + ${COMMON_DEP}" + +# JNI libraries don't need SONAME +QA_SONAME="usr/$(get_libdir)/lib${PN}-chipcard-linux.so" + +EANT_BUILD_TARGET="package" + +#pkg_setup() { + # FIXME use smartcard && EANT_BUILD_TARGET="compile-chipcard ${EANT_BUILD_TARGET}" +#} + +src_unpack() { + unpack ${A} + mv ${PN}-* "${S}" +} + +java_prepare() { + #epatch "${FILESDIR}/${PV}-makefile.patch" + #epatch "${FILESDIR}/${PV}-build.patch" + eant clean +} + +src_install() { + java-pkg_newjar dist/jar/hbci4java.jar + + if use smartcard; then + dolib chipcard/lib/libhbci4java-card-linux.so || "dolib failed" + use amd64 && dosym libhbci4java-card-linux.so /usr/$(get_libdir)/libhbci4java-card-linux-64.so + fi + + dodoc readme.txt || die "dodoc failed" + + use doc && java-pkg_dojavadoc doc/javadoc + use source && java-pkg_dosrc src/org +} -- cgit v1.2.3-65-gdbad