summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Köster <fabian.koester@posteo.de>2014-08-02 14:03:45 +0200
committerFabian Köster <fabian.koester@posteo.de>2014-08-02 14:03:45 +0200
commit8ec009dfebcac20c9f800cdda8b3e125f07a272e (patch)
treed9ab4afdba7268cb185684d92ef7b6b255079628
parentHibiscus 2.6.7 (diff)
downloadhibiscus-8ec009dfebcac20c9f800cdda8b3e125f07a272e.tar.gz
hibiscus-8ec009dfebcac20c9f800cdda8b3e125f07a272e.tar.bz2
hibiscus-8ec009dfebcac20c9f800cdda8b3e125f07a272e.zip
Updated hbci4java for hibiscus 2.6.7
-rw-r--r--net-libs/willuhn-hbci4java/willuhn-hbci4java-2.5.12_p20140617.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/net-libs/willuhn-hbci4java/willuhn-hbci4java-2.5.12_p20140617.ebuild b/net-libs/willuhn-hbci4java/willuhn-hbci4java-2.5.12_p20140617.ebuild
new file mode 100644
index 0000000..e8be4ca
--- /dev/null
+++ b/net-libs/willuhn-hbci4java/willuhn-hbci4java-2.5.12_p20140617.ebuild
@@ -0,0 +1,69 @@
+# 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
+
+COMMIT="3f03bedcaa49deafe658ebae5ce8978933659b5e"
+
+DESCRIPTION="A Java Library for HBCI/FinTS (Hibiscus Branch)"
+HOMEPAGE="https://github.com/willuhn/hbci4java"
+SRC_URI="https://github.com/willuhn/hbci4java/archive/${COMMIT}.zip -> ${P}.zip"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ctapi +smartcard"
+
+S="${WORKDIR}/hbci4java-${COMMIT}"
+
+COMMON_DEP="
+ dev-java/xerces:2
+ >=dev-java/log4j-1.2.8:0
+ !net-libs/hbci4java
+ ctapi? ( 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() {
+# use smartcard && EANT_BUILD_TARGET="compile-chipcard ${EANT_BUILD_TARGET}"
+#}
+
+src_unpack() {
+ unpack ${A}
+ mv ${PN}-* "${S}"
+}
+
+java_prepare() {
+ epatch ${FILESDIR}/java_home.patch
+ eant clean
+ rm -f chipcard/lib/*
+}
+
+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.md || die "dodoc failed"
+
+ use doc && java-pkg_dojavadoc doc/javadoc
+ use source && java-pkg_dosrc src/org
+}