mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 10:58:21 -07:00
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
This commit is contained in:
1
dev-java/commons-imaging/Manifest
Normal file
1
dev-java/commons-imaging/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST apache-sanselan-incubating-0.97-src.tar.gz 33317875 SHA256 1ffb2f0d4ee109f1070d5687da1d6bc88374cf363bea5c95bc838af05091343b SHA512 b7e8af01f4b4ca812313bbf573758d9c0e1355266bfb83898336b14c4b492a8979f2a593f00d53c076e83cf807a049df624491a26623cfbceb00560b748f05f2 WHIRLPOOL 4c5716fb1a034a44f347163beabfdadef4dfcdea183bfba1ab6dac510ac6e056d40243634c43ad8e8c6dee636139407e89081026893068fbf380627a5ef4c83a
|
||||
50
dev-java/commons-imaging/commons-imaging-0.97.ebuild
Normal file
50
dev-java/commons-imaging/commons-imaging-0.97.ebuild
Normal file
@@ -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}
|
||||
}
|
||||
16
dev-java/commons-imaging/metadata.xml
Normal file
16
dev-java/commons-imaging/metadata.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user