summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Wijsman <TomWij@live.com>2013-05-15 09:06:37 +0200
committerTom Wijsman <TomWij@live.com>2013-05-15 09:06:37 +0200
commit2ac0a0aad36b0b16a3e44e4dac3d831d03f1b947 (patch)
tree1cd4f0aa77a3a27cedb6f798f1588bbe48cea26a /dev-java/jetty-http
parentAdded Eclipse Jetty dependencies for Eclipse SDK. (diff)
downloadTomWij-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-http')
-rw-r--r--dev-java/jetty-http/Manifest18
-rw-r--r--dev-java/jetty-http/files/jetty-http-8.1.10-build.xml184
-rw-r--r--dev-java/jetty-http/jetty-http-8.1.10.ebuild68
-rw-r--r--dev-java/jetty-http/metadata.xml11
4 files changed, 281 insertions, 0 deletions
diff --git a/dev-java/jetty-http/Manifest b/dev-java/jetty-http/Manifest
new file mode 100644
index 0000000..389c3ae
--- /dev/null
+++ b/dev-java/jetty-http/Manifest
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX jetty-http-8.1.10-build.xml 9628 SHA256 2335df856dd34847da4e382b4944738157f8551bd4535bf8e73e4ead311a188a SHA512 0217fc04096833d35682ed43b2ac1f77e752a3a39db3c33baf335f9eb071fdd3222d83e2f1dacc64178f2fafe708c7e95dc08d4db2026054c244ab8f82eeb982 WHIRLPOOL 8471c3b34cce7a4945267cd30ec69c31e47f3be497bc8a90668812d64773bc3d7b8145b040044e1ee3abfd5d227a3d8ffb29603987a485b602cc4f2135b6a88e
+DIST jetty-http-8.1.10.v20130312-sources.jar 66886 SHA256 b49c714ed1aa4983e756c4faefeff2aa5d041896b76a801fc5e7ca5ddbbcab28 SHA512 4b0671d137b1989e8ce74b91584b7805f6c9060b4d8b2995c169a311686dd61ba08e9df3e7947f4c2e1babad9a913d1c273863c90ea6bcb2dd87cb3fa50fc081 WHIRLPOOL 3c6f32c143b7f822e0eb4d5d60f38d45324879792895e4d914d36f42d6a5c47b34efced16e9e5fed5a384da323e8c98ae7d6c18f21c225781cabead2706002e2
+EBUILD jetty-http-8.1.10.ebuild 1727 SHA256 85a2cf573ae7a05eb013f92ded769113ff3777ad15a7b4eb0485f7c3c7fc1720 SHA512 d5bb780d345ef382b1aaa26b553538dad42fcab58a63e9b632a25c9f3b6420de5f3c92d5715cb98d74a9351870aeb1ea2b0cb42e093fdd2abaad4aeb292e2829 WHIRLPOOL 3a1cde5c0a68c8f04940452645b0f33a83f5786ed49d02d023284214d7985a4ffc1652b92bf51cae1445671b2c7b144f9b114b96e4b905ec2f17893dfdeed733
+MISC metadata.xml 300 SHA256 62949ff7913f0e80ce6ebb060d75d60b808a1e2016f955cf59a01c211e2cc95b SHA512 6b926507fa1dad24a81fc1c08160e1ab3da24327c385a56a600c4e356d73f00f289b0bcfa53b45bc33f894a1b2378ed6c619ddb7153ea8d373280bd631576245 WHIRLPOOL 759a35f41ea942fc9308b41fc8f2fa92ee61a59d27f6e683e52cff29faf28dc847d496ae47fedba72efb5a4b8211e72a48c64d1bead551105cf55980b62564b3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBCAAGBQJRkzKTAAoJEJWyH81tNOV9iu0H/jit/1sIsRA9dhQSNCeuZNtg
+dQk+fF4TvKYB4xEioHLVCdsqI+02rNKxCdvoltl0wSRsHGVw5r1/QONBNIdFwN56
+t6a5e8rfu+I/2Yq+m6rx2/WbErBsYh3Q6CAvcrjBVKLOPxGUSOoSnQBx23MXWR4T
+7I9txDuS++bm8TNq6KPyuKpFGuC359bzy5JZMWQnc7/0LPI0SBoMV05d3MG9F98f
+mi9DsYqxcKCc8e585RbwLg4fxygHkWyyiArwV9RpB0zJYEU0qcw6lAHoSUs2aMpd
+dFVHN8AnV//t6VT2ugmX9Ot0/pvtnfV1od8O9y6/C/OyT2GhryKts+Ah6aiM8DI=
+=2nMh
+-----END PGP SIGNATURE-----
diff --git a/dev-java/jetty-http/files/jetty-http-8.1.10-build.xml b/dev-java/jetty-http/files/jetty-http-8.1.10-build.xml
new file mode 100644
index 0000000..e2d9b8c
--- /dev/null
+++ b/dev-java/jetty-http/files/jetty-http-8.1.10-build.xml
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
+<!-- ====================================================================== -->
+
+<!-- ====================================================================== -->
+<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
+<!-- ====================================================================== -->
+<!-- -->
+<!-- Any modifications will be overwritten. -->
+<!-- -->
+<!-- Generated by Maven Ant Plugin on 5/12/13 3:11 PM -->
+<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<project name="jetty-http-from-maven" default="package" basedir=".">
+
+ <!-- ====================================================================== -->
+ <!-- Build environment properties -->
+ <!-- ====================================================================== -->
+
+ <property file="${user.home}/.m2/maven.properties"/>
+ <property file="maven-build.properties"/>
+
+ <property name="maven.build.finalName" value="jetty-http-8.1.10.v20130312"/>
+ <property name="maven.build.dir" value="target"/>
+ <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
+ <property name="maven.build.srcDir.0" value="src/main/java"/>
+ <property name="maven.build.resourceDir.0" value="src/main/resources"/>
+ <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
+ <property name="maven.build.testDir.0" value="src/test/java"/>
+ <property name="maven.build.testResourceDir.0" value="src/test/resources"/>
+ <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
+ <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
+
+ <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
+ <property name="maven.settings.offline" value="false"/>
+ <property name="maven.settings.interactiveMode" value="true"/>
+
+ <!-- ====================================================================== -->
+ <!-- Defining classpaths -->
+ <!-- ====================================================================== -->
+
+ <path id="build.classpath">
+ <pathelement location="${maven.repo.local}/org/eclipse/jetty/jetty-io/8.1.3.v20120416/jetty-io-8.1.3.v20120416.jar"/>
+ <pathelement location="${maven.repo.local}/org/eclipse/jetty/jetty-util/8.1.3.v20120416/jetty-util-8.1.3.v20120416.jar"/>
+ <pathelement location="${maven.repo.local}/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar"/>
+ </path>
+ <path id="build.test.classpath">
+ <pathelement location="${maven.repo.local}/org/eclipse/jetty/jetty-io/8.1.3.v20120416/jetty-io-8.1.3.v20120416.jar"/>
+ <pathelement location="${maven.repo.local}/org/eclipse/jetty/jetty-util/8.1.3.v20120416/jetty-util-8.1.3.v20120416.jar"/>
+ <pathelement location="${maven.repo.local}/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar"/>
+ <pathelement location="${maven.repo.local}/junit/junit/4.8.1/junit-4.8.1.jar"/>
+ </path>
+
+ <!-- ====================================================================== -->
+ <!-- Cleaning up target -->
+ <!-- ====================================================================== -->
+
+ <target name="clean" description="Clean the output directory">
+ <delete dir="${maven.build.dir}"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Compilation target -->
+ <!-- ====================================================================== -->
+
+ <target name="compile" depends="get-deps" description="Compile the code">
+ <mkdir dir="${maven.build.outputDir}"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Test-compilation target -->
+ <!-- ====================================================================== -->
+
+ <target name="compile-tests"
+ depends="compile"
+ description="Compile the test code"
+ unless="maven.test.skip">
+ <mkdir dir="${maven.build.testOutputDir}"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Run all tests -->
+ <!-- ====================================================================== -->
+
+ <target name="test"
+ depends="compile-tests, junit-missing"
+ unless="junit.skipped"
+ description="Run the test cases"/>
+
+ <target name="test-junit-present">
+ <available classname="junit.framework.Test" property="junit.present"/>
+ </target>
+
+ <target name="test-junit-status"
+ depends="test-junit-present">
+ <condition property="junit.missing">
+ <and>
+ <isfalse value="${junit.present}"/>
+ <isfalse value="${maven.test.skip}"/>
+ </and>
+ </condition>
+ <condition property="junit.skipped">
+ <or>
+ <isfalse value="${junit.present}"/>
+ <istrue value="${maven.test.skip}"/>
+ </or>
+ </condition>
+ </target>
+
+ <target name="junit-missing"
+ depends="test-junit-status"
+ if="junit.missing">
+ <echo>=================================== WARNING ===================================</echo>
+ <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
+ <echo>===============================================================================</echo>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Javadoc target -->
+ <!-- ====================================================================== -->
+
+ <target name="javadoc" description="Generates the Javadoc of the application"/>
+
+ <!-- ====================================================================== -->
+ <!-- Package target -->
+ <!-- ====================================================================== -->
+
+ <target name="package" depends="compile,test" description="Package the application">
+ <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
+ compress="true"
+ index="false"
+ manifest="/var/tmp/portage/dev-java/jetty-http-9.0.3/work/target/classes/META-INF/MANIFEST.MF"
+ basedir="${maven.build.outputDir}"
+ excludes="**/package.html"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- A dummy target for the package named after the type it creates -->
+ <!-- ====================================================================== -->
+
+ <target name="jar" depends="package" description="Builds the jar for the application"/>
+
+ <!-- ====================================================================== -->
+ <!-- Download dependencies target -->
+ <!-- ====================================================================== -->
+
+ <target name="test-offline">
+ <condition property="maven.mode.offline">
+ <equals arg1="${maven.settings.offline}" arg2="true"/>
+ </condition>
+ </target>
+
+ <target name="get-deps"
+ depends="test-offline"
+ description="Download all dependencies"
+ unless="maven.mode.offline">
+ <mkdir dir="${maven.repo.local}"/>
+ <mkdir dir="${maven.repo.local}/org/eclipse/jetty/jetty-io/8.1.3.v20120416"/>
+ <get src="http://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-io/8.1.3.v20120416/jetty-io-8.1.3.v20120416.jar"
+ dest="${maven.repo.local}/org/eclipse/jetty/jetty-io/8.1.3.v20120416/jetty-io-8.1.3.v20120416.jar"
+ usetimestamp="false"
+ ignoreerrors="true"/>
+ <mkdir dir="${maven.repo.local}/org/eclipse/jetty/jetty-util/8.1.3.v20120416"/>
+ <get src="http://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-util/8.1.3.v20120416/jetty-util-8.1.3.v20120416.jar"
+ dest="${maven.repo.local}/org/eclipse/jetty/jetty-util/8.1.3.v20120416/jetty-util-8.1.3.v20120416.jar"
+ usetimestamp="false"
+ ignoreerrors="true"/>
+ <mkdir dir="${maven.repo.local}/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016"/>
+ <get src="http://repo.maven.apache.org/maven2/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar"
+ dest="${maven.repo.local}/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar"
+ usetimestamp="false"
+ ignoreerrors="true"/>
+ <mkdir dir="${maven.repo.local}/junit/junit/4.8.1"/>
+ <get src="http://repo.maven.apache.org/maven2/junit/junit/4.8.1/junit-4.8.1.jar"
+ dest="${maven.repo.local}/junit/junit/4.8.1/junit-4.8.1.jar"
+ usetimestamp="false"
+ ignoreerrors="true"/>
+ </target>
+
+</project>
diff --git a/dev-java/jetty-http/jetty-http-8.1.10.ebuild b/dev-java/jetty-http/jetty-http-8.1.10.ebuild
new file mode 100644
index 0000000..e9c2b90
--- /dev/null
+++ b/dev-java/jetty-http/jetty-http-8.1.10.ebuild
@@ -0,0 +1,68 @@
+# 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 HTTP"
+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-io:8
+ dev-java/jetty-util:8
+ java-virtuals/servlet-api:3.0"
+
+DEPEND="${COMMON_DEPEND}
+ >=virtual/jdk-1.7
+ dev-java/slf4j-api:0
+ 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
+
+ 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 jetty-util-8 jetty-util.jar):$(java-pkg_getjar jetty-io-8 jetty-io.jar):$(java-pkg_getjar 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.http
+} \ No newline at end of file
diff --git a/dev-java/jetty-http/metadata.xml b/dev-java/jetty-http/metadata.xml
new file mode 100644
index 0000000..de4a63c
--- /dev/null
+++ b/dev-java/jetty-http/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>TomWij@gentoo.org</email>
+ <name>Tom Wijsman</name>
+ </maintainer>
+ <longdescription>
+ Eclipse Jetty HTTP
+ </longdescription>
+</pkgmetadata>