summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Wijsman <tomwij@gentoo.org>2014-05-21 10:38:19 +0000
committerTom Wijsman <tomwij@gentoo.org>2014-05-21 10:38:19 +0000
commit576fec5aa7a4c3edb178a21000c8f2a6d8273105 (patch)
treea7ad52ad92bc78a2d5682f917ad4d373fbbed599 /dev-java/netty-transport
parentwww-client/pybugz: Update patch (diff)
downloadhistorical-576fec5aa7a4c3edb178a21000c8f2a6d8273105.tar.gz
historical-576fec5aa7a4c3edb178a21000c8f2a6d8273105.tar.bz2
historical-576fec5aa7a4c3edb178a21000c8f2a6d8273105.zip
New ebuild for dev-java/netty-transport, async event-driven framework for rapid development of high performance network applications; requested by Arfrever, needed for new Jython versions.
Package-Manager: portage-HEAD/cvs/Linux x86_64 Manifest-Sign-Key: 0x6D34E57D
Diffstat (limited to 'dev-java/netty-transport')
-rw-r--r--dev-java/netty-transport/ChangeLog8
-rw-r--r--dev-java/netty-transport/Manifest19
-rw-r--r--dev-java/netty-transport/files/netty-transport-4.0.19-build.xml231
-rw-r--r--dev-java/netty-transport/metadata.xml5
-rw-r--r--dev-java/netty-transport/netty-transport-4.0.19.ebuild66
5 files changed, 329 insertions, 0 deletions
diff --git a/dev-java/netty-transport/ChangeLog b/dev-java/netty-transport/ChangeLog
new file mode 100644
index 000000000000..32af96dea164
--- /dev/null
+++ b/dev-java/netty-transport/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for dev-java/netty-transport
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/netty-transport/ChangeLog,v 1.1 2014/05/21 10:38:11 tomwij Exp $
+
+ 21 May 2014; Tom Wijsman <TomWij@gentoo.org> :
+ New ebuild for dev-java/netty-transport, async event-driven framework for
+ rapid development of high performance network applications; requested by
+ Arfrever, needed for new Jython versions.
diff --git a/dev-java/netty-transport/Manifest b/dev-java/netty-transport/Manifest
new file mode 100644
index 000000000000..af3144eb1174
--- /dev/null
+++ b/dev-java/netty-transport/Manifest
@@ -0,0 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX netty-transport-4.0.19-build.xml 9775 SHA256 423c6063d55ee60d5ac50605e1f8780aedb622141cf7ef81980f6dc1e635a5cc SHA512 f24c08c9edc1cf5fedf071e74a6c13d3f257e46c3d648d1f2e4a13f0380dda5bae382d5789e0d47c281354984f1225c1c168772fbae8f117d0a5f32b06735933 WHIRLPOOL a584d2d6d4b4c3338996eac373df4afcdf0bab8872ff00dc82180507bffb42b2f214820271d99618c385bd64b3fd01283f7b96f6a5b014de75390998cfcae8c1
+DIST netty-4.0.19.Final.tar.gz 929126 SHA256 065980d0232179a02dc52d55e9017f485c2cbcf14597172cac3bfd2db5dce9ac SHA512 031a251c93b2c475bbf12610f297ed47eacc430ba19e05fd33c12ab768b1d14556cb59d0f9e2a19f87c325b516323cd2ec13a341522825a19d76c27abb13a4cf WHIRLPOOL 8a2c026c62de3a26ef0c432af37b193b10bc826429399dc8fb8016d50cb22359e50087a10edecd69924861bf1f29da02b39810f37db514ba260a1ea9ef2692d0
+EBUILD netty-transport-4.0.19.ebuild 1757 SHA256 6d133355c81cb6d9562baf6c37f0940911f72f8e9f76f818d6ba0f60d8df0793 SHA512 942475579be53121e313ffe0ce9d4376e78e51c7a8e0ea5826a6cd94fd080b94a6d33f9ab96c98fe0c2e9625f4220ce8ed279cc02707eef5d26a0044507cc6b6 WHIRLPOOL fa8af4a3e3077d149d6c779b72b32f95b66fd4a16fbfc5b3624860d474cc398923506a9907c2c50d25579d1fb020783dbf127433e098ac34e600e3dc3f9bf707
+MISC ChangeLog 465 SHA256 6c706e4c8a63566bcb3290c8430e04b1deee839bfd51689bb3b8fa26c1fbed36 SHA512 1ba82d5e3fc57e972c70a91ece6391f0d18f9f5a42ad09bd32027231a0f018a6f2c313438094b92899b22d2c94387e9357878071a9d3a3e477be9f82a1d3ca73 WHIRLPOOL 1392e4ceb38e97b80be555ccc613a5e9af4eb0a0fd203d229a172f381c675af61484f62dc51bff982f432cf4b4d7868de3e9620c83c7bd67204c07fc89eca126
+MISC metadata.xml 157 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 SHA512 bbae663e26f48fdc5e272adc2b06c14f77f34c53caf84acb53908ff036e7c12a3edbbc0929d2db56bee861a453381d979c7e0983a23716f629ed2135c22ffece WHIRLPOOL 887e153e2481e7d76f0f1b67a395f10f0328b93930185ecdb8fcb5fe3c50f839086a18831d61cf45b34657aaffca6c3b7900cf3c04b712846a05027a84602448
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.22 (GNU/Linux)
+
+iQEcBAEBCAAGBQJTfIIEAAoJEJWyH81tNOV96KYH/iyOj8kWMOMgZCqyrRQYnYYX
+VsDLFk3eCzYfkpd1+j+6E5XD63JLr1HFwUb8KDfxmgndfkUqQgVtER9C+FtxPBqE
+R5FPcGNUKFYOs+1QTYIlaQBgNugVdhD3Cwaxg9QfztcvHgGFy+FGDc7tDc2RWXSh
+qm2/4ivvD9QCQo751raCmVB2hcgECbiJYaLc81eMsc6eTviOViMCKGc2ruhctWeg
+aFC/Zn4lvnqLWLXvKbBTILkfiVL/Toda7E16NQwcQYyb3q9eFrNvM9EpL1c0Xxd/
+x1cznGhLyvunEApiRJcjDrxIGCJ97szTRNZAoDBU0EGfJKAgfHEWMAT1TMyCsHM=
+=Xwnb
+-----END PGP SIGNATURE-----
diff --git a/dev-java/netty-transport/files/netty-transport-4.0.19-build.xml b/dev-java/netty-transport/files/netty-transport-4.0.19-build.xml
new file mode 100644
index 000000000000..c39d54c8ae3c
--- /dev/null
+++ b/dev-java/netty-transport/files/netty-transport-4.0.19-build.xml
@@ -0,0 +1,231 @@
+<?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/15/14 7:12 PM -->
+<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<project name="netty-transport-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="netty-transport-4.0.19.Final"/>
+ <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">
+ </path>
+ <path id="build.test.classpath">
+ </path>
+
+ <!-- ====================================================================== -->
+ <!-- Cleaning up target -->
+ <!-- ====================================================================== -->
+
+ <target name="clean" description="Clean the output directory">
+ <delete dir="${maven.build.dir}"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Compilation target -->
+ <!-- ====================================================================== -->
+
+ <target name="compile" description="Compile the code">
+ <mkdir dir="${maven.build.outputDir}"/>
+ <javac destdir="${maven.build.outputDir}"
+ nowarn="true"
+ debug="true"
+ optimize="true"
+ deprecation="true"
+ target="1.6"
+ verbose="false"
+ fork="true"
+ memoryMaximumSize="256m"
+ memoryInitialSize="1024m"
+ source="1.6">
+ <src>
+ <pathelement location="${maven.build.srcDir.0}"/>
+ </src>
+ <classpath refid="build.classpath"/>
+ </javac>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Test-compilation target -->
+ <!-- ====================================================================== -->
+
+ <target name="compile-tests"
+ depends="compile"
+ description="Compile the test code"
+ unless="maven.test.skip">
+ <mkdir dir="${maven.build.testOutputDir}"/>
+ <javac destdir="${maven.build.testOutputDir}"
+ nowarn="true"
+ debug="true"
+ optimize="true"
+ deprecation="true"
+ target="1.6"
+ verbose="false"
+ fork="true"
+ memoryMaximumSize="256m"
+ memoryInitialSize="1024m"
+ source="1.6">
+ <src>
+ <pathelement location="${maven.build.testDir.0}"/>
+ </src>
+ <classpath>
+ <path refid="build.test.classpath"/>
+ <pathelement location="${maven.build.outputDir}"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Run all tests -->
+ <!-- ====================================================================== -->
+
+ <target name="test"
+ depends="compile-tests, junit-missing"
+ unless="junit.skipped"
+ description="Run the test cases">
+ <mkdir dir="${maven.test.reports}"/>
+ <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <sysproperty key="basedir" value="."/>
+ <formatter type="xml"/>
+ <formatter type="plain" usefile="false"/>
+ <classpath>
+ <path refid="build.test.classpath"/>
+ <pathelement location="${maven.build.outputDir}"/>
+ <pathelement location="${maven.build.testOutputDir}"/>
+ </classpath>
+ <batchtest todir="${maven.test.reports}" unless="test">
+ <fileset dir="${maven.build.testDir.0}">
+ <include name="**/*Test*.java"/>
+ <include name="**/*Benchmark*.java"/>
+ <exclude name="**/Abstract*"/>
+ <exclude name="**/TestUtil*"/>
+ </fileset>
+ </batchtest>
+ <batchtest todir="${maven.test.reports}" if="test">
+ <fileset dir="${maven.build.testDir.0}">
+ <include name="**/${test}.java"/>
+ <exclude name="**/Abstract*"/>
+ <exclude name="**/TestUtil*"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <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">
+ <javadoc sourcepath="${maven.build.srcDir.0}"
+ packagenames="*"
+ destdir="${maven.reporting.outputDirectory}/apidocs"
+ access="protected"
+ old="false"
+ verbose="false"
+ version="false"
+ use="true"
+ author="false"
+ splitindex="false"
+ nodeprecated="false"
+ nodeprecatedlist="false"
+ notree="false"
+ noindex="false"
+ nohelp="false"
+ nonavbar="false"
+ serialwarn="false"
+ charset="ISO-8859-1"
+ linksource="false"
+ breakiterator="true"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- 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"
+ 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>
+</project>
diff --git a/dev-java/netty-transport/metadata.xml b/dev-java/netty-transport/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/netty-transport/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>
diff --git a/dev-java/netty-transport/netty-transport-4.0.19.ebuild b/dev-java/netty-transport/netty-transport-4.0.19.ebuild
new file mode 100644
index 000000000000..1da0b747c7ad
--- /dev/null
+++ b/dev-java/netty-transport/netty-transport-4.0.19.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/netty-transport/netty-transport-4.0.19.ebuild,v 1.1 2014/05/21 10:38:11 tomwij Exp $
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PN="netty"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Async event-driven framework for rapid development of high performance network applications"
+HOMEPAGE="http://netty.io/"
+SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/${MY_P}.Final.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+CDEPEND="dev-java/${MY_PN}-buffer:0
+ dev-java/${MY_PN}-common:0"
+
+RDEPEND=">=virtual/jre-1.6
+ ${CDEPEND}"
+
+DEPEND=">=virtual/jdk-1.6
+ ${CDEPEND}
+ test? (
+ dev-java/ant-core:0
+ dev-java/easymock:3.2
+ dev-java/logback:0
+ dev-java/junit:4
+ )"
+
+S="${WORKDIR}/${MY_PN}-${MY_P}.Final/${PN/${MY_PN}-}"
+
+EANT_BUILD_TARGET="package"
+EANT_GENTOO_CLASSPATH="${MY_PN}-buffer,${MY_PN}-common"
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},ant-core,easymock-3.2,junit-4,logback"
+EANT_TEST_EXTRA_ARGS+=" -Djunit.present=true"
+
+# error: package ch.qos.logback.classic does not exist
+RESTRICT="test"
+
+java_prepare() {
+ cp "${FILESDIR}"/${P}-build.xml build.xml || die
+
+ # Remove the odd memory restriction in the generated build files.
+ sed -i 's/memoryMaximumSize="256m"//' build.xml || die
+}
+
+src_test() {
+ # EANT_EXTRA_ARGS="${EANT_EXTRA_ARGS}:$(java-pkg_getjars --build-only ant-core,easymock-3.2,junit-4)"
+
+ ANT_TASKS="ant-junit" java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_newjar target/${MY_PN}-*.jar ${PN}.jar
+
+ use doc && java-pkg_dojavadoc target/site/apidocs
+ use source && java-pkg_dosrc src/main/java
+}