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-io
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-io')
-rw-r--r--dev-java/jetty-io/Manifest18
-rw-r--r--dev-java/jetty-io/files/jetty-io-8.1.10-build.xml188
-rw-r--r--dev-java/jetty-io/jetty-io-8.1.10.ebuild67
-rw-r--r--dev-java/jetty-io/metadata.xml11
4 files changed, 284 insertions, 0 deletions
diff --git a/dev-java/jetty-io/Manifest b/dev-java/jetty-io/Manifest
new file mode 100644
index 0000000..2005fec
--- /dev/null
+++ b/dev-java/jetty-io/Manifest
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX jetty-io-8.1.10-build.xml 9738 SHA256 132b1ce62421837aafbbcd038a6977c554b3bd0160ff43f47a2134f85dd8e734 SHA512 4529d667dab97a31da764f0995ec6a1d54b7f71639a793a2c6dea51bf0f70fcfb880830346cde0fec10e0bc646b0020ecdbac6e95f4a19fdbe03254ad7ca91da WHIRLPOOL 0801fc3f48c3aa3e117bb3f0d72ec85a274d947bc2968ebd0b70376a1599fc9a283bbed5f7e2d7808c996919067ee943ba55accd44322db4e330aadea41b1723
+DIST jetty-io-8.1.10.v20130312-sources.jar 68828 SHA256 a27eb08d32fbd9250151d6ea6447be2a848d6d364f938b5f393bc83eea3ea7d4 SHA512 77a3462d09d90fbd95bd6fbd1ece330522d40d6604a085869e3a635afab50ace70d4eeb73b768b6720237d45f66e3847f054f73a9812b6d95dd49aed13543d5e WHIRLPOOL 36b68663134c840ec08491a53a4de95749ab00d92e23c3376303f109e4a4d47cee1223a0ae2d1db363ec53f9202350ae17929b3ef3461778cc6e7f6ee9a4b5e2
+EBUILD jetty-io-8.1.10.ebuild 1673 SHA256 6b244cdf0ffaceba11493f5569f057e46672482fd4c603116ed91ec43ccf8e17 SHA512 b35b8460b790084dbf649db36931353a1aa6d0fa42b1defb5c3c2257522d394ee28d84f709c70f7bdc2d4d27cb5e3d44bde890c55f6007ff1cd213f138c30e10 WHIRLPOOL 61cc38a40748b8f3b587b15b1ae970187602eb20849b626d5894553311417d4434aae694ef7f7d439c407d485b3d8813e3909bf5b056ba59f0e24d4df3988c3b
+MISC metadata.xml 298 SHA256 851a0435956e3c2a74ef7a72454168ddff9783be87bf753a6af94ff6e9da65ea SHA512 5da53abd7ad37c814c6ac0aea912d80e0113e6c944cc5064b4f0bdde5eff3ac45878730eee1b67e218443686f572a93d02a30566a2bca493a53cb449eeefaa66 WHIRLPOOL 6cc8ac5a3a6065685d0398b78a16f497e261af0ceb3055d35b9b9dbd14dc5a933f7b1f882837f9d3ee9f119527cb9c231b6c70a3ea784dbeedea924cd35dccc5
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBCAAGBQJRkzKXAAoJEJWyH81tNOV9cnIIALZY7/9CTgseB+JRB0w0Q2XV
+eHc855Tng8m9luf2XL2vzSUHHGc63P5zkkYEyDAa5dlWBEBjYdWwIl5cn96oaLck
+Us5CN5h1x7b2YqW6lEVPPlWke78ujrH3esMA9nKKVWzUz7lIbav6eSwNysMH6jXg
+UtyibdF/mLd9B1Erlgw6u6CEHQLJ4jrZ2uoBCvrPaFxgjFuPXZ3KlmNtktCrMYcG
+Bdm5AVXN7cKgvd7Plk/tu8zkQRsEYfuvB63oa+kzjPVmFUIn+/527wViuwr+mcAi
+1/OlrAT0RsKv26qz5plS5nifUUGkOQfx1K12gD0KM8X1MeYVl7Pr97JT4PmULVA=
+=3rba
+-----END PGP SIGNATURE-----
diff --git a/dev-java/jetty-io/files/jetty-io-8.1.10-build.xml b/dev-java/jetty-io/files/jetty-io-8.1.10-build.xml
new file mode 100644
index 0000000..d71a6a2
--- /dev/null
+++ b/dev-java/jetty-io/files/jetty-io-8.1.10-build.xml
@@ -0,0 +1,188 @@
+<?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:02 PM -->
+<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<project name="jetty-io-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-io-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-util/8.1.3.v20120416/jetty-util-8.1.3.v20120416.jar"/>
+ </path>
+ <path id="build.test.classpath">
+ <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/toolchain/jetty-test-helper/1.6.1/jetty-test-helper-1.6.1.jar"/>
+ <pathelement location="${maven.repo.local}/junit/junit-dep/4.8.1/junit-dep-4.8.1.jar"/>
+ <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.2.1/hamcrest-core-1.2.1.jar"/>
+ <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-library/1.2.1/hamcrest-library-1.2.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-io-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-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/toolchain/jetty-test-helper/1.6.1"/>
+ <get src="http://repo.maven.apache.org/maven2/org/eclipse/jetty/toolchain/jetty-test-helper/1.6.1/jetty-test-helper-1.6.1.jar"
+ dest="${maven.repo.local}/org/eclipse/jetty/toolchain/jetty-test-helper/1.6.1/jetty-test-helper-1.6.1.jar"
+ usetimestamp="false"
+ ignoreerrors="true"/>
+ <mkdir dir="${maven.repo.local}/junit/junit-dep/4.8.1"/>
+ <get src="http://repo.maven.apache.org/maven2/junit/junit-dep/4.8.1/junit-dep-4.8.1.jar"
+ dest="${maven.repo.local}/junit/junit-dep/4.8.1/junit-dep-4.8.1.jar"
+ usetimestamp="false"
+ ignoreerrors="true"/>
+ <mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-core/1.2.1"/>
+ <get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.2.1/hamcrest-core-1.2.1.jar"
+ dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.2.1/hamcrest-core-1.2.1.jar"
+ usetimestamp="false"
+ ignoreerrors="true"/>
+ <mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-library/1.2.1"/>
+ <get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-library/1.2.1/hamcrest-library-1.2.1.jar"
+ dest="${maven.repo.local}/org/hamcrest/hamcrest-library/1.2.1/hamcrest-library-1.2.1.jar"
+ usetimestamp="false"
+ ignoreerrors="true"/>
+ </target>
+
+</project>
diff --git a/dev-java/jetty-io/jetty-io-8.1.10.ebuild b/dev-java/jetty-io/jetty-io-8.1.10.ebuild
new file mode 100644
index 0000000..24d0332
--- /dev/null
+++ b/dev-java/jetty-io/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}-${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-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 jetty-util-8 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
diff --git a/dev-java/jetty-io/metadata.xml b/dev-java/jetty-io/metadata.xml
new file mode 100644
index 0000000..7499377
--- /dev/null
+++ b/dev-java/jetty-io/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 IO
+ </longdescription>
+</pkgmetadata>