diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/mimepull |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/mimepull')
-rw-r--r-- | dev-java/mimepull/Manifest | 8 | ||||
-rw-r--r-- | dev-java/mimepull/files/mimepull-maven-build.xml | 231 | ||||
-rw-r--r-- | dev-java/mimepull/metadata.xml | 14 | ||||
-rw-r--r-- | dev-java/mimepull/mimepull-1.8.ebuild | 44 | ||||
-rw-r--r-- | dev-java/mimepull/mimepull-1.9.6-r1.ebuild | 23 |
5 files changed, 320 insertions, 0 deletions
diff --git a/dev-java/mimepull/Manifest b/dev-java/mimepull/Manifest new file mode 100644 index 000000000000..fa6c0f00563c --- /dev/null +++ b/dev-java/mimepull/Manifest @@ -0,0 +1,8 @@ +AUX mimepull-maven-build.xml 9697 SHA256 6cc30b2ae017b8a47b4603aacd6b800649abf0c80629f23d0ccb3f4c5a9e58f9 SHA512 23ec5dfc06aa518632e9d69ddc6633010f0a41baa73f7a9e8695b8666927a2612b9ba3b31a74e9fae436dabb51657e39f2623acb41da14b3df71a93eb64dfa9e WHIRLPOOL ca75a7dc9c45c48aa387de5ec0740228f407d4f074972d3bd67e6579f5c4093598c621d211141cb62243fbe146fc81bea2115436896d3f110acef5b04a7df9c9 +DIST mimepull-1.8.tar.bz2 48841 SHA256 357f3c2b558a755c4f3d7b71056d8973d723cd2b8529ed54014fa8d164378702 SHA512 60de5b888ccdf89ffdeba0a5ccd98e77f7497e57c6b3c71049446dab0293836f8f2b84a39354602e9073fb6fef880dbc11c80323413f8ed15f0a3af68086ae07 WHIRLPOOL a7a9f58210b47eb37f5994233339773672f1ff12f6e0aa2fcc04873b6e29aecd3181a28131ca45d5e275bb111d1a990ef6d8545d3eab8919a7db73d91c903b09 +DIST mimepull-1.9.6.jar 68382 SHA256 615b78d220c74b6c924ed09d51698628ad098786cedb5646bf411aae60f50301 SHA512 528eb77d6edbbfb1b1d8aebb617f9d20c84b9c18f7ab763163ea136c3898319519bbfa8a8e204bd0697a4eac9b964eaf3fb2ee214555efcb3da152ebf467ae64 WHIRLPOOL c38827897a903642eb5c6a79b876265f665412aff09219e06692bdec9ee1489394a9398534e3240d6bdef1b18e6e1caefee5048d800b77c453064fa0da0073de +EBUILD mimepull-1.8.ebuild 963 SHA256 cdf4e7af52aee84915462afa4ddb1216298827774f9dadcde2b98a8553498fa7 SHA512 24f9bbcd439f4c9cd9ec49c89e529e9cba5a699cb42c90d949f485b10c4951f27548f7636025c8630de2c82b1b8d50088f3fb7cac6ea111b5ffb28040e19cb5d WHIRLPOOL 83b0750dd2899ebf708fcd369ec4144b6c9fd3809dac95360018874910434118ee45c464243e5c3ff750e881b836502cf85c446f28d21a8dfc7de4308fb9a6be +EBUILD mimepull-1.9.6-r1.ebuild 496 SHA256 4414bbaac3aba5d683756eb0a32a6370b19347dd625d304b0f03b88a6f424f5a SHA512 97fe69a0ce8b215a306347a17655fd156754150a22593262927b0dee1740044239c433478fc6bb44bca14ddb9f2b60872b32cfce81acf65550e8d95faeeda357 WHIRLPOOL b6669d5a2d16a92501eb025888d26e5a9669885240ceccbb48e38ef3f2378eab25ed2308c4bc95078ee4eb610dc87654f7787fda8f3841dee937935cc1b5b2fb +MISC ChangeLog 3532 SHA256 cd31d2920dd413d3563cf1ef23abfd2d1fef10bf1e798ef1d1422ab788a89d20 SHA512 dedf1685038a49e2cc8b57e2f46410dd575a39ba94259c411c9451f940e82625bc19d7837d87d024792672aa3b7993226e25cb46df2453a45ee44cf738612511 WHIRLPOOL 3a14c088fb431b7225238f4a0b43d136257dce57edff1c9c1230a10a1954a1403353045cb134c456b3e2c25cb538703df11602b3d0d6b4a20cb795679c279792 +MISC ChangeLog-2015 776 SHA256 941a75fdeb4b9a98cf2fec38e2798ab0a5673493c33e0457ba5a26f9c1c2119f SHA512 3736deb8c393d1197c3f5b1bd630b6435ef808489573ad34266ad7f4b47ee0a8418c4b1b847be23ea57021854720952db2b567cd243d7e16570a7ff09a365b7c WHIRLPOOL 3ce488c6e9d1ec2ff0cac9ffac0f6dc7250d0167f04606c36e040638810ae975e928f0b6ad8abd2a4e5a3548cfdf86650f639ea36101e222e879c24a3ca19361 +MISC metadata.xml 580 SHA256 68942269385d0c9ddee91335bca45a372615d93a7b190851277d45a4f5067780 SHA512 b337805ec86960d64b0a0beace8a9b8a764abcaa273f81fe11c7eb710293b0cc23852e59c951b99381261c9ee6b6cfc562f66c70407f1ddd503ba763ff4b2a75 WHIRLPOOL 7d81ad5b0f380fabb333d0942c6d087296da11d2fa0e1c9adc7afa285287b69bd3e2c723f61d6693a605da0bb2290e80ca6b6611d42987c1b0bf99ecfbe40734 diff --git a/dev-java/mimepull/files/mimepull-maven-build.xml b/dev-java/mimepull/files/mimepull-maven-build.xml new file mode 100644 index 000000000000..af6d5ea93733 --- /dev/null +++ b/dev-java/mimepull/files/mimepull-maven-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/31/12 11:02 AM --> +<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> +<!-- --> +<!-- ====================================================================== --> + +<project name="mimepull-from-maven" default="package" basedir="."> + + <!-- ====================================================================== --> + <!-- Build environment properties --> + <!-- ====================================================================== --> + + <property name="maven.build.finalName" value="mimepull"/> + <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.settings.offline" value="false"/> + <property name="maven.settings.interactiveMode" value="true"/> + + <!-- ====================================================================== --> + <!-- Defining classpaths --> + <!-- ====================================================================== --> + + <path id="build.classpath"/> + <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" depends="get-deps" description="Compile the code"> + <mkdir dir="${maven.build.outputDir}"/> + <javac destdir="${maven.build.outputDir}" + nowarn="false" + debug="true" + optimize="false" + deprecation="true" + target="1.5" + verbose="false" + fork="false" + source="1.5"> + <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="false" + debug="true" + optimize="false" + deprecation="true" + target="1.5" + verbose="false" + fork="false" + source="1.5"> + <src> + <pathelement location="${maven.build.testDir.0}"/> + </src> + <classpath> + <path refid="build.test.classpath"/> + <pathelement location="${maven.build.outputDir}"/> + </classpath> + </javac> + <copy todir="${maven.build.testOutputDir}"> + <fileset dir="${maven.build.testResourceDir.0}"/> + </copy> + </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="**/*Test.java"/> + <include name="**/*TestCase.java"/> + <exclude name="**/*Abstract*Test.java"/> + </fileset> + </batchtest> + <batchtest todir="${maven.test.reports}" if="test"> + <fileset dir="${maven.build.testDir.0}"> + <include name="**/${test}.java"/> + <exclude name="**/*Abstract*Test.java"/> + </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="true" + use="true" + author="true" + splitindex="false" + nodeprecated="false" + nodeprecatedlist="false" + notree="false" + noindex="false" + nohelp="false" + nonavbar="false" + serialwarn="false" + charset="ISO-8859-1" + linksource="false" + breakiterator="false"/> + </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> + + <target name="get-deps" + depends="test-offline" + description="Download all dependencies" + unless="maven.mode.offline"> + </target> + +</project> diff --git a/dev-java/mimepull/metadata.xml b/dev-java/mimepull/metadata.xml new file mode 100644 index 000000000000..ba80f7d6663d --- /dev/null +++ b/dev-java/mimepull/metadata.xml @@ -0,0 +1,14 @@ +<?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 lang="en"> + This provides a streaming API to access attachments parts in a MIME message. + Often times, a large MIME message cannot be loaded into memory. Hence the + whole message or attachment parts are written to a file system and access to + the attachment parts is provided using those files. + </longdescription> +</pkgmetadata> diff --git a/dev-java/mimepull/mimepull-1.8.ebuild b/dev-java/mimepull/mimepull-1.8.ebuild new file mode 100644 index 000000000000..1e80184557d2 --- /dev/null +++ b/dev-java/mimepull/mimepull-1.8.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Pull API for parsing MIME messages" +HOMEPAGE="http://java.net/projects/mimepull" +# svn export https://svn.java.net/svn/mimepull~svn/tags/mimepull-1.8 mimepull-1.8 +# tar cjf mimepull-1.8.tar.bz2 mimepull-1.8 +SRC_URI="https://dev.gentoo.org/~sera/distfiles/${P}.tar.bz2" + +LICENSE="CDDL" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="" + +RDEPEND=" + >=virtual/jre-1.5" +DEPEND=" + >=virtual/jdk-1.5 + test? ( dev-java/ant-junit:0 )" + +java_prepare() { + find -name '*.class' -exec rm -v {} + || die + + cp "${FILESDIR}"/${PN}-maven-build.xml build.xml || die +} + +JAVA_ANT_REWRITE_CLASSPATH="yes" + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_dojar target/${PN}.jar + + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/main/java/* +} diff --git a/dev-java/mimepull/mimepull-1.9.6-r1.ebuild b/dev-java/mimepull/mimepull-1.9.6-r1.ebuild new file mode 100644 index 000000000000..301cfe14b421 --- /dev/null +++ b/dev-java/mimepull/mimepull-1.9.6-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="source doc" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Pull API for parsing MIME messages" +HOMEPAGE="http://java.net/projects/mimepull" +SRC_URI="https://repo1.maven.org/maven2/org/jvnet/${PN}/${PN}/${PV}/${P}-sources.jar -> ${P}.jar" + +LICENSE="CDDL" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="" + +DEPEND=" + >=virtual/jdk-1.7" + +RDEPEND=" + >=virtual/jre-1.7" |