summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Baidakou <the.dmol@gmail.com>2012-08-28 18:23:50 +0300
committerIvan Baidakou <the.dmol@gmail.com>2012-08-28 18:23:50 +0300
commitf2bcfed6cd44eb5b7cbc1c7156768446d7565709 (patch)
treef02750f8e5da769f73edeb9033455e00da3c7e2d
parentimproved ebuild with unlinked junit dependency (diff)
downloaddmol-f2bcfed6cd44eb5b7cbc1c7156768446d7565709.tar.gz
dmol-f2bcfed6cd44eb5b7cbc1c7156768446d7565709.tar.bz2
dmol-f2bcfed6cd44eb5b7cbc1c7156768446d7565709.zip
jcommander-1.13.ebuild wrt#430688
-rw-r--r--dev-java/jcommander/Manifest3
-rw-r--r--dev-java/jcommander/jcommander-1.13.ebuild60
-rw-r--r--dev-java/jcommander/metadata.xml7
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-java/jcommander/Manifest b/dev-java/jcommander/Manifest
new file mode 100644
index 0000000..b800404
--- /dev/null
+++ b/dev-java/jcommander/Manifest
@@ -0,0 +1,3 @@
+DIST jcommander-1.13.tar.gz 33442 SHA256 88bd583b5e0f63d23c0028d20d6f2c978d3080dfec1caaaa823b3f0e07c49cfb SHA512 6dc0655216feeca156b8577fc9ab085a80ed5c9dd48ad731e88172be700bc13d57e7de71e8099dc6e7267ce677660a1bfe0066a08020c7fd230c02ccd3804fb2 WHIRLPOOL a737657726cea1b200673bc8aed0b13bc47cd2c1e1affb3e1bfe0134f43211ae6fb381df1e49ee94e4a348405ec0e9345afd59bc6244c2e9613255490fb87731
+EBUILD jcommander-1.13.ebuild 1160 SHA256 70ce282feaa670c6d74360e16a84909059c5c3abf2268e8915b2e80d407a2de4 SHA512 e40dc8610bd9f68f856524653acf61dad47afb579ff4edcf8d9ee52e894b39e5db1ddd41e9e31eecfd0e3f981ba71ddcacd2f633045aed120d9213ea95e33a84 WHIRLPOOL 2c71228443a7639eacd74726fdc809131e162cfcb846b03eb98a88da6e2ac60e08b402a883a1668007a56868cd5858db96501d1b5b0554102be8dfd46b54e087
+MISC metadata.xml 205 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce SHA512 e7c77c724739d0af43cc338ded09dcbeee2a710eb0e49f1e656dc4c891bee85bfd6935bf70a191a1c5823f473643e676d64970416e5f1820ea466681016757c5 WHIRLPOOL 5b7f0c2a5243244fa06b072c8f0d9f53e7b6f45c7e1b74a0d945bdcc28b7137fddfd58e85b0d3e721e80963916ceae0d4cca59f48114ba26c47b24a91d6abb27
diff --git a/dev-java/jcommander/jcommander-1.13.ebuild b/dev-java/jcommander/jcommander-1.13.ebuild
new file mode 100644
index 0000000..3240a04
--- /dev/null
+++ b/dev-java/jcommander/jcommander-1.13.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils java-pkg-2 java-pkg-simple
+
+GITHUB_USER="cbeust"
+
+DESCRIPTION="Command line parsing framework for Java"
+HOMEPAGE="https://github.com/cbeust/jcommander"
+SRC_URI="https://github.com/${GITHUB_USER}/${PN}/tarball/${P} -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="1.13"
+KEYWORDS="~amd64"
+IUSE=""
+
+# test? ( dev-java/testng )
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.6"
+
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.6"
+
+JAVA_SRC_DIR="src/main"
+
+S="${WORKDIR}"/${P}
+
+# until testng is in main tree
+RESTRICT=test
+
+src_unpack() {
+ unpack ${A}
+ mv ${GITHUB_USER}-${PN}-* ${P} || die
+ rm "${P}"/pom.xml || die
+}
+
+src_compile() {
+ mkdir classes
+ find src/main/java/com -name "*.java" > "${T}/src.list"
+ ejavac -d "${S}/classes" \
+ "@${T}/src.list"
+
+ cd "${S}/classes"
+ jar -cf "${S}/${PN}.jar" * || die "failed to create jar"
+}
+
+src_test() {
+ JAVA_SRC_DIR="src/test" \
+ JAVA_CLASSPATH_EXTRA="${PN}.jar" \
+ PN="${PN}-test" \
+ java-pkg-simple_src_compile
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ dodoc README.markdown CHANGELOG
+}
diff --git a/dev-java/jcommander/metadata.xml b/dev-java/jcommander/metadata.xml
new file mode 100644
index 0000000..80859ae
--- /dev/null
+++ b/dev-java/jcommander/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>the.dmol@gmail.com</email>
+ </maintainer>
+</pkgmetadata>