diff options
author | Tom Wijsman <tomwij@gentoo.org> | 2013-05-09 15:00:55 +0000 |
---|---|---|
committer | Tom Wijsman <tomwij@gentoo.org> | 2013-05-09 15:00:55 +0000 |
commit | e3e1b4ce049487880f9c474d495b92e0ba4c4e2b (patch) | |
tree | 2f64cf285855ad6a5229c878ce4efc06e0ca24ed /dev-java/joda-convert | |
parent | Allow newer versions than Java 1.6 for Netbeans IDE, tested and compiles with... (diff) | |
download | gentoo-2-e3e1b4ce049487880f9c474d495b92e0ba4c4e2b.tar.gz gentoo-2-e3e1b4ce049487880f9c474d495b92e0ba4c4e2b.tar.bz2 gentoo-2-e3e1b4ce049487880f9c474d495b92e0ba4c4e2b.zip |
Added joda-convert, a dependency of joda-time; used for easy conversion between Object and String.
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'dev-java/joda-convert')
-rw-r--r-- | dev-java/joda-convert/ChangeLog | 11 | ||||
-rw-r--r-- | dev-java/joda-convert/Manifest | 5 | ||||
-rw-r--r-- | dev-java/joda-convert/files/joda-convert-1.3.1-build.xml | 248 | ||||
-rw-r--r-- | dev-java/joda-convert/joda-convert-1.3.1.ebuild | 42 | ||||
-rw-r--r-- | dev-java/joda-convert/metadata.xml | 8 |
5 files changed, 314 insertions, 0 deletions
diff --git a/dev-java/joda-convert/ChangeLog b/dev-java/joda-convert/ChangeLog new file mode 100644 index 000000000000..0c395a0d6b5d --- /dev/null +++ b/dev-java/joda-convert/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-java/joda-convert +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/joda-convert/ChangeLog,v 1.1 2013/05/09 15:00:54 tomwij Exp $ + +*joda-convert-1.3.1 (09 May 2013) + + 09 May 2013; Tom Wijsman <TomWij@gentoo.org> + +files/joda-convert-1.3.1-build.xml, +joda-convert-1.3.1.ebuild, + +metadata.xml: + Added joda-convert, a dependency of joda-time; used for easy conversion + between Object and String. diff --git a/dev-java/joda-convert/Manifest b/dev-java/joda-convert/Manifest new file mode 100644 index 000000000000..8d223d3316af --- /dev/null +++ b/dev-java/joda-convert/Manifest @@ -0,0 +1,5 @@ +AUX joda-convert-1.3.1-build.xml 10459 SHA256 f8d10e8045681e688424de6f2db9d703cba1cca7906cd7d263f3e6ed49e7cf6a SHA512 cfeec9e9ee537814eaa3277037e45878a71b80cd73705bce560cf24d1c0d20033dadd030dcc447b1be5ad742fa97637f57931cab96ca7e21d6b79c7897d7f0ce WHIRLPOOL 69b1790299d38202d3bdb790f40a0eac92453b58b223532c4cbd0e1878a51fa99b27b3e7bbe7734181b6c8e90e2e9f25ecd5ce98f239924215b9665c8858022e +DIST joda-convert-1.3.1-dist.tar.gz 131288 SHA256 f73decd925a63ff23f010c2e0f894662ccce087eece4027dc0353574a7d2e537 SHA512 ee3f7264e9ee445dd8cf088c862809faceb012d317c4974d2312e1ce9b580193096259978a79cdefc2217818600ff38569348625986e19bdb753edb03ba58451 WHIRLPOOL 1ed3df81cd70bfa52bd82b74d5a4e412d46ca54ca250e2d24a0ba6d0711ee29cb82696b9d3e24dc1f43d563506d8334a76646a3902513c2ba221b91f6e79583b +EBUILD joda-convert-1.3.1.ebuild 952 SHA256 35257f19fb0b11f9c36c7c9fb9afb67f0cd7aab56da929a139406323a3ad77c3 SHA512 a0524cfda0f646e880e8418d39dfddeff4910fe2e6ef41a71353bf4dd1f3f0e33b16593eb07c7796056694d8718bbfa04e4ed830817f0c876d2d996d89311be0 WHIRLPOOL d20cdd681dd0f1c55f08aeb934b1bfa5a7835254c4186a925059198ca95fbbc6aeb68bb92e94119fe54fb6a3b8f27623c6ad135b83f0bb3c65a5631d7fa24d3e +MISC ChangeLog 391 SHA256 6fbf6febb83896a1911e0d800a9570b429fe26023ea2bbc5dfa11f64a57c40bf SHA512 b88e8bfe6817c6269cea270cb25b76bdb5c65153fe6e60a27adb7f57371121716f89b6c5e2db27f82d38231b461595755c7fd6129c40daebfb437d55cb488e9c WHIRLPOOL b6f9ae13da9760b7113c92768b7903e0a4aaa2fa689d08ea75aadee59bef351a024206020749c64690e2a498229656973f428e870b67947b5fb11cd08dd2b4d2 +MISC metadata.xml 259 SHA256 2666070fc817a8260eb5f2c2a6f8304b87a1beb1d870ebe0f9dda88b0397a83f SHA512 2962b3fe7866a7a368d7686c0680ce7714ad1b9aa4052f8fdabdaab62ecdcfac6dd01ee7d0184e199310771011546775278f6596f4dcde71f123b8a5709b9bf3 WHIRLPOOL 645ccdecfb46d668d0f1853b159306922234034ad92bde9feb948b9a8ce29ddd0565a701bf10142600fb84d3ef534c217149c50c3fa625367ea5fa9a4d28d0a1 diff --git a/dev-java/joda-convert/files/joda-convert-1.3.1-build.xml b/dev-java/joda-convert/files/joda-convert-1.3.1-build.xml new file mode 100644 index 000000000000..c66dfec9c1d7 --- /dev/null +++ b/dev-java/joda-convert/files/joda-convert-1.3.1-build.xml @@ -0,0 +1,248 @@ +<?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/9/13 4:18 PM --> +<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> +<!-- --> +<!-- ====================================================================== --> + +<project name="joda-convert-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="joda-convert-1.3.1"/> + <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="."/> + <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 id="build.test.classpath"> + <pathelement location="${maven.repo.local}/junit/junit/4.5/junit-4.5.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}"/> + <javac destdir="${maven.build.outputDir}" + nowarn="false" + debug="true" + optimize="true" + deprecation="false" + target="1.6" + verbose="true" + fork="true" + source="1.6"> + <src> + <pathelement location="${maven.build.srcDir.0}"/> + </src> + <classpath refid="build.classpath"/> + </javac> + <mkdir dir="${maven.build.outputDir}/META-INF"/> + <copy todir="${maven.build.outputDir}/META-INF"> + <fileset dir="${maven.build.resourceDir.0}"> + <include name="LICENSE.txt"/> + <include name="NOTICE.txt"/> + </fileset> + </copy> + </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="true" + deprecation="false" + target="1.6" + verbose="true" + fork="true" + 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"/> + <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" + encoding="UTF-8" + 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="true" + breakiterator="false"> + <link href="http://download.oracle.com/javase/6/docs/api/"/> + </javadoc> + </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" + manifest="src/conf/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}/junit/junit/4.5"/> + <get src="http://repo.maven.apache.org/maven2/junit/junit/4.5/junit-4.5.jar" + dest="${maven.repo.local}/junit/junit/4.5/junit-4.5.jar" + usetimestamp="false" + ignoreerrors="true"/> + </target> + +</project> diff --git a/dev-java/joda-convert/joda-convert-1.3.1.ebuild b/dev-java/joda-convert/joda-convert-1.3.1.ebuild new file mode 100644 index 000000000000..25e2a302b7a6 --- /dev/null +++ b/dev-java/joda-convert/joda-convert-1.3.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/joda-convert/joda-convert-1.3.1.ebuild,v 1.1 2013/05/09 15:00:54 tomwij Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" +JAVA_ANT_REWRITE_CLASSPATH="true" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java library for conversion between Object and String." +HOMEPAGE="http://joda-convert.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}-dist.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=">=virtual/jdk-1.5 + test? ( + dev-java/junit:4 + dev-java/ant-junit4 + dev-java/hamcrest-core + )" +RDEPEND=">=virtual/jre-1.5" + +java_prepare() { + cp "${FILESDIR}"/${P}-build.xml build.xml || die +} + +src_test() { + ANT_TASKS="ant-junit4" eant test -Dgentoo.classpath=$(java-pkg_getjars --build-only junit-4) +} + +src_install() { + java-pkg_newjar target/${P}.jar ${PN}.jar + dodoc NOTICE.txt RELEASE-NOTES.txt + + use doc && java-pkg_dojavadoc doc/api + use source && java-pkg_dosrc src/main/java/* +} diff --git a/dev-java/joda-convert/metadata.xml b/dev-java/joda-convert/metadata.xml new file mode 100644 index 000000000000..c70e551e758a --- /dev/null +++ b/dev-java/joda-convert/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <longdescription> + Java library for conversion between Object and String. + </longdescription> +</pkgmetadata> |