diff options
author | 2013-05-15 09:06:37 +0200 | |
---|---|---|
committer | 2013-05-15 09:06:37 +0200 | |
commit | 2ac0a0aad36b0b16a3e44e4dac3d831d03f1b947 (patch) | |
tree | 1cd4f0aa77a3a27cedb6f798f1588bbe48cea26a /dev-java/jetty-security/jetty-security-8.1.10.ebuild | |
parent | Added Eclipse Jetty dependencies for Eclipse SDK. (diff) | |
download | TomWij-2ac0a0aad36b0b16a3e44e4dac3d831d03f1b947.tar.gz TomWij-2ac0a0aad36b0b16a3e44e4dac3d831d03f1b947.tar.bz2 TomWij-2ac0a0aad36b0b16a3e44e4dac3d831d03f1b947.zip |
Dropped the eclipse- prefix since Eclipse took over the Jetty project and therefore there is no separation necessary.
Package-Manager: portage-2.1.11.63
Manifest-Sign-Key: 6D34E57D
Diffstat (limited to 'dev-java/jetty-security/jetty-security-8.1.10.ebuild')
-rw-r--r-- | dev-java/jetty-security/jetty-security-8.1.10.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-java/jetty-security/jetty-security-8.1.10.ebuild b/dev-java/jetty-security/jetty-security-8.1.10.ebuild new file mode 100644 index 0000000..65ed9e8 --- /dev/null +++ b/dev-java/jetty-security/jetty-security-8.1.10.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" + +JAVA_PKG_IUSE="test" + +inherit java-pkg-2 java-ant-2 java-osgi + +DESCRIPTION="Eclipse Jetty Security" +HOMEPAGE="http://www.eclipse.org/jetty/" +LICENSE="Apache-2.0 EPL-1.0" + +BUILD_DATE="20130312" + +MY_PV="${PV}.v${BUILD_DATE}" +MY_P="${PN}-${MY_PV}" + +SRC_URI="http://repo1.maven.org/maven2/org/eclipse/jetty/${PN}/${MY_PV}/${MY_P}-sources.jar" +SLOT="8" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}" + +COMMON_DEPEND="dev-java/jetty-http:8 + dev-java/jetty-server:8 + dev-java/jetty-util:8 + java-virtuals/servlet-api:3.0" + +DEPEND="${COMMON_DEPEND} + >=virtual/jdk-1.7 + test? ( + dev-java/ant-junit:0 + dev-java/junit:0 + )" + +RDEPEND="${COMMON_DEPEND} + >=virtual/jre-1.7" + +java_prepare() { + cd "${S}" || die + cp "${FILESDIR}"/${P}-build.xml build.xml || die + sed -i 's/manifest=".*"/manifest="META-INF\/MANIFEST.MF"/g' build.xml || die + sed -i 's/\(<mkdir dir="${maven.build.outputDir}"\/>\)/\1<javac srcdir="." destdir="${maven.build.outputDir}" \/>/g' build.xml || die +} + +EANT_GENTOO_CLASSPATH="jetty-util-8,jetty-http-8,jetty-server-8,servlet-api-3.0" +EANT_TEST_GENTOO_CLASSPATH="junit" +JAVA_ANT_REWRITE_CLASSPATH="true" + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-osgi_newjar-fromfile target/${MY_P}.jar META-INF/MANIFEST.MF org.eclipse.jetty.security +}
\ No newline at end of file |