From 4a4b67cb2fa4e6c43c0031bab79cd4142cbe80be Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Fri, 14 Aug 2015 00:00:31 +0000 Subject: [PATCH] dev-java/javacsv: Move package from overlay to the tree. Fixes bug 217500. Package-Manager: portage-2.2.18 Signed-off-by: Patrice Clement --- dev-java/javacsv/Manifest | 1 + dev-java/javacsv/javacsv-2.1.ebuild | 42 +++++++++++++++++++++++++++++ dev-java/javacsv/metadata.xml | 10 +++++++ 3 files changed, 53 insertions(+) create mode 100644 dev-java/javacsv/Manifest create mode 100644 dev-java/javacsv/javacsv-2.1.ebuild create mode 100644 dev-java/javacsv/metadata.xml diff --git a/dev-java/javacsv/Manifest b/dev-java/javacsv/Manifest new file mode 100644 index 000000000000..9ce756daa3d2 --- /dev/null +++ b/dev-java/javacsv/Manifest @@ -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 index 000000000000..9ab787026bd3 --- /dev/null +++ b/dev-java/javacsv/javacsv-2.1.ebuild @@ -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 index 000000000000..3d4abf33c0dd --- /dev/null +++ b/dev-java/javacsv/metadata.xml @@ -0,0 +1,10 @@ + + + + java + + monsieurp@gentoo.org + Patrice Clement + + + -- 2.26.2