diff options
Diffstat (limited to 'dev-java/eclipse-jetty-io/eclipse-jetty-io-8.1.10.ebuild')
-rw-r--r-- | dev-java/eclipse-jetty-io/eclipse-jetty-io-8.1.10.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/dev-java/eclipse-jetty-io/eclipse-jetty-io-8.1.10.ebuild b/dev-java/eclipse-jetty-io/eclipse-jetty-io-8.1.10.ebuild new file mode 100644 index 0000000..211b187 --- /dev/null +++ b/dev-java/eclipse-jetty-io/eclipse-jetty-io-8.1.10.ebuild @@ -0,0 +1,67 @@ +# 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 I/O" +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/eclipse-/}-${MY_PV}" + +SRC_URI="http://repo1.maven.org/maven2/org/eclipse/jetty/${PN/eclipse-/}/${MY_PV}/${MY_P}-sources.jar" +SLOT="8" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}" + +COMMON_DEPEND="dev-java/eclipse-jetty-util:8" + +DEPEND="${COMMON_DEPEND} + >=virtual/jdk-1.7 + dev-java/slf4j-api:0 + test? ( + dev-java/ant-junit:0 + dev-java/junit:0 + ) + java-virtuals/servlet-api:3.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 + + for FILE in $(find . -name '*.java') ; do + echo "Processing ${FILE} ..." + sed -i 's/org.mortbay\(\|.util\)/org.eclipse.jetty.util/g' ${FILE} || die + done +} + +EANT_TEST_GENTOO_CLASSPATH="junit" +JAVA_ANT_REWRITE_CLASSPATH="true" + +src_compile() { + EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar eclipse-jetty-util-8 eclipse-jetty-util.jar):$(java-pkg_getjar --build-only servlet-api-3.0 servlet-api.jar):$(java-pkg_getjar --build-only slf4j-api slf4j-api.jar)" + + java-pkg-2_src_compile +} + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-osgi_newjar-fromfile target/${MY_P}.jar META-INF/MANIFEST.MF org.eclipse.jetty.io +}
\ No newline at end of file |