summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2012-03-14 15:39:46 +0000
committerRalph Sennhauser <sera@gentoo.org>2012-03-14 15:39:46 +0000
commit893eccd0a6191faed625a675b23dff59dd1050b9 (patch)
tree46bf4964b8aab13a8a313b7eb089433e6054f66a /dev-java/jzlib
parentbump, minor fixes, new --rcu handling for >=media-video/vdr-1.7.25 in plugin ... (diff)
downloadgentoo-2-893eccd0a6191faed625a675b23dff59dd1050b9.tar.gz
gentoo-2-893eccd0a6191faed625a675b23dff59dd1050b9.tar.bz2
gentoo-2-893eccd0a6191faed625a675b23dff59dd1050b9.zip
Version bump, thanks to James Le Cuirot <chewi@aura-online.co.uk> for the
ebuild. Restricting test due to missing keywords on scala. (Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/jzlib')
-rw-r--r--dev-java/jzlib/ChangeLog10
-rw-r--r--dev-java/jzlib/jzlib-1.1.1.ebuild51
2 files changed, 59 insertions, 2 deletions
diff --git a/dev-java/jzlib/ChangeLog b/dev-java/jzlib/ChangeLog
index 054df8223957..13f5f2c91687 100644
--- a/dev-java/jzlib/ChangeLog
+++ b/dev-java/jzlib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jzlib
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jzlib/ChangeLog,v 1.35 2011/12/31 13:54:24 sera Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jzlib/ChangeLog,v 1.36 2012/03/14 15:39:46 sera Exp $
+
+*jzlib-1.1.1 (14 Mar 2012)
+
+ 14 Mar 2012; Ralph Sennhauser <sera@gentoo.org> +jzlib-1.1.1.ebuild:
+ Version bump, thanks to James Le Cuirot <chewi@aura-online.co.uk> for the
+ ebuild. Restricting test due to missing keywords on scala.
31 Dec 2011; Ralph Sennhauser <sera@gentoo.org> jzlib-1.0.7-r1.ebuild:
Drop ia64 support #345433
diff --git a/dev-java/jzlib/jzlib-1.1.1.ebuild b/dev-java/jzlib/jzlib-1.1.1.ebuild
new file mode 100644
index 000000000000..e2404672df0e
--- /dev/null
+++ b/dev-java/jzlib/jzlib-1.1.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jzlib/jzlib-1.1.1.ebuild,v 1.1 2012/03/14 15:39:45 sera Exp $
+
+EAPI="4"
+JAVA_PKG_IUSE="doc examples source test"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="JZlib is a re-implementation of zlib in pure Java"
+HOMEPAGE="http://www.jcraft.com/jzlib/"
+SRC_URI="http://www.jcraft.com/${PN}/${P}.zip"
+
+LICENSE="BSD"
+SLOT="1.1"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="
+ >=virtual/jre-1.5"
+DEPEND="
+ >=virtual/jdk-1.5"
+# test? (
+# dev-lang/scala
+# dev-java/junit:4 )"
+# Restrict test due to missing keywords for scala
+RESTRICT="test"
+
+S="${WORKDIR}/${P}"
+JAVA_SRC_DIR="src/main/java"
+
+java_prepare() {
+ # Maven not yet supported, use java-pkg-simple instead.
+ rm -v pom.xml || die
+}
+
+src_test() {
+ local CP TESTS
+ CP="${PN}.jar:$(java-pkg_getjars --with-dependencies scala,junit-4)" || die
+ TESTS=$(find src/test/scala -name '*Test.scala' -printf com.jcraft.jzlib. -exec basename {} .scala \;) || die
+
+ mkdir -p target/test || die
+ find src/test/scala -name '*.scala' -exec scalac -classpath "${CP}" -d target/test {} + || die
+ ejunit4 -classpath "target/test:${CP}" ${TESTS}
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ dodoc README ChangeLog
+ use examples && java-pkg_doexamples example
+}