summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2009-08-07 12:31:36 +0000
committerAlistair Bush <ali_bush@gentoo.org>2009-08-07 12:31:36 +0000
commit6dc215b1dee715069e306d01652fa25433f4d81b (patch)
treeb72be6fe490c6f951712e5e5a99a806c92ac71dd /dev-java/nailgun
parentFix building with GLIBC 2.10+ wrt #271640. (diff)
downloadgentoo-2-6dc215b1dee715069e306d01652fa25433f4d81b.tar.gz
gentoo-2-6dc215b1dee715069e306d01652fa25433f4d81b.tar.bz2
gentoo-2-6dc215b1dee715069e306d01652fa25433f4d81b.zip
Add nailgun.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/nailgun')
-rw-r--r--dev-java/nailgun/ChangeLog10
-rw-r--r--dev-java/nailgun/files/0.7.1-Makefile.patch13
-rw-r--r--dev-java/nailgun/metadata.xml13
-rw-r--r--dev-java/nailgun/nailgun-0.7.1.ebuild68
4 files changed, 104 insertions, 0 deletions
diff --git a/dev-java/nailgun/ChangeLog b/dev-java/nailgun/ChangeLog
new file mode 100644
index 000000000000..ee157ddf9c6e
--- /dev/null
+++ b/dev-java/nailgun/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-java/nailgun
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/nailgun/ChangeLog,v 1.1 2009/08/07 12:31:36 ali_bush Exp $
+
+*nailgun-0.7.1 (07 Aug 2009)
+
+ 07 Aug 2009; Alistair Bush <ali_bush@gentoo.org>
+ +files/0.7.1-Makefile.patch, +nailgun-0.7.1.ebuild, +metadata.xml:
+ Add nailgun.
+
diff --git a/dev-java/nailgun/files/0.7.1-Makefile.patch b/dev-java/nailgun/files/0.7.1-Makefile.patch
new file mode 100644
index 000000000000..fe489d46ede9
--- /dev/null
+++ b/dev-java/nailgun/files/0.7.1-Makefile.patch
@@ -0,0 +1,13 @@
+--- Makefile.orig 2009-08-07 23:44:55.000000000 +1200
++++ Makefile 2009-08-07 23:45:43.000000000 +1200
+@@ -5,9 +5,8 @@
+ #
+ # Marty Lamb
+
+-CC=gcc
+ WIN32_CC=/usr/local/mingw32/bin/mingw32-gcc
+-CFLAGS=-Wall -pedantic -s -O3
++CFLAGS+=-Wall
+
+ ng: src/c/ng.c
+ @echo "Building ng client. To build a Windows binary, type 'make ng.exe'"
diff --git a/dev-java/nailgun/metadata.xml b/dev-java/nailgun/metadata.xml
new file mode 100644
index 000000000000..11673839bcee
--- /dev/null
+++ b/dev-java/nailgun/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <maintainer>
+ <email>ali_bush@gentoo.org</email>
+ <name>Alistair Bush</name>
+ </maintainer>
+ <longdescription lang="en">
+ Nailgun is a client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead. Programs run in the server (which is implemented in Java), and are triggered by the client (written in C), which handles all I/O.
+ </longdescription>
+</pkgmetadata>
+
diff --git a/dev-java/nailgun/nailgun-0.7.1.ebuild b/dev-java/nailgun/nailgun-0.7.1.ebuild
new file mode 100644
index 000000000000..b6304367c8c4
--- /dev/null
+++ b/dev-java/nailgun/nailgun-0.7.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/nailgun/nailgun-0.7.1.ebuild,v 1.1 2009/08/07 12:31:36 ali_bush Exp $
+
+EAPI="2"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="a client, protocol, and server for running Java apps without incurring the JVM startup overhead"
+HOMEPAGE="http://martiansoftware.com/nailgun/index.html"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.zip"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.4"
+DEPEND=">=virtual/jdk-1.4
+ dev-java/java-getopt:1
+ dev-java/bcel:0
+ dev-java/jakarta-oro:2.0
+ dev-java/log4j:0
+ app-arch/unzip
+ test? (
+ dev-java/junit:0
+ dev-java/ant-junit:0
+ )"
+
+#need jcoverage
+RESTRICT="test"
+
+java_prepare() {
+ rm -vf ng* beansh
+ find . -iname '*.jar' -delete
+
+ epatch "${FILESDIR}/${PV}-Makefile.patch"
+
+ sed -i '/<arg line="ng.exe/d' build.xml || die
+ sed -i 's/depends="test"/depends="compile"/' build.xml || die
+
+ java-pkg_jar-from --into tools/lib --build-only java-getopt-1 \
+ gnu.getopt.jar java-getopt-1.0.10.jar
+ java-pkg_jar-from --into tools/lib --build-only junit junit.jar
+ java-pkg_jar-from --into tools/lib --build-only bcel bcel.jar \
+ bcel-5.1.jar
+ java-pkg_jar-from --into tools/lib --build-only jakarta-oro-2.0 \
+ jakarta-oro.jar jakarta-oro-2.0.8.jar
+ java-pkg_jar-from --into tools/lib --build-only log4j log4j.jar \
+ log4j-1.2.8.jar
+}
+
+src_test() {
+ WANT_TASKS="ant-junit" eant test
+}
+
+src_install() {
+ dobin ng
+ # Should we have a dolauncher?
+
+ java-pkg_newjar "dist/${P}.jar"
+ use doc && java-pkg_dojavadoc docs/api
+ use source && java-pkg_dosrc src/java/prod/*
+}
+