diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-java/commons-fileupload | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-java/commons-fileupload')
5 files changed, 132 insertions, 0 deletions
diff --git a/dev-java/commons-fileupload/Manifest b/dev-java/commons-fileupload/Manifest new file mode 100644 index 000000000000..ae59a3969a54 --- /dev/null +++ b/dev-java/commons-fileupload/Manifest @@ -0,0 +1 @@ +DIST commons-fileupload-1.3-src.tar.gz 137105 BLAKE2B bfb5a4604aa69d8490fb1e661d0f82c0851ac9281e8e0e43a2e5d68b9cb330556a8df9f67fe9c2b5eaa1f9b871b3fde2b9a8064f94d6d55f7d13f64d5150bce9 SHA512 dbaaef89eb8b4be3555f0736919234b42217e8b6a021dcd99c11d18462b39b10ba92e25bafda51d1b1fcc306c9becf3fb124d03debb66922ab5442197f6360d2 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..c3bb05e55607 --- /dev/null +++ b/dev-java/commons-fileupload/commons-fileupload-1.3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 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" +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..8edf5e90950d --- /dev/null +++ b/dev-java/commons-fileupload/metadata.xml @@ -0,0 +1,20 @@ +<?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> + <origin>gentoo-staging</origin> +</pkgmetadata> |
