diff options
author | Tom Wijsman <TomWij@live.com> | 2013-05-15 09:06:37 +0200 |
---|---|---|
committer | Tom Wijsman <TomWij@live.com> | 2013-05-15 09:06:37 +0200 |
commit | 2ac0a0aad36b0b16a3e44e4dac3d831d03f1b947 (patch) | |
tree | 1cd4f0aa77a3a27cedb6f798f1588bbe48cea26a /dev-java/jetty-util | |
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-util')
-rw-r--r-- | dev-java/jetty-util/Manifest | 18 | ||||
-rw-r--r-- | dev-java/jetty-util/files/jetty-util-8.1.10-build.xml | 201 | ||||
-rw-r--r-- | dev-java/jetty-util/jetty-util-8.1.10.ebuild | 56 | ||||
-rw-r--r-- | dev-java/jetty-util/metadata.xml | 11 |
4 files changed, 286 insertions, 0 deletions
diff --git a/dev-java/jetty-util/Manifest b/dev-java/jetty-util/Manifest new file mode 100644 index 0000000..9fc1c3b --- /dev/null +++ b/dev-java/jetty-util/Manifest @@ -0,0 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX jetty-util-8.1.10-build.xml 10755 SHA256 66c355dfc3637306b284e3f3583c60f4f76e664b17f7caac80cc3044a1b7124b SHA512 e64782372f482fb8a3cbc94fd543d1829fc74a96bb79fb068e3bd56a05e2ecf950a2ac8244d1dc1260dde03e33fc5a1ffad8c7888deba69b0e14fe716a41a67b WHIRLPOOL fc29b413e447154770760ee34aab75454abf553430d58c89cdfb6dc5e7b3497b3905c01af00802b3d9404b0258db15fc25065d46cae2e07ed65a6276daf32e86 +DIST jetty-util-8.1.10.v20130312-sources.jar 194076 SHA256 c68898bf496d34c494929b0106d75a82155440fbb6da24faea1462aa50646180 SHA512 94e37defaf9bd0453cb0d75f445fdef982f59f77e66af5409ae54b29ee68fddab6f6305f1d8154edf5e5352d9e61bc632709ad5e606e13182851a7598cfd773b WHIRLPOOL 0cf0dc1e588a33600b18d496bac995a66f649e35a40b5964ced25903bcbb8d6dca536d45383ba35c0bb838ce94337964e489663a6213841341c267c82eea281a +EBUILD jetty-util-8.1.10.ebuild 1296 SHA256 2d453750564c6e8775b1471d0c3a3b39344a4d1d6d527cbc94dcf4a355455d80 SHA512 36107ced39cbd8ae750b9f9caba73759184ee8b178c69e9ddfb16ea3064da9144ca429e1539a14bce5d20b5511b375d6810e0a5d0a7ccc1989f828e000440aee WHIRLPOOL 3fac2734fca855476b474b2ef944e7d93e7734eca0ed6439c3c7410128e27dc5d0e2832991b8f4e1d24140d2e1f45292cfe0f3332ad568354bf6346964c336e3 +MISC metadata.xml 300 SHA256 4e747eb00efaaeebdf0162494155d253776168bc8bc2c11683b1a2e65c2b2811 SHA512 0176e840d3e8b3707064e294c95c64fb8c311b8f6c402156fb2b64360bd98a573953c8fbb3c9569a6c955a9abc3a308f5234a5e5fc26fe795291358f7a055f9b WHIRLPOOL 09d36c84ebd1548d344c35bbef7e40afd51a78a73c728e6bd2d8257a10d6bb1e570c60b9b191253998734296a4978ab87076b1881f950854c102b2c0f74c6693 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCAAGBQJRkzKkAAoJEJWyH81tNOV9WCkIAMXe1J7uliE/Acrsb2tCNKYJ +SRMsStxWeb3EcnWrpWYrIiDC3FCM9oSmV2pkER8IUwPj8GGSXO3bf2xW4T7p9OA0 +0a5+kFjjShGOE+sRkYogNRiRuwJwlBkdmlS5H99ysHlvkpGghAj0gT0SkFLAvhyF +Mo4r4JWT3tQ7y8efcVemKpUNYUC+/SP9NdozX39L1DOUMqpawijXsApo2b+MICIb +pi4wfAidi12OgTnVmsM3JNmi2Phoayw7F+uah8/SGjaNTc9bie3TtlCizpxMP0Iu +5r522WV9SMA5KPaVHv7998Hd6UO2DcV0aN71R1Xs03V/XAn+sCW30RCKHNn8rEc= +=VQgp +-----END PGP SIGNATURE----- diff --git a/dev-java/jetty-util/files/jetty-util-8.1.10-build.xml b/dev-java/jetty-util/files/jetty-util-8.1.10-build.xml new file mode 100644 index 0000000..f760c52 --- /dev/null +++ b/dev-java/jetty-util/files/jetty-util-8.1.10-build.xml @@ -0,0 +1,201 @@ +<?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 2:35 PM --> +<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> +<!-- --> +<!-- ====================================================================== --> + +<project name="jetty-util-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-util-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/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar"/> + <pathelement location="${maven.repo.local}/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar"/> + </path> + <path id="build.test.classpath"> + <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}/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"/> + <pathelement location="${maven.repo.local}/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar"/> + <pathelement location="${maven.repo.local}/org/slf4j/slf4j-jdk14/1.6.1/slf4j-jdk14-1.6.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-util-8.1.9/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/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}/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"/> + <mkdir dir="${maven.repo.local}/org/slf4j/slf4j-api/1.6.1"/> + <get src="http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar" + dest="${maven.repo.local}/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/org/slf4j/slf4j-jdk14/1.6.1"/> + <get src="http://repo.maven.apache.org/maven2/org/slf4j/slf4j-jdk14/1.6.1/slf4j-jdk14-1.6.1.jar" + dest="${maven.repo.local}/org/slf4j/slf4j-jdk14/1.6.1/slf4j-jdk14-1.6.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + </target> + +</project> diff --git a/dev-java/jetty-util/jetty-util-8.1.10.ebuild b/dev-java/jetty-util/jetty-util-8.1.10.ebuild new file mode 100644 index 0000000..3bee8ba --- /dev/null +++ b/dev-java/jetty-util/jetty-util-8.1.10.ebuild @@ -0,0 +1,56 @@ +# 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 Util" +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/slf4j-api:0 + java-virtuals/servlet-api:3.0" + +DEPEND="${COMMON_DEPEND} + test? ( + dev-java/ant-junit:0 + dev-java/junit:0 + ) + >=virtual/jdk-1.7" + +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="slf4j-api,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.util +}
\ No newline at end of file diff --git a/dev-java/jetty-util/metadata.xml b/dev-java/jetty-util/metadata.xml new file mode 100644 index 0000000..a0cd1a3 --- /dev/null +++ b/dev-java/jetty-util/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 Util + </longdescription> +</pkgmetadata> |