summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-12-01 18:47:06 +0000
committerPatrice Clement <monsieurp@gentoo.org>2015-12-01 21:20:06 +0000
commitc39ebc99e207e105e7abc000bf0ccf78aa2a973d (patch)
treeebc6dc5e861c648335a76a9a225ca52cb3c70d0f /dev-java
parentnet-print/cups-filters: Remove ~arm64 keyword from live version (diff)
downloadgentoo-c39ebc99e207e105e7abc000bf0ccf78aa2a973d.tar.gz
gentoo-c39ebc99e207e105e7abc000bf0ccf78aa2a973d.tar.bz2
gentoo-c39ebc99e207e105e7abc000bf0ccf78aa2a973d.zip
dev-java/jigsaw: EAPI 5 bump.
Package-Manager: portage-2.2.20.1 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jigsaw/jigsaw-2.2.6-r1.ebuild68
1 files changed, 68 insertions, 0 deletions
diff --git a/dev-java/jigsaw/jigsaw-2.2.6-r1.ebuild b/dev-java/jigsaw/jigsaw-2.2.6-r1.ebuild
new file mode 100644
index 000000000000..a376501256bc
--- /dev/null
+++ b/dev-java/jigsaw/jigsaw-2.2.6-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+# Jigsaw is actually a WWW server, it would be nice to package it as such, not
+# as a raw library like this ebuild does.
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="W3 Consortium's Java-based Web server libraries"
+HOMEPAGE="http://jigsaw.w3.org/"
+SRC_URI="http://jigsaw.w3.org/Distrib/${PN}_${PV}.tar.bz2"
+
+LICENSE="W3C"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+CDEPEND="
+ dev-java/jtidy:0
+ dev-java/xerces:2
+ dev-java/jakarta-oro:2.0
+ java-virtuals/servlet-api:2.3"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ app-arch/unzip
+ >=virtual/jdk-1.6"
+
+EANT_DOC_TARGET="javadocs"
+
+S="${WORKDIR}/Jigsaw"
+
+PATCHES=(
+ "${FILESDIR}/${P}-build.xml.patch"
+)
+
+java_prepare() {
+ epatch "${PATCHES[@]}"
+
+ java-pkg_clean
+
+ mkdir -p "${S}/jars" || die "mkdir failed"
+
+ java-pkg_jar-from --into jars/ jakarta-oro-2.0
+ java-pkg_jar-from --into jars/ servlet-api-2.3
+ java-pkg_jar-from --into jars/ xerces-2
+ java-pkg_jar-from --into jars/ jtidy
+
+ cd "${S}/jars" || die
+ ln -s $(java-config --tools) || die
+}
+
+src_install() {
+ java-pkg_dojar classes/{jigsaw,jigadmin,jigedit}.jar
+
+ dodoc ANNOUNCE README
+ use doc && java-pkg_dojavadoc ant.build/javadocs
+}