diff options
author | James Le Cuirot <chewi@gentoo.org> | 2016-02-13 12:35:17 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2016-02-13 13:09:36 +0000 |
commit | a38ac86f168bec746a99e88674e191fba4c870df (patch) | |
tree | ffd737d1687a691d4de1886034c8a0bfbace67f8 /dev-java | |
parent | dev-java/swingx-ws: New package, required by bt747 (diff) | |
download | gentoo-a38ac86f168bec746a99e88674e191fba4c870df.tar.gz gentoo-a38ac86f168bec746a99e88674e191fba4c870df.tar.bz2 gentoo-a38ac86f168bec746a99e88674e191fba4c870df.zip |
dev-java/commons-imaging: New package, required by bt747
This was formerly known as Apache Commons Sanselan. Unfortunately I
couldn't quite get all the tests to pass.
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/commons-imaging/Manifest | 1 | ||||
-rw-r--r-- | dev-java/commons-imaging/commons-imaging-0.97.ebuild | 50 | ||||
-rw-r--r-- | dev-java/commons-imaging/metadata.xml | 16 |
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-java/commons-imaging/Manifest b/dev-java/commons-imaging/Manifest new file mode 100644 index 000000000000..6dc12ebc1297 --- /dev/null +++ b/dev-java/commons-imaging/Manifest @@ -0,0 +1 @@ +DIST apache-sanselan-incubating-0.97-src.tar.gz 33317875 SHA256 1ffb2f0d4ee109f1070d5687da1d6bc88374cf363bea5c95bc838af05091343b SHA512 b7e8af01f4b4ca812313bbf573758d9c0e1355266bfb83898336b14c4b492a8979f2a593f00d53c076e83cf807a049df624491a26623cfbceb00560b748f05f2 WHIRLPOOL 4c5716fb1a034a44f347163beabfdadef4dfcdea183bfba1ab6dac510ac6e056d40243634c43ad8e8c6dee636139407e89081026893068fbf380627a5ef4c83a diff --git a/dev-java/commons-imaging/commons-imaging-0.97.ebuild b/dev-java/commons-imaging/commons-imaging-0.97.ebuild new file mode 100644 index 000000000000..f3b7486b5a8f --- /dev/null +++ b/dev-java/commons-imaging/commons-imaging-0.97.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A minimalistic realtime charting library for Java" +HOMEPAGE="https://commons.apache.org/proper/commons-imaging" +SRC_URI="mirror://apache/commons/sanselan/source/apache-sanselan-incubating-${PV}-src.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="test" # 5/48 failures, dunno why :( + +RDEPEND=">=virtual/jre-1.6" + +DEPEND=">=virtual/jdk-1.6 + test? ( dev-java/junit:4 )" + +S="${WORKDIR}/sanselan-${PV}-incubator" +JAVA_ENCODING="ISO-8859-1" +JAVA_SRC_DIR="src/main/java" + +java_prepare() { + # Tsk, Windows developers… + find src/test/java -name "*.java" -exec sed -i 's:\\:/:g' {} + || die +} + +src_install() { + java-pkg-simple_src_install + dodoc README.txt RELEASE_NOTES +} + +src_test() { + local DIR="src/test/java" + local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4)" + + local TESTS=$(find "${DIR}" -name "*Test.java" ! -name "*BaseTest.java" ! -name SanselanTest.java ! -name ByteSourceTest.java) + TESTS="${TESTS//src\/test\/java\/}" + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d "${DIR}" $(find "${DIR}" -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} diff --git a/dev-java/commons-imaging/metadata.xml b/dev-java/commons-imaging/metadata.xml new file mode 100644 index 000000000000..8c92e7356d5e --- /dev/null +++ b/dev-java/commons-imaging/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <longdescription>Apache Commons Imaging, previously known as Apache Commons Sanselan, is a library that reads and writes a variety of image formats, including fast parsing of image info (size, color space, ICC profile, etc.) and metadata. + +This library is pure Java. Compared to typical image I/O libraries in native code, it's more portable, and should be more reliable and more secure against corrupt/malicious images, yet still performs reasonably well. It's easier to use than ImageIO/JAI/java.awt.Toolkit (Sun/Java's image support), supports more formats (and supports them more correctly). It also provides easy access to metadata. + +Imaging was working and was used by a number of projects in production even before version 1.0.</longdescription> + <upstream> + <remote-id type="github">apache/commons-imaging</remote-id> + </upstream> +</pkgmetadata> |