From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4C8EF59CA4 for ; Sat, 13 Feb 2016 13:10:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7F111E07E0; Sat, 13 Feb 2016 13:10:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 80CA3E07DB for ; Sat, 13 Feb 2016 13:10:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 73EA3340C1C for ; Sat, 13 Feb 2016 13:09:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 02E4114CD for ; Sat, 13 Feb 2016 13:09:57 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1455368976.a38ac86f168bec746a99e88674e191fba4c870df.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-imaging/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/commons-imaging/Manifest dev-java/commons-imaging/commons-imaging-0.97.ebuild dev-java/commons-imaging/metadata.xml X-VCS-Directories: dev-java/commons-imaging/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: a38ac86f168bec746a99e88674e191fba4c870df X-VCS-Branch: master Date: Sat, 13 Feb 2016 13:09:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ffd675c1-90ec-45ad-bed3-6349ebac79db X-Archives-Hash: a4f1157d489ad01c0958ffadff5d81db commit: a38ac86f168bec746a99e88674e191fba4c870df Author: James Le Cuirot gentoo org> AuthorDate: Sat Feb 13 12:35:17 2016 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Feb 13 13:09:36 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a38ac86f 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 dev-java/commons-imaging/Manifest | 1 + .../commons-imaging/commons-imaging-0.97.ebuild | 50 ++++++++++++++++++++++ dev-java/commons-imaging/metadata.xml | 16 +++++++ 3 files changed, 67 insertions(+) diff --git a/dev-java/commons-imaging/Manifest b/dev-java/commons-imaging/Manifest new file mode 100644 index 0000000..6dc12eb --- /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 0000000..f3b7486 --- /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 0000000..8c92e73 --- /dev/null +++ b/dev-java/commons-imaging/metadata.xml @@ -0,0 +1,16 @@ + + + + + java@gentoo.org + Java + + 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. + + apache/commons-imaging + +