diff options
author | Johann Schmitz <ercpe@gentoo.org> | 2014-01-12 18:19:01 +0000 |
---|---|---|
committer | Johann Schmitz <ercpe@gentoo.org> | 2014-01-12 18:19:01 +0000 |
commit | d1a09e2f6bba5882a30d529a4ba66f6d3f26f3c0 (patch) | |
tree | 5fa09dfcc26381086a8feeccf78541a181ff1c52 /dev-java | |
parent | Initial ebuild by me. (diff) | |
download | gentoo-2-d1a09e2f6bba5882a30d529a4ba66f6d3f26f3c0.tar.gz gentoo-2-d1a09e2f6bba5882a30d529a4ba66f6d3f26f3c0.tar.bz2 gentoo-2-d1a09e2f6bba5882a30d529a4ba66f6d3f26f3c0.zip |
Version bump of jackson to 2.3.1
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 77C501ED)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jackson/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/jackson/files/2.3.1-build.xml | 100 | ||||
-rw-r--r-- | dev-java/jackson/jackson-2.3.1.ebuild | 53 |
3 files changed, 161 insertions, 2 deletions
diff --git a/dev-java/jackson/ChangeLog b/dev-java/jackson/ChangeLog index 1295ca920828..b9395b5e65af 100644 --- a/dev-java/jackson/ChangeLog +++ b/dev-java/jackson/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/jackson -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jackson/ChangeLog,v 1.1 2013/10/14 16:59:09 ercpe Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jackson/ChangeLog,v 1.2 2014/01/12 18:19:01 ercpe Exp $ + +*jackson-2.3.1 (12 Jan 2014) + + 12 Jan 2014; Johann Schmitz <ercpe@gentoo.org> +files/2.3.1-build.xml, + +jackson-2.3.1.ebuild: + Version bump of jackson to 2.3.1 *jackson-1.9.13 (14 Oct 2013) diff --git a/dev-java/jackson/files/2.3.1-build.xml b/dev-java/jackson/files/2.3.1-build.xml new file mode 100644 index 000000000000..884cb9d51869 --- /dev/null +++ b/dev-java/jackson/files/2.3.1-build.xml @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project name="jackson-core" default="jar" basedir="."> + <property file="${user.home}/.m2/maven.properties" /> + <property file="maven-build.properties" /> + + <property name="maven.build.finalName" value="${ant.project.name}" /> + <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" /> + + <path id="build.classpath" /> + <path id="build.test.classpath"> + </path> + + <target name="clean" description="Clean the output directory"> + <delete dir="${maven.build.dir}" /> + </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="false" source="1.6"> + <src> + <pathelement location="${maven.build.srcDir.0}" /> + </src> + <classpath refid="build.classpath" /> + </javac> + <copy todir="${maven.build.outputDir}"> + <fileset dir="${maven.build.resourceDir.0}" /> + </copy> + </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="false" source="1.6"> + <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> + + <target name="test" depends="compile-tests" 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" /> + <exclude name="**/BaseTest.java" /> + <exclude name="**/ConcurrencyReadTest.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" /> + <exclude name="**/BaseTest.java" /> + <exclude name="**/ConcurrencyReadTest.java" /> + </fileset> + </batchtest> + </junit> + </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" source="1.6" linksource="false" breakiterator="false" maxmemory="1g"> + </javadoc> + </target> + + <target name="jar" depends="compile" 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> + +</project> diff --git a/dev-java/jackson/jackson-2.3.1.ebuild b/dev-java/jackson/jackson-2.3.1.ebuild new file mode 100644 index 000000000000..39fbdad08bb8 --- /dev/null +++ b/dev-java/jackson/jackson-2.3.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jackson/jackson-2.3.1.ebuild,v 1.1 2014/01/12 18:19:01 ercpe Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="High-performance JSON processor" +HOMEPAGE="http://jackson.codehaus.org" +SRC_URI="https://github.com/FasterXML/${PN}-core/archive/${PN}-core-${PV}.tar.gz" + +LICENSE="|| ( Apache-2.0 LGPL-2.1 )" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.5" +DEPEND=">=virtual/jdk-1.5 + test? ( + dev-java/ant-junit4 + dev-java/junit:4 + ) +" +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_TEST_GENTOO_CLASSPATH="junit-4" + +S="${WORKDIR}/${PN}-core-${PN}-core-${PV}" + +java_prepare() { + cp "${FILESDIR}"/${PV}-build.xml "${S}"/build.xml || die + + sed -e 's:@package@:com.fasterxml.jackson.core.json:g' \ + -e "s:@projectversion@:${PV}:g" \ + -e 's:@projectgroupid@:com.fasterxml.jackson.core:g' \ + -e 's:@projectartifactid@:jackson-core:g' \ + "${S}/src/main/java/com/fasterxml/jackson/core/json/PackageVersion.java.in" \ + > "${S}/src/main/java/com/fasterxml/jackson/core/json/PackageVersion.java" || die +} + +src_install() { + java-pkg_dojar target/${PN}-core.jar + + use doc && java-pkg_dojavadoc target/site/apidocs/ + use source && java-pkg_dosrc src/main/java/* +} + +src_test() { + EANT_TASKS="ant-junit4" + java-pkg-2_src_test +}
\ No newline at end of file |