From b6e5496a5238d3a8c741d8f9c27e91a12b9b4e1f Mon Sep 17 00:00:00 2001 From: Johann Schmitz Date: Tue, 24 Sep 2013 17:26:41 +0000 Subject: Ebuild for kryo (Fast, efficient Java serialization and cloning library). Dependency of endrick-cache (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 77C501ED) --- dev-java/kryo/ChangeLog | 10 +++++++++ dev-java/kryo/kryo-1.05.ebuild | 51 ++++++++++++++++++++++++++++++++++++++++++ dev-java/kryo/metadata.xml | 13 +++++++++++ 3 files changed, 74 insertions(+) create mode 100644 dev-java/kryo/ChangeLog create mode 100644 dev-java/kryo/kryo-1.05.ebuild create mode 100644 dev-java/kryo/metadata.xml (limited to 'dev-java') diff --git a/dev-java/kryo/ChangeLog b/dev-java/kryo/ChangeLog new file mode 100644 index 000000000000..b85a0c537a28 --- /dev/null +++ b/dev-java/kryo/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-java/kryo +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/kryo/ChangeLog,v 1.1 2013/09/24 17:26:41 ercpe Exp $ + +*kryo-1.05 (24 Sep 2013) + + 24 Sep 2013; Johann Schmitz +kryo-1.05.ebuild, + +metadata.xml: + Ebuild for kryo (Fast, efficient Java serialization and cloning library). + Dependency of endrick-cache diff --git a/dev-java/kryo/kryo-1.05.ebuild b/dev-java/kryo/kryo-1.05.ebuild new file mode 100644 index 000000000000..ca4c345dacc8 --- /dev/null +++ b/dev-java/kryo/kryo-1.05.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/kryo/kryo-1.05.ebuild,v 1.1 2013/09/24 17:26:41 ercpe Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="source doc test" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Fast, efficient Java serialization and cloning" +HOMEPAGE="https://code.google.com/p/kryo/" +SRC_URI="https://${PN}.googlecode.com/files/${P}.zip" + +LICENSE="BSD-2" +SLOT="1" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +CDEPEND="dev-java/objenesis:0 + dev-java/reflectasm:0 + dev-java/minlog:0" + +DEPEND="${CDEPEND} + test? ( dev-java/junit:4 ) + >=virtual/jdk-1.5" +RDEPEND="${CDEPEND} + >=virtual/jre-1.5" + +S="${WORKDIR}/${P}" + +JAVA_GENTOO_CLASSPATH="objenesis,reflectasm,minlog" +JAVA_SRC_DIR="${PN}/src" + +src_prepare() { + rm "${S}"/${PN}/pom.xml || die + find "${S}" -name "*.jar" -delete || die +} + +src_test() { + mkdir target/tests || die + local testcp="${S}/${PN}.jar:target/tests:$(java-pkg_getjars junit-4)" + testcp+=":$(java-pkg_getjars --with-dependencies ${JAVA_GENTOO_CLASSPATH})" + + ejavac -cp "${testcp}" -d target/tests $(find ${PN}/test -name "*.java") + tests=$(find target/tests -name "*Test.class" \ + | sed -e 's/target\/tests\///g' -e "s/\.class//" -e "s/\//./g" \ + | grep -vP '\$'); + ejunit4 -cp "${testcp}" ${tests} +} diff --git a/dev-java/kryo/metadata.xml b/dev-java/kryo/metadata.xml new file mode 100644 index 000000000000..2d2ccc0795d8 --- /dev/null +++ b/dev-java/kryo/metadata.xml @@ -0,0 +1,13 @@ + + + + java + + Kryo is a fast and efficient object graph serialization framework for Java. + The goals of the project are speed, efficiency, and an easy to use API. The project + is useful any time objects need to be persisted, whether to a file, database, or over + the network. Kryo can also perform automatic deep and shallow copying/cloning. This is direct copying + from object to object, not object->bytes->object. + + + -- cgit v1.2.3-65-gdbad