diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2010-04-15 18:51:06 +0100 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2010-04-15 18:51:06 +0100 |
commit | 70596edaf73799f2ec0a2b4a5615bb7d12a280ff (patch) | |
tree | 7ea1001bedb364b7fc4fb37124300952432bb7fc /java-webapps | |
download | nelchael-70596edaf73799f2ec0a2b4a5615bb7d12a280ff.tar.gz nelchael-70596edaf73799f2ec0a2b4a5615bb7d12a280ff.tar.bz2 nelchael-70596edaf73799f2ec0a2b4a5615bb7d12a280ff.zip |
Initial commit: move from old overlay.
Diffstat (limited to 'java-webapps')
-rw-r--r-- | java-webapps/blojsom/ChangeLog | 7 | ||||
-rw-r--r-- | java-webapps/blojsom/Manifest | 4 | ||||
-rw-r--r-- | java-webapps/blojsom/blojsom-3.1.ebuild | 113 | ||||
-rw-r--r-- | java-webapps/blojsom/metadata.xml | 7 | ||||
-rw-r--r-- | java-webapps/test/ChangeLog | 7 | ||||
-rw-r--r-- | java-webapps/test/Manifest | 4 | ||||
-rw-r--r-- | java-webapps/test/metadata.xml | 7 | ||||
-rw-r--r-- | java-webapps/test/test-0.ebuild | 60 |
8 files changed, 209 insertions, 0 deletions
diff --git a/java-webapps/blojsom/ChangeLog b/java-webapps/blojsom/ChangeLog new file mode 100644 index 0000000..86ac181 --- /dev/null +++ b/java-webapps/blojsom/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for java-webapps/blojsom +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 12 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org> +metadata.xml: + Add metadata. + diff --git a/java-webapps/blojsom/Manifest b/java-webapps/blojsom/Manifest new file mode 100644 index 0000000..417b998 --- /dev/null +++ b/java-webapps/blojsom/Manifest @@ -0,0 +1,4 @@ +DIST blojsom-3.1-source.zip 12466958 RMD160 c10fbed10eea83f027a3199a6857f2463e075e82 SHA1 b430d899a678a916ab74ac8a16cf9b2d76d58940 SHA256 cf5e84cee18297650cedbfef6dac8f2ef65a7da9cc739e18bfc0a805d7ea317f +EBUILD blojsom-3.1.ebuild 2424 RMD160 a140bcef6708d58a79999ce5bb1b8e990b993272 SHA1 441824536d2d53b8607b6b1600ce85b440db17f1 SHA256 0a4cd347ccda27723e2d9370584bf48bb279a43cb5af3c2cf69163f97188c0b5 +MISC ChangeLog 206 RMD160 4221b2d47486e5cba09a4c36ca55602e1b48cfdb SHA1 9ef4a02148794d6879ecebdef629a83cf212155b SHA256 27f6d9b21eac48499c4c4fbe3035e59d19c43f9cb57e01239492731036496573 +MISC metadata.xml 209 RMD160 aad874f8991659f1214c1215c75597afc907d471 SHA1 9475be91874cb1e048ab26d4ea5ada17adcbc03f SHA256 ea9eb35c2edee74ca39c4e351322e86c12f3c37ce8a2bf1daa17ca5d07a578b7 diff --git a/java-webapps/blojsom/blojsom-3.1.ebuild b/java-webapps/blojsom/blojsom-3.1.ebuild new file mode 100644 index 0000000..a56dfac --- /dev/null +++ b/java-webapps/blojsom/blojsom-3.1.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +JAVA_PKG_IUSE="" + +inherit java-pkg-2 java-ant-2 java-webapp + +DESCRIPTION="Some blogging software" +HOMEPAGE="http://blojsom.sourceforge.net/" +SRC_URI="mirror://sourceforge/blojsom/${P}-source.zip" + +LICENSE="BSD" +SLOT="3" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# I know, there are few bundled jars, but that's not important for java-webapp +# eclass and also it nicely shows the warning showed by java-webapp ;) +COMMON_DEPS=" + =dev-java/asm-3* + =dev-java/cglib-2.1* + =dev-java/commons-io-1* + =dev-java/ehcache-1.2* + =dev-java/hibernate-3.1* + =dev-java/servletapi-2.4* + dev-java/xmlrpc + dev-java/antlr + dev-java/c3p0 + dev-java/commons-codec + dev-java/commons-collections + dev-java/commons-dbcp + dev-java/commons-fileupload + dev-java/commons-logging + dev-java/commons-pool + dev-java/dom4j + dev-java/jta + dev-java/junit + dev-java/log4j + dev-java/sun-jaf + dev-java/sun-javamail + dev-java/velocity +" + +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${COMMON_DEPS}" +RDEPEND=">=virtual/jdk-1.4 + ${COMMON_DEPS}" + +S="${WORKDIR}" + +WEBAPP_OWNED_JARS="blojsom-core-3.1.jar + blojsom-extensions-3.1.jar + blojsom-plugins-3.1.jar + blojsom-plugins-templates-3.1.jar + blojsom-resources-3.1.jar" + +src_unpack() { + + unpack ${A} + + cd "${S}/lib" + rm -fv *.jar + java-pkg_jar-from junit + java-pkg_jar-from servletapi-2.4 + + cd "${S}/war/WEB-INF/lib/" + rm -fv activation* + rm -fv antlr-* + rm -fv asm-* + rm -fv blojsom-* + rm -fv c3p0* + rm -fv cglib-* + rm -fv commons-{codec,collections,dbcp,fileupload,io,logging,pool}* + rm -fv dom4j* + rm -fv ehcache-* + rm -fv hibernate-* + rm -fv jta* + rm -fv log4j* + rm -fv mail* smtp* + rm -fv velocity* + rm -fv xmlrpc-* + java-pkg_jar-from antlr + java-pkg_jar-from asm-3 + java-pkg_jar-from c3p0 + java-pkg_jar-from cglib-2.1 + java-pkg_jar-from commons-codec + java-pkg_jar-from commons-collections + java-pkg_jar-from commons-dbcp + java-pkg_jar-from commons-fileupload + java-pkg_jar-from commons-io-1 + java-pkg_jar-from commons-logging + java-pkg_jar-from commons-pool + java-pkg_jar-from dom4j-1 + java-pkg_jar-from ehcache-1.2 + java-pkg_jar-from hibernate-3.1 + java-pkg_jar-from jta + java-pkg_jar-from log4j + java-pkg_jar-from sun-jaf + java-pkg_jar-from sun-javamail + java-pkg_jar-from velocity + java-pkg_jar-from xmlrpc + +} + +src_compile() { + eant war +} + +src_install() { + java-webapp_dowar "${S}/distro/${PN}.war" +} diff --git a/java-webapps/blojsom/metadata.xml b/java-webapps/blojsom/metadata.xml new file mode 100644 index 0000000..f9aa82e --- /dev/null +++ b/java-webapps/blojsom/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>nelchael@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/java-webapps/test/ChangeLog b/java-webapps/test/ChangeLog new file mode 100644 index 0000000..ab1b4fe --- /dev/null +++ b/java-webapps/test/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for java-webapps/test +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 12 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org> +metadata.xml: + Add metadata. + diff --git a/java-webapps/test/Manifest b/java-webapps/test/Manifest new file mode 100644 index 0000000..d3ef09e --- /dev/null +++ b/java-webapps/test/Manifest @@ -0,0 +1,4 @@ +DIST test-0.tar.bz2 19885 RMD160 f3e05961c54c74fcd3ccca7b9041453a48dd20ff SHA1 3bd8c60ccafabc8179cf8ce11db68fef32aaf851 SHA256 ea8ee0f145b2eae5500b7b4451d03f4be2b058f3134becf842a8d795364fc53c +EBUILD test-0.ebuild 1206 RMD160 87802f9f0d0f47dd3438968a473650937b52dcf6 SHA1 b7bd91bd78262b2c421c19c4c2a1192e29d0b5bf SHA256 b961a99c9f47fe828197a8daa37b699a84cdb01776725a431e5ddff204e394b8 +MISC ChangeLog 203 RMD160 097cddab1979fc96f5c9023d4813b26291d10714 SHA1 590b0c63d7d94b22f0370c7c012dbaaae4197aa9 SHA256 2f2ef1dcf517b1d18a02e8286b9373d7505107734492816451be3b0a50c45cf1 +MISC metadata.xml 209 RMD160 aad874f8991659f1214c1215c75597afc907d471 SHA1 9475be91874cb1e048ab26d4ea5ada17adcbc03f SHA256 ea9eb35c2edee74ca39c4e351322e86c12f3c37ce8a2bf1daa17ca5d07a578b7 diff --git a/java-webapps/test/metadata.xml b/java-webapps/test/metadata.xml new file mode 100644 index 0000000..f9aa82e --- /dev/null +++ b/java-webapps/test/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>nelchael@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/java-webapps/test/test-0.ebuild b/java-webapps/test/test-0.ebuild new file mode 100644 index 0000000..35957e4 --- /dev/null +++ b/java-webapps/test/test-0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +JAVA_PKG_IUSE="source" + +inherit java-pkg-2 java-ant-2 java-webapp + +DESCRIPTION="Private ebuild for java-webapps.eclass testing" +HOMEPAGE="http://localhost/" +SRC_URI="http://dev.gentoo.org/~nelchael/test-0.tar.bz2" + +RESTRICT="mirror" +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEPS=" + dev-java/ant-core + =dev-java/resin-servlet-api-3.0* + dev-java/jdynamite +" + +DEPEND="=virtual/jdk-1.5* + ${COMMON_DEPS}" +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPS}" + +src_unpack() { + + unpack ${A} + cd "${S}/lib" + rm -f *.jar + + # This tests "normal" from: + java-pkg_jar-from resin-servlet-api-2.4 + # This tests rename: + java-pkg_jar-from jdynamite jdynamite.jar jd.jar + # This doesn't record individual jar names: + java-pkg_jar-from ant-core,ant-core + # Get out-of-portage jars - tests missing jars: + touch phony + zip -q9 "${S}/lib/0000.jar" phony + zip -q9 "${S}/lib/dddd.jar" phony + zip -q9 "${S}/lib/zzzz.jar" phony + + +} + +src_compile() { + eant war || die "eant failed" +} + +src_install() { + + java-webapp_newwar "${S}/test-0.war" "${PN}.war" + use source && java-pkg_dosrc "${S}"/src/* + +} |