diff options
author | Johann Schmitz <ercpe@gentoo.org> | 2013-09-24 17:26:41 +0000 |
---|---|---|
committer | Johann Schmitz <ercpe@gentoo.org> | 2013-09-24 17:26:41 +0000 |
commit | b6e5496a5238d3a8c741d8f9c27e91a12b9b4e1f (patch) | |
tree | 25b17f993dc34c7ee7edb8391e4c18028d127e37 /dev-java | |
parent | Bump for supplimental fixup to CVE-2013-4311 (diff) | |
download | gentoo-2-b6e5496a5238d3a8c741d8f9c27e91a12b9b4e1f.tar.gz gentoo-2-b6e5496a5238d3a8c741d8f9c27e91a12b9b4e1f.tar.bz2 gentoo-2-b6e5496a5238d3a8c741d8f9c27e91a12b9b4e1f.zip |
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)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/kryo/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/kryo/kryo-1.05.ebuild | 51 | ||||
-rw-r--r-- | dev-java/kryo/metadata.xml | 13 |
3 files changed, 74 insertions, 0 deletions
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 <ercpe@gentoo.org> +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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <longdescription> + 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. + </longdescription> +</pkgmetadata> + |