public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-imaging/
Date: Sat, 13 Feb 2016 13:09:57 +0000 (UTC)	[thread overview]
Message-ID: <1455368976.a38ac86f168bec746a99e88674e191fba4c870df.chewi@gentoo> (raw)

commit:     a38ac86f168bec746a99e88674e191fba4c870df
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 13 12:35:17 2016 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> 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 @@
+<?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>


             reply	other threads:[~2016-02-13 13:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-13 13:09 James Le Cuirot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-01-23  9:40 [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-imaging/ Florian Schmaus
2022-01-23  9:40 Florian Schmaus
2022-07-28 18:26 Florian Schmaus
2022-07-29  4:20 Miroslav Šulc
2023-12-07 12:51 Miroslav Šulc
2023-12-07 12:51 Miroslav Šulc
2024-02-06  9:28 Miroslav Šulc
2024-02-06  9:28 Miroslav Šulc
2024-02-06  9:28 Miroslav Šulc
2024-11-22  7:48 Miroslav Šulc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1455368976.a38ac86f168bec746a99e88674e191fba4c870df.chewi@gentoo \
    --to=chewi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox