dev-java/javacsv: Move package from overlay to the tree. Fixes bug 217500.
authorPatrice Clement <monsieurp@gentoo.org>
Fri, 14 Aug 2015 00:00:31 +0000 (00:00 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Fri, 14 Aug 2015 00:00:31 +0000 (00:00 +0000)
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
dev-java/javacsv/Manifest [new file with mode: 0644]
dev-java/javacsv/javacsv-2.1.ebuild [new file with mode: 0644]
dev-java/javacsv/metadata.xml [new file with mode: 0644]

diff --git a/dev-java/javacsv/Manifest b/dev-java/javacsv/Manifest
new file mode 100644 (file)
index 0000000..9ce756d
--- /dev/null
@@ -0,0 +1 @@
+DIST javacsv2.1.zip 89333 SHA256 29dcf065be4e18111c45a3b020f191bf2447e52369723e881787c522a68e0aa3 SHA512 beefeae1306163a21d4237dc3cccde9ffba0435fa898d95a77f33ec45f383e81e7a804d33918ba2a47fb004ed6f8734b8567d11a3ad63d1be3f9d1fa53e153ee WHIRLPOOL 92b3b76542810cd8ee9f2c813b3451851376c3f8e5e341a1864dfa27e6e09acf1b974cac922c551c6c5fae9f8257d02726d207d3d0373ea4db07f37a280ef3d2
diff --git a/dev-java/javacsv/javacsv-2.1.ebuild b/dev-java/javacsv/javacsv-2.1.ebuild
new file mode 100644 (file)
index 0000000..9ab7870
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-ant-2
+
+RESTRICT="test"
+
+DESCRIPTION="Java library for reading and writing CSV and plain delimited text files"
+HOMEPAGE="http://www.csvreader.com/java_csv.php"
+SRC_URI="mirror://sourceforge/${PN}/${P/-/}.zip"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+DEPEND=">=virtual/jdk-1.6"
+RDEPEND=">=virtual/jre-1.6"
+
+S="${WORKDIR}"
+
+java_prepare() {
+       rm -rfv doc "${PN}".jar || die "error cleaning up"
+       mv -v src/AllTests.java . || die "error moving tests"
+}
+
+EANT_BUILD_TARGET="dist"
+EANT_DOC_TARGET=""
+
+src_compile() {
+       java-pkg-2_src_compile
+       use doc && eant -f "${S}"/javadoc.xml
+}
+
+src_install() {
+       java-pkg_dojar ${PN}.jar
+       use doc && java-pkg_dojavadoc doc
+       use source && java-pkg_dosrc src
+}
diff --git a/dev-java/javacsv/metadata.xml b/dev-java/javacsv/metadata.xml
new file mode 100644 (file)
index 0000000..3d4abf3
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>java</herd>
+       <maintainer>
+               <email>monsieurp@gentoo.org</email>
+               <name>Patrice Clement</name>
+       </maintainer>
+</pkgmetadata>
+