summaryrefslogtreecommitdiff
path: root/dev-java/commons-fileupload
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/commons-fileupload
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/commons-fileupload')
-rw-r--r--dev-java/commons-fileupload/Manifest7
-rw-r--r--dev-java/commons-fileupload/commons-fileupload-1.3.ebuild57
-rw-r--r--dev-java/commons-fileupload/files/0001-Remove-bogous-manifest-entry.patch29
-rw-r--r--dev-java/commons-fileupload/files/0002-Fix-running-tests.patch25
-rw-r--r--dev-java/commons-fileupload/metadata.xml19
5 files changed, 137 insertions, 0 deletions
diff --git a/dev-java/commons-fileupload/Manifest b/dev-java/commons-fileupload/Manifest
new file mode 100644
index 000000000000..620ad1a79c22
--- /dev/null
+++ b/dev-java/commons-fileupload/Manifest
@@ -0,0 +1,7 @@
+AUX 0001-Remove-bogous-manifest-entry.patch 744 SHA256 fe4db687d9104c1f0c9c1a5da4ea7394bc87853a0f896dc2c2b22546888b0189 SHA512 a952ea640ca36fd4e4f2fdf13053d4487a88bb5bc95a70909f8202d46dba1cca0d2aacab6d6fbcf3cf8dbc6cd9b3e7b7085963d4ab9b7bb31267a63a5c037db0 WHIRLPOOL 9aeacadc54fa4da49376f5326409ef01b208dc8e45033617530f3d19060446dcdf43278ce0921b6d24acaa7ab7878f0974e7bddb86d8216594315ae5c2717621
+AUX 0002-Fix-running-tests.patch 736 SHA256 a46fdaa94c18fe6fbc7a03342b54bfdec4cb85a5e067bb1c997880f4b20d50b4 SHA512 c29c2c7d67214b940700cc50905fe879791c451686343a3a52fd840c95d8210663bf667548207d61d53b9967187ca468fa2dc439b56edc6bc137ce0c955fe289 WHIRLPOOL 7bb8bf4a47178de4d7b2c6415c3032cf93d49dca0f8835e2e57454a34a0a4539859fa3d55a8afe67abb1623040736dbf6a782fc9fa91680922c212eb5a5f0c57
+DIST commons-fileupload-1.3-src.tar.gz 137105 SHA256 4bf3bfbaf7c25bbe6d0e2dc6a47479e16d42ec1b0365037ed508eeac276e8dc5 SHA512 dbaaef89eb8b4be3555f0736919234b42217e8b6a021dcd99c11d18462b39b10ba92e25bafda51d1b1fcc306c9becf3fb124d03debb66922ab5442197f6360d2 WHIRLPOOL 37803f31084977e4d58d4ea67a7e50de7a0c9988f6787e7e296e95678d94b05b502e36196d5e6af420e3fde0e3a11d94d9b5e2e2781c06d0f04130f9418ca6b1
+EBUILD commons-fileupload-1.3.ebuild 1324 SHA256 3eaeabe0803342e15a46878ff5922485653ae336e62c25ced5c5c48788772f73 SHA512 5a549b74a31dbdd80c1bf9dd3cd8fe756e09118643dd72ee83469be8304208031395659bcfe495657aea50b38d5c7e505bac07734f3ab61bdbf11b3668c59e40 WHIRLPOOL 1312fb0fb251c9030f8bdd287af611e336af3a676a1a88558e921beda0637cd31a61a3a900cd51a121bb5f79e645f09b206eab85aeb2ea399cadb39ff380b1ed
+MISC ChangeLog 3050 SHA256 4ca3c2f4db6ab1ac44ad6a9d801cfc44f879cd13353978ef92c122c137fa7c8a SHA512 3c90c1645a349f265e6038f551d5e07659d3a18313e6ed913b89b98094b905816690277a74aeba8311d3fa4bf664813037d6e18df4e119f38401bded0f1b5521 WHIRLPOOL 3dd8973b5f968825251c626e15a02a0a04bb3d037b2ca8ffd6336cdb48d7f88a1ce92f5550f64bc78d65c770286f1266a16d40c1b700e5569ba89346ba6c4294
+MISC ChangeLog-2015 10312 SHA256 27b5ec0656c9ce896681499ab013f6a9bb270695b915206972cf00f26fbed13e SHA512 e7d955cf809d43322674449e7fd0420684d90654b242b2bed55f937c513717e22b44ac40d58642a09a0256fb46139788d2c62d8fdc461431d8f0cccd8e18095d WHIRLPOOL d243430adf4cbb3f057380a0606c23541e7d3b46d7c226a90ac59ae2765fa2547eb1b54be8b7b2872817779699a215247f865e8a29940ec7847759932f06c73e
+MISC metadata.xml 749 SHA256 42d1bf545f5151bc8af429069e3f761d579540c621edcf54398a1f18d2ad35d7 SHA512 e18d72be4bcc733ced0cec17570803ff311fb9b31f28367ea2094779e0da40b379c20134fe2b4e81e9f21acd0372115671d41b7224c2f4a302123dc58d12a8ba WHIRLPOOL 58104c5c36b0d8dedf585b7dd8cddaf0e23d8e70564a3edeb931155ca975b853c85a456a2ddf3fdbcd41a170969447acdc7daa4fe9bd5e3887ed3ec3c7f7e11e
diff --git a/dev-java/commons-fileupload/commons-fileupload-1.3.ebuild b/dev-java/commons-fileupload/commons-fileupload-1.3.ebuild
new file mode 100644
index 000000000000..ee615f821310
--- /dev/null
+++ b/dev-java/commons-fileupload/commons-fileupload-1.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="High-performance file upload capability to your servlets and web applications"
+HOMEPAGE="http://commons.apache.org/fileupload/"
+SRC_URI="mirror://apache/commons/fileupload/source/${P}-src.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+IUSE=""
+
+COMMON_DEP="
+ dev-java/commons-io:1
+ dev-java/portletapi:1
+ java-virtuals/servlet-api:2.5"
+RDEPEND="${COMMON_DEP}
+ >=virtual/jre-1.5"
+DEPEND="${COMMON_DEP}
+ >=virtual/jdk-1.5
+ test? (
+ dev-java/ant-junit:0
+ dev-java/junit:4
+ )"
+
+S="${WORKDIR}/${P}-src"
+
+JAVA_PKG_FILTER_COMPILER="jikes"
+
+java_prepare() {
+ epatch "${FILESDIR}"/0001-Remove-bogous-manifest-entry.patch
+ epatch "${FILESDIR}"/0002-Fix-running-tests.patch
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
+
+EANT_GENTOO_CLASSPATH="commons-io-1,portletapi-1,servlet-api-2.5"
+EANT_EXTRA_ARGS="-Dlibdir=target/lib"
+
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4"
+src_test() {
+ java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_newjar target/${P}-SNAPSHOT.jar
+
+ use doc && java-pkg_dojavadoc target/site/apidocs
+ use source && java-pkg_dosrc src/main/java/*
+}
diff --git a/dev-java/commons-fileupload/files/0001-Remove-bogous-manifest-entry.patch b/dev-java/commons-fileupload/files/0001-Remove-bogous-manifest-entry.patch
new file mode 100644
index 000000000000..0c5be867489d
--- /dev/null
+++ b/dev-java/commons-fileupload/files/0001-Remove-bogous-manifest-entry.patch
@@ -0,0 +1,29 @@
+From 88920db784bbb37c1043371548642a9ad529d600 Mon Sep 17 00:00:00 2001
+From: Ralph Sennhauser <sera@gentoo.org>
+Date: Sat, 20 Apr 2013 09:51:46 +0200
+Subject: [PATCH 1/2] Remove bogous manifest entry
+
+---
+ build.xml | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/build.xml b/build.xml
+index b207f76..1e18fec 100644
+--- a/build.xml
++++ b/build.xml
+@@ -252,12 +252,8 @@
+ <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
+ compress="true"
+ index="false"
+- manifest="${commons.manifestfile}"
+ basedir="${maven.build.outputDir}"
+ excludes="**/package.html">
+- <manifest>
+- <attribute name="Main-Class"/>
+- </manifest>
+ </jar>
+ </target>
+
+--
+1.8.1.5
+
diff --git a/dev-java/commons-fileupload/files/0002-Fix-running-tests.patch b/dev-java/commons-fileupload/files/0002-Fix-running-tests.patch
new file mode 100644
index 000000000000..0eb41212cd29
--- /dev/null
+++ b/dev-java/commons-fileupload/files/0002-Fix-running-tests.patch
@@ -0,0 +1,25 @@
+From ec99347a09caeae147c075813543fc839d5b4562 Mon Sep 17 00:00:00 2001
+From: Ralph Sennhauser <sera@gentoo.org>
+Date: Sat, 20 Apr 2013 09:57:06 +0200
+Subject: [PATCH 2/2] Fix running tests
+
+---
+ build.xml | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/build.xml b/build.xml
+index 1e18fec..947f325 100644
+--- a/build.xml
++++ b/build.xml
+@@ -172,6 +172,8 @@
+ <include name="**/*Test.java"/>
+ <include name="**/*TestCase.java"/>
+ <exclude name="**/*Abstract*Test.java"/>
++ <!-- base class without tests violationg naming scheme -->
++ <exclude name="**/FileUploadTestCase.java"/>
+ </fileset>
+ </batchtest>
+ <batchtest todir="${maven.test.reports}" if="test">
+--
+1.8.1.5
+
diff --git a/dev-java/commons-fileupload/metadata.xml b/dev-java/commons-fileupload/metadata.xml
new file mode 100644
index 000000000000..d4924df29b60
--- /dev/null
+++ b/dev-java/commons-fileupload/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription>
+ The Commons FileUpload package makes it easy to add robust,
+ high-performance, file upload capability to your servlets and web
+ applications.
+
+ FileUpload parses HTTP requests which conform to RFC 1867, "Form-based
+ File Upload in HTML". That is, if an HTTP request is submitted using the
+ POST method, and with a content type of "multipart/form-data", then
+ FileUpload can parse that request, and make the results available in a
+ manner easily used by the caller.
+ </longdescription>
+</pkgmetadata>