diff options
author | Johann Schmitz <ercpe@gentoo.org> | 2013-11-24 14:41:47 +0000 |
---|---|---|
committer | Johann Schmitz <ercpe@gentoo.org> | 2013-11-24 14:41:47 +0000 |
commit | c787e31de27807988e66d9bf03b5ccc1d58c7bbf (patch) | |
tree | 165be62fafe93f31a16898523f080f43e12d0088 /dev-java | |
parent | Added ebuild for xerial-core as a dependency for picard (#491816) (diff) | |
download | historical-c787e31de27807988e66d9bf03b5ccc1d58c7bbf.tar.gz historical-c787e31de27807988e66d9bf03b5ccc1d58c7bbf.tar.bz2 historical-c787e31de27807988e66d9bf03b5ccc1d58c7bbf.zip |
Added ebuild for xerial-core as a dependency for picard (#491816)
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0x77C501ED
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/xerial-core/Manifest | 18 | ||||
-rw-r--r-- | dev-java/xerial-core/files/2.0.1-build.xml | 140 | ||||
-rw-r--r-- | dev-java/xerial-core/metadata.xml | 9 | ||||
-rw-r--r-- | dev-java/xerial-core/xerial-core-2.0.1.ebuild | 42 |
4 files changed, 207 insertions, 2 deletions
diff --git a/dev-java/xerial-core/Manifest b/dev-java/xerial-core/Manifest index 61887c25a56e..a3973aae0afc 100644 --- a/dev-java/xerial-core/Manifest +++ b/dev-java/xerial-core/Manifest @@ -1,5 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX 2.0.1-build.xml 5674 SHA256 e1b0add0886ed01ff0223d4eb639adaf7e959dc88d41bfd10488e86d176ee530 SHA512 fe6cae55b06099f1718fe2d2b70f680b3549c20047884f879d4fcdc7f8765d4b18a5f8b80478b09913013958834f2602ded4e0b9580db96467d89b1bd5c23650 WHIRLPOOL e450d91abd978a4e76b846dc9fd7aba5cc62aa8892f6a47a0baae98ce729ea54e206eaecf2eef7b1b3235d050de04faf410834f2cf6944591f70c7122ccd0d4e DIST xerial-core-2.0.1.tar.bz2 519709 SHA256 18fc5948ef4007edeb8c373c4b28057f08aa20a3514ed257cf592ee8db7437a1 SHA512 39236e8a653301a6899ce80d3240d505e91f0cfc8878fa1a698113d06f3af3fd7adef540d72da1c0e1fb7101542c43e92fb9388243d95c3185a561532c18c6fb WHIRLPOOL 860729ac4badeff692f603cd6d0e31b21e3876833c9f6c9d4a31e0c9bd95e7ccef0c924477cf0fdf525877625ef24f66b3fe6183c484381d577bd4a56aa602e6 -EBUILD xerial-core-2.0.1.ebuild 930 SHA256 56709b37bf0e2c3e3fff554272647d116bb93763bc2b64c60af78bad67da8147 SHA512 ccaa5b880197bdff32f7a82d6d5c374dfffa3b7eb4012d475550d01b71ebba54b7cf9fb37da9042e4879e680e0d53f5fb02c8a4656ef48fa4323c0256f6f9551 WHIRLPOOL 099c0501b135358c91d2d2fbb3a609cc818417db41474979b8899ba5cf00a2cf73f0e578d5e41508bb44f9b6f8e0fc0c3f9be13e87c9fa79b9d7fc666b98a884 -MISC ChangeLog 340 SHA256 8485236976e3a5f2bf873bc76a3745b2062293b62b2fdf9f1775af7209c63070 SHA512 899146e7caafe2241f1633815254dd71bbe253a0e240355345c312165ffdc3b987a481305ea2a4571489af26f790c602d02ab60053eeac666632c7d8f64b032e WHIRLPOOL 969e0d45163059bf2125037bd240873c1656caa80015bf4422a8e5f786804ec81599ae9a5b70dbea34b3eb98d212c1b5fe82a18cd7278e77acf89abf14825133 +EBUILD xerial-core-2.0.1.ebuild 1036 SHA256 f05abef259d3d45b3c20c93e288a718d5896d554b0a96e5427860dea0b5e57c5 SHA512 087314fed4578949f4f8b6244cd3b1f5bd3b7572266321ccc32e36dcd1b7946a5a4cdfab54e3ff632788c0b3847db8c3d6a7106b8b8551076034d46a06696db3 WHIRLPOOL a13f3d7ec09f1dd665127b502fd3c224dc7fa35965b5faa007e5707eca001bc5db7b277c6aa9f72bae54b65d4acc0ecb6bb0177f72e99df8f603c57810d21575 +MISC ChangeLog 431 SHA256 efd213b4a10efd1553044c169095f6867a9ce0a5940fdd36b52e82bd6a9bd286 SHA512 996944e878b39b9058309ddb3647304e4274f6e929ad1015a7fcf0909dcacc211590887224c9ad5ed3fd5972bb57e98e0d03b4ae4cc8f2da6b864d2a4f54d6a1 WHIRLPOOL 821f0d5ea0cb3cde670af44cf53f34334247695194d6fe25fa8c1e2afa69d4c288b97770492f106246ead80063348571ce2741b6d3b1c57e4068b00340985a49 MISC metadata.xml 235 SHA256 dd9bac90285bc234e8477427c39f415579d44f865345de8b5cdd221ce4adc6ef SHA512 de963e49c3eb308f97550e027c5adff9c4bc3e9b921afa43fe1856066830aa9e89b2e765d3b1ec1db5e0383562b795e761a519c4fa76f50c8fe112e7607d4258 WHIRLPOOL 2cc5b2880b1aa1743bb4c836e6fa503082ef107e28da08a699734d2723ec21b87183be25e9da9585bf540375610c5d4c0c0897d84808c724c334d00d7038f20c +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQEcBAEBCAAGBQJSkhAnAAoJEKCEBkJ3xQHtqgAH/2Je0sjlAgCVDl0qhBhwiTDD +SzYqkoREKU+sh/cabwXhFCWZcbc/nuF7ZYACNw4msrcuynh7SrUcErvb2J23aE7n +oPo7oWKfZRw13P8T4dZcS7CNd+KKaOVC6IWgSiy2hYXn8UYCnLAC5XeekMenYufB +pqzjf8lafXe1ZNz6uEafsVe1F3QV8L8ywWaQIk5TyFOPJL47+Z6haq9FnSK+y+3x ++zayKesg35ALmN0cGXRiG6ev42vK+pVmzyOIciR6T5QGFdn6ONUBlkBDyT2bPtCC +IrD6gX/RyXWF+ptg/E3WVFMYI9YmrNfcK4N77aHwKuTII+LfU2GTTSuMQonZG18= +=GBdS +-----END PGP SIGNATURE----- diff --git a/dev-java/xerial-core/files/2.0.1-build.xml b/dev-java/xerial-core/files/2.0.1-build.xml new file mode 100644 index 000000000000..76a6adfcb189 --- /dev/null +++ b/dev-java/xerial-core/files/2.0.1-build.xml @@ -0,0 +1,140 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project name="xerial-core-from-maven" default="package" basedir="."> + <property file="${user.home}/.m2/maven.properties" /> + <property file="maven-build.properties" /> + + <property name="maven.build.finalName" value="xerial-core-2.0.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="src/main/java" /> + <property name="maven.build.resourceDir.1" 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/java" /> + <property name="maven.build.testResourceDir.1" 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" /> + + <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="false" debug="true" optimize="false" 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}"> + <exclude name="**/*.java" /> + </fileset> + </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="false" debug="true" optimize="false" 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}"> + <exclude name="**/*.java" /> + </fileset> + </copy> + <copy todir="${maven.build.testOutputDir}"> + <fileset dir="${maven.build.testResourceDir.1}" /> + </copy> + </target> + + <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> + + <target name="javadoc" description="Generates the Javadoc of the application"> + <javadoc sourcepath="${maven.build.srcDir.0}" packagenames="*" destdir="${maven.reporting.outputDirectory}/apidocs" charset="ISO-8859-1" linksource="false" breakiterator="false"> + <doctitle><![CDATA[xerial-core-2.0.1 API]]></doctitle> + </javadoc> + </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> + + <target name="jar" depends="package" description="Builds the jar for the application" /> + + <target name="test-offline"> + <condition property="maven.mode.offline"> + <equals arg1="${maven.settings.offline}" arg2="true" /> + </condition> + </target> + +</project> diff --git a/dev-java/xerial-core/metadata.xml b/dev-java/xerial-core/metadata.xml new file mode 100644 index 000000000000..e39d18f86245 --- /dev/null +++ b/dev-java/xerial-core/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <upstream> + <remote-id type="google-code">xerial</remote-id> + </upstream> +</pkgmetadata> + diff --git a/dev-java/xerial-core/xerial-core-2.0.1.ebuild b/dev-java/xerial-core/xerial-core-2.0.1.ebuild new file mode 100644 index 000000000000..12bab92512c5 --- /dev/null +++ b/dev-java/xerial-core/xerial-core-2.0.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/xerial-core/xerial-core-2.0.1.ebuild,v 1.1 2013/11/24 14:41:38 ercpe Exp $ + +EAPI=5 + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="An open-source DBMS for XML/JSON/Relational data" +HOMEPAGE="https://code.google.com/p/xerial/" +SRC_URI="http://dev.gentoo.org/~ercpe/distfiles/${CATEGORY}/${PN}/${P}.tar.bz2" + +LICENSE="Apache-2.0" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/jdk-1.6 + test? ( dev-java/junit:4 )" +RDEPEND=">=virtual/jre-1.6" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_TEST_GENTOO_CLASSPATH="junit-4" +EANT_TEST_ANT_TASKS="ant-junit" + +java_prepare() { + cp "${FILESDIR}"/${PV}-build.xml "${S}"/build.xml || die +} + +src_install() { + java-pkg_newjar "${S}/target/${P}.jar" "${PN}.jar" + + use source && java-pkg_dosrc "${S}"/src/main/java/* + use doc && java-pkg_dojavadoc "${S}"/target/site/apidocs +} + +src_test() { + java-pkg-2_src_test +} |