summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-10-16 15:04:00 +0000
committerPatrice Clement <monsieurp@gentoo.org>2015-10-16 15:06:50 +0000
commit2a1b7ba4d793e76e069642ffd1bffed0c10d14d9 (patch)
treee1b6382023c8ec8f966a52fe369ea5576cad0d6e /dev-java/java-service-wrapper
parentx11-wm/plwm: take maintainership, drop to ~arch (diff)
downloadgentoo-2a1b7ba4d793e76e069642ffd1bffed0c10d14d9.tar.gz
gentoo-2a1b7ba4d793e76e069642ffd1bffed0c10d14d9.tar.bz2
gentoo-2a1b7ba4d793e76e069642ffd1bffed0c10d14d9.zip
dev-java/java-service-wrapper: Call ejavadoc wrapper instead of javadoc. Stick patches in PATCHES array.
Package-Manager: portage-2.2.20.1 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java/java-service-wrapper')
-rw-r--r--dev-java/java-service-wrapper/java-service-wrapper-3.5.25-r1.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-java/java-service-wrapper/java-service-wrapper-3.5.25-r1.ebuild b/dev-java/java-service-wrapper/java-service-wrapper-3.5.25-r1.ebuild
new file mode 100644
index 000000000000..4c74fbde6455
--- /dev/null
+++ b/dev-java/java-service-wrapper/java-service-wrapper-3.5.25-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+WANT_ANT_TASKS="ant-nodeps"
+JAVA_PKG_IUSE="doc source test"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PN="wrapper"
+MY_P="${MY_PN}_${PV}_src"
+DESCRIPTION="A wrapper that makes it possible to install a Java Application as daemon"
+HOMEPAGE="http://wrapper.tanukisoftware.org/"
+SRC_URI="http://${MY_PN}.tanukisoftware.org/download/${PV}/${MY_P}.tar.gz"
+
+LICENSE="tanuki-community"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=virtual/jre-1.4"
+DEPEND="
+ >=virtual/jdk-1.4
+ test? (
+ dev-java/ant-junit
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-as-needed.patch
+ "${FILESDIR}"/${P}-gentoo-wrapper-defaults.patch
+ "${FILESDIR}"/${P}-testsuite.patch
+)
+
+java_prepare() {
+ epatch "${PATCHES[@]}"
+
+ cp "${S}/src/c/Makefile-linux-armel-32.make" "${S}/src/c/Makefile-linux-arm-32.make"
+}
+
+src_compile() {
+ tc-export CC
+ BITS="32"
+ use amd64 && BITS="64"
+ eant -Dbits=${BITS} jar compile-c
+ if use doc; then
+ ejavadoc -d api -sourcepath src/java/ -subpackages org \
+ || die "javadoc failed"
+ fi
+}
+
+src_test() {
+ ANT_TASKS="ant-junit ant-nodeps" eant -Dbits="${BITS}" test
+}
+
+src_install() {
+ java-pkg_dojar lib/wrapper.jar
+ java-pkg_doso lib/libwrapper.so
+
+ dobin bin/wrapper
+ dodoc README*.txt || die
+ dodoc doc/revisions.txt || die
+
+ use doc && java-pkg_dojavadoc api
+ use source && java-pkg_dosrc src/java/*
+}