diff options
author | Alistair Bush <ali_bush@gentoo.org> | 2008-02-25 05:28:43 +0000 |
---|---|---|
committer | Alistair Bush <ali_bush@gentoo.org> | 2008-02-25 05:28:43 +0000 |
commit | ed59fea83a5049813151ce5bee1a5a7f1c5b1248 (patch) | |
tree | 3a8339c184866e70711727723d5e93aa678544a5 /dev-java/java-service-wrapper | |
parent | Adding license for java-service-wrapper. (diff) | |
download | historical-ed59fea83a5049813151ce5bee1a5a7f1c5b1248.tar.gz historical-ed59fea83a5049813151ce5bee1a5a7f1c5b1248.tar.bz2 historical-ed59fea83a5049813151ce5bee1a5a7f1c5b1248.zip |
Adding package from java-overlay. Initial work done by caster, Betelgeuse and nichoj?
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'dev-java/java-service-wrapper')
5 files changed, 169 insertions, 0 deletions
diff --git a/dev-java/java-service-wrapper/ChangeLog b/dev-java/java-service-wrapper/ChangeLog new file mode 100644 index 000000000000..16386bf7da5c --- /dev/null +++ b/dev-java/java-service-wrapper/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-java/java-service-wrapper +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/java-service-wrapper/ChangeLog,v 1.1 2008/02/25 05:28:42 ali_bush Exp $ + +*java-service-wrapper-3.2.3 (25 Feb 2008) + + 25 Feb 2008; Alistair Bush <ali_bush@gentoo.org> + +files/java-service-wrapper-3.2.3-build.xml.patch, +metadata.xml, + +java-service-wrapper-3.2.3.ebuild: + Initial ebuild in tree, based on work done by caster and Betelgeuse in java + overlays. + diff --git a/dev-java/java-service-wrapper/Manifest b/dev-java/java-service-wrapper/Manifest new file mode 100644 index 000000000000..a513465818c3 --- /dev/null +++ b/dev-java/java-service-wrapper/Manifest @@ -0,0 +1,5 @@ +AUX java-service-wrapper-3.2.3-build.xml.patch 2150 RMD160 00633e650d5a523f4ee92fb7908afa35e0d81b45 SHA1 f34c0ccd01aedc42aca381101420d8fc433ea86b SHA256 0a24d546abcf7d87cf766bb4a4b35fbf5e66a35be8e625f9e45f82aba78763bd +DIST wrapper_3.2.3_src.tar.gz 3409483 RMD160 6638c8a1aef81f6b9c7dea006d185f08709c738d SHA1 92b5e7efab1f3341cd47170cba1d4d8b1ba3c766 SHA256 7e57b0103959fe3566def64b1dd3fef6537032a7e4b2a7811594f1db7d9f5859 +EBUILD java-service-wrapper-3.2.3.ebuild 1796 RMD160 c6e2018a55c76dc6628d3b41529b01f35e045bac SHA1 0ea7c7d9c3d481e6b968fbab1eb525061d29fc90 SHA256 a00613202f4a73ea147f42884e163782a296a8000f03b3cf51613b56ec902eec +MISC ChangeLog 524 RMD160 a80e9e093071caf26f56bf37ca033e45b7d9d9ec SHA1 2159bb4a587d6563ea6de0244964c661b8241da8 SHA256 4bdcab35f2af1da68bea68d3e675f3d14c8f1c0585370aaf0de6967aa1ad7572 +MISC metadata.xml 678 RMD160 7e5baa9bf71b0ae917d38506aa43ac224ea71f67 SHA1 d6e69438e3ca142e53b7ed78e13c3d59eb797df9 SHA256 66efe3088c28882763a88af92caac086fa1ebfbde847433080861b54592d7a07 diff --git a/dev-java/java-service-wrapper/files/java-service-wrapper-3.2.3-build.xml.patch b/dev-java/java-service-wrapper/files/java-service-wrapper-3.2.3-build.xml.patch new file mode 100644 index 000000000000..80d24f7469ce --- /dev/null +++ b/dev-java/java-service-wrapper/files/java-service-wrapper-3.2.3-build.xml.patch @@ -0,0 +1,53 @@ +--- build.xml 2008-02-24 20:10:00.000000000 +1300 ++++ build.xml 2008-02-24 20:17:10.000000000 +1300 +@@ -397,16 +397,6 @@ + <classpath refid="project.class.path"/> + </javac> + +- <!-- compile everything under src/test --> +- <javac srcdir="${src.dir}/test" destdir="${build.testclasses}" +- deprecation="on" +- debug="on" +- optimize="on" +- source="${javac.target.version}" +- target="${javac.target.version}"> +- <classpath refid="test.class.path"/> +- </javac> +- + <!-- copy resource files to build directory --> + <copy todir="${build.classes}" > + <fileset dir="${src.dir}/java" > +@@ -430,6 +420,24 @@ + <class name="org.tanukisoftware.wrapper.WrapperManager"/> + </javah> + </target> ++ ++ <target name="compile-test" depends="compile-java-warn"> ++ <!-- compile everything under src/test --> ++ <javac srcdir="${src.dir}/test" destdir="${build.testclasses}" ++ deprecation="on" ++ debug="on" ++ optimize="on" ++ source="${javac.target.version}" ++ target="${javac.target.version}"> ++ <classpath refid="test.class.path"/> ++ <classpath> ++ <fileset dir="lib"> ++ <include name="**/*.jar"/> ++ </fileset> ++ </classpath> ++ </javac> ++ </target> ++ + <target name="msvc-missing" depends="init:msg" if="msvc.missing"> + <condition property="msvc.home.v8_c" value="${msvc.home.v8_64_c}"> + <equals arg1="${bits}" arg2="64"/> +@@ -636,7 +644,7 @@ + <!-- =================================================================== --> + <!-- Test Task --> + <!-- =================================================================== --> +- <target name="test" depends="jar" description="Runs unit tests"> ++ <target name="test" depends="compile-test,jar" description="Runs unit tests"> + <mkdir dir="${build.tests}"/> + + <junit fork="true" diff --git a/dev-java/java-service-wrapper/java-service-wrapper-3.2.3.ebuild b/dev-java/java-service-wrapper/java-service-wrapper-3.2.3.ebuild new file mode 100644 index 000000000000..75e95c8c9251 --- /dev/null +++ b/dev-java/java-service-wrapper/java-service-wrapper-3.2.3.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/java-service-wrapper/java-service-wrapper-3.2.3.ebuild,v 1.1 2008/02/25 05:28:42 ali_bush Exp $ + +WANT_ANT_TASKS="ant-nodeps" +JAVA_PKG_IUSE="doc source test" +inherit base java-pkg-2 java-ant-2 eutils + +MY_PN="wrapper" +MY_P="${MY_PN}_${PV}_src" +DESCRIPTION="A wrapper that makes it possible to install a Java Application as daemon." +HOMEPAGE="http://wrapper.tanukisoftware.org/" +SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="java-service-wrapper" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.4" + +# TODO test with 1.3 +DEPEND=">=virtual/jdk-1.4 + test? ( + dev-java/ant-junit + =dev-java/junit-3* + )" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + java-pkg-2_pkg_setup + + BITS="32" + use amd64 && BITS="64" +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # TODO file upstream + epatch "${FILESDIR}/${P}-build.xml.patch" + + use x86 && sed -i -e 's|gcc -O3 -Wall --pedantic|$(CC) $(CFLAGS) -fPIC|g' \ + "src/c/Makefile-linux-x86-${BITS}" + use amd64 && sed -i -e 's|gcc -O3 -fPIC -Wall --pedantic|$(CC) $(CFLAGS) -fPIC|g' \ + "src/c/Makefile-linux-x86-${BITS}" + # remove to avoid usage of stuff here" + rm -R tools + + if use test; then + mkdir lib + cd lib + java-pkg_jar-from --build-only junit + fi +} + +src_compile() { + eant -Dbits=${BITS} jar compile-c $(use_doc -Djdoc.dir=api jdoc) +} + +src_test() { + ANT_TASKS="ant-junit ant-nodeps" eant -Dbits="${BITS}" test +} + +src_install() { + java-pkg_dojar lib/wrapper.jar + java-pkg_doso lib/libwrapper.so + + dobin bin/wrapper + dodoc doc/{AUTHORS,readme.txt,revisions.txt} + + use doc && dohtml -r doc/english/ + use doc && java-pkg_dojavadoc api + use source && java-pkg_dosrc src/java/* +} diff --git a/dev-java/java-service-wrapper/metadata.xml b/dev-java/java-service-wrapper/metadata.xml new file mode 100644 index 000000000000..f8e2b487f364 --- /dev/null +++ b/dev-java/java-service-wrapper/metadata.xml @@ -0,0 +1,22 @@ +<?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"> + The Java Service Wrapper is an application which has evolved out of a desire + to solve a number of problems common to many Java applications: + + * Run as a Windows Service or Unix Daemon + * Application Reliability + * Standard, Out of the Box Scripting + * On Demand Restarts + * Flexible Configuration + * Ease Application Installations + * Logging + </longdescription> +</pkgmetadata> + |