diff options
author | Tom Wijsman <tomwij@gentoo.org> | 2013-06-04 16:32:22 +0000 |
---|---|---|
committer | Tom Wijsman <tomwij@gentoo.org> | 2013-06-04 16:32:22 +0000 |
commit | 4f82fefa3ce6d4d658ddb99c759c6bcafb111afa (patch) | |
tree | db025fdd998a4d481995993e4922bdf0c5727b90 /dev-java/invokebinder | |
parent | Fix typo. (diff) | |
download | historical-4f82fefa3ce6d4d658ddb99c759c6bcafb111afa.tar.gz historical-4f82fefa3ce6d4d658ddb99c759c6bcafb111afa.tar.bz2 historical-4f82fefa3ce6d4d658ddb99c759c6bcafb111afa.zip |
New ebuild for invokebinder, a friendly DSL for binding method handles; new dependency of jruby. Fixes bug #472222.
Package-Manager: portage-2.1.12.2/cvs/Linux x86_64
Manifest-Sign-Key: 0x6D34E57D
Diffstat (limited to 'dev-java/invokebinder')
-rw-r--r-- | dev-java/invokebinder/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/invokebinder/Manifest | 19 | ||||
-rw-r--r-- | dev-java/invokebinder/files/invokebinder-1.2-build.xml | 255 | ||||
-rw-r--r-- | dev-java/invokebinder/invokebinder-1.2.ebuild | 46 | ||||
-rw-r--r-- | dev-java/invokebinder/metadata.xml | 5 |
5 files changed, 335 insertions, 0 deletions
diff --git a/dev-java/invokebinder/ChangeLog b/dev-java/invokebinder/ChangeLog new file mode 100644 index 000000000000..7b6f02f48938 --- /dev/null +++ b/dev-java/invokebinder/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-java/invokebinder +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/invokebinder/ChangeLog,v 1.1 2013/06/04 16:32:06 tomwij Exp $ + +*invokebinder-1.2 (04 Jun 2013) + + 04 Jun 2013; Tom Wijsman <TomWij@gentoo.org> + +files/invokebinder-1.2-build.xml, +invokebinder-1.2.ebuild, +metadata.xml: + New ebuild for invokebinder, a friendly DSL for binding method handles; new + dependency of jruby. Fixes bug #472222. diff --git a/dev-java/invokebinder/Manifest b/dev-java/invokebinder/Manifest new file mode 100644 index 000000000000..a26d9639b3f7 --- /dev/null +++ b/dev-java/invokebinder/Manifest @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX invokebinder-1.2-build.xml 11148 SHA256 7b851fb19f5b0213afcacd7feb4f71f84218fe6fd2e13a568b69d5b3d65ce685 SHA512 ea455154f35736544116b3d61f44a0a1bd8fc3260ddc786988938136535a43e404d377a22f7745e7ad8ec5579b4ff2f70351cb5be625f58c0203de7cb3919624 WHIRLPOOL 609f0e00031bb5079c7c6d939add78c2c730f8a57a30e41be787b4322dc11c18b4a0d35cca30fac9b7d373b2871e6bf315830828c961bdac0d1a0ef1cf206f13 +DIST invokebinder-1.2.tar.gz 28581 SHA256 378ab47e625729974b25c81a60abd425abf155a27f60c7c2728ad3a78fd9a1d4 SHA512 aaf56fa008307d56805c6de7d47285d358f4c5018f1704a8f3b44c5bda5045dc20f588e70ce6fbb3486a48f80d30a7669d568e373717401780b13dd4737a8b16 WHIRLPOOL 1c46acfcb2d6c2c53bb24e94aca5afdc578fb6a72c7b3f83e80c22e69cb98e44257c10ba92bfa86c4ec766fea6216cb0604d9be5b2bb755efcae0fa5b0bc8859 +EBUILD invokebinder-1.2.ebuild 1048 SHA256 2d2ce84abb08fdb12525dbd4405bd08625f088ea9c0ce062b06062a7dd47466c SHA512 33eb41ab1700e0380e7d03601f5b6fe024bbb60c5bbe553821bbbed4819b4bcebb592d7ed5e3b07b56d198a234a459d538b6c475e109c903c4ebc0ab929d74bd WHIRLPOOL 55bc6cee2bdb071371673f7d51793ed5e483b89dc1fef7b5eb3a17372c1fa28d555fb10f094a558d46759b7cfcd916f2c228ed3d843335c2779131bd1a181ec0 +MISC ChangeLog 493 SHA256 74ae27cbd493e264a1fd4d5cb09f8ebdbca0dfff4e7ab1c2ac1a6b77e838fbb4 SHA512 9e310519a3db457a2f1511535f96ec6e4b481e58fb8137fe6d612f116a74b3b9cf2743302c7a8cbda4ee3b1c7cb0022644df7d46fedaf891e094e3d19d607cb5 WHIRLPOOL d28b5b57461bf17573725576a8804ca9eda35a718b2b1286282187f238866543a9285e99e406f986135e9a6dac4f1fabb0bb558513272430993181892cd74445 +MISC metadata.xml 157 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 SHA512 bbae663e26f48fdc5e272adc2b06c14f77f34c53caf84acb53908ff036e7c12a3edbbc0929d2db56bee861a453381d979c7e0983a23716f629ed2135c22ffece WHIRLPOOL 887e153e2481e7d76f0f1b67a395f10f0328b93930185ecdb8fcb5fe3c50f839086a18831d61cf45b34657aaffca6c3b7900cf3c04b712846a05027a84602448 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.20 (GNU/Linux) + +iQEcBAEBCAAGBQJRrhYHAAoJEJWyH81tNOV9TrsH/AzwL6Q16oNpkOTH4erttbfS ++lq1X+1aV4uQF4irKpFKp+mLsu5eqEOsq3zymiR+KPlRPDFQM5FXlCUnsHHy87zU +NW+ImD/AruCWJPThpNmdKYfaKSMuuVhtdgBHbEZ7IqYTu5vyaN6b7DiW03hgngT/ +VFsKGxcJvceAzkkl/ineyfCo2Utdu4+UVekGMvwYnkir5NJUI3tWHV0PCYPSJ4zn +jEDd8AfwA+UrzzWnDLCBLrwWZaVnCMmP0zxCpEcNdLEfL67GxXdGnkZHaBcBYnrj +1pZA3EC5i2BP321DeH/G/UaDAwMcA/Br+e4/1QrNIu/Xo/bez9PfNAxUOiSAmgE= +=ny0v +-----END PGP SIGNATURE----- diff --git a/dev-java/invokebinder/files/invokebinder-1.2-build.xml b/dev-java/invokebinder/files/invokebinder-1.2-build.xml new file mode 100644 index 000000000000..fdf898483bb9 --- /dev/null +++ b/dev-java/invokebinder/files/invokebinder-1.2-build.xml @@ -0,0 +1,255 @@ +<?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 6/4/13 6:11 PM --> +<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> +<!-- --> +<!-- ====================================================================== --> + +<project name="invokebinder-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="invokebinder-1.2"/> + <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"/> + + <!-- ====================================================================== --> + <!-- Defining classpaths --> + <!-- ====================================================================== --> + + <path id="build.classpath"/> + <path id="build.test.classpath"> + <pathelement location="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar"/> + <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.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}" + encoding="UTF-8" + nowarn="false" + debug="true" + optimize="false" + deprecation="true" + target="1.7" + verbose="false" + fork="false" + source="1.7"> + <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}" + encoding="UTF-8" + nowarn="false" + debug="true" + optimize="false" + deprecation="true" + target="1.7" + verbose="false" + fork="false" + source="1.7"> + <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"/> + <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"> + <mkdir dir="${maven.repo.local}"/> + <mkdir dir="${maven.repo.local}/junit/junit/4.9"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/junit/junit/4.9/junit-4.9.jar" + dest="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/junit/junit/4.9/junit-4.9.jar" + dest="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar" + usetimestamp="false" + ignoreerrors="true"/> + <mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1"/> + <get src="https://oss.sonatype.org/content/repositories/snapshots/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" + dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + <get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" + dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" + usetimestamp="false" + ignoreerrors="true"/> + </target> + +</project> diff --git a/dev-java/invokebinder/invokebinder-1.2.ebuild b/dev-java/invokebinder/invokebinder-1.2.ebuild new file mode 100644 index 000000000000..ceb5a581271e --- /dev/null +++ b/dev-java/invokebinder/invokebinder-1.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/invokebinder/invokebinder-1.2.ebuild,v 1.1 2013/06/04 16:32:06 tomwij Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Provide a friendly DSL for binding method handles." +SRC_URI="http://github.com/headius/invokebinder/archive/invokebinder-1.2.tar.gz" +HOMEPAGE="https://github.com/headius/invokebinder" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +LICENSE="Apache-2.0" + +S="${WORKDIR}/${PN}-${P}" + +DEPEND=">=virtual/jdk-1.5" +RDEPEND=">=virtual/jre-1.5" + +# Tests fail, three similar errors where a string is inconvertible to int. +# Bug #472306. +RESTRICT="test" + +java_prepare() { + cp ${FILESDIR}/${P}-build.xml build.xml || die +} + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar target/${P}.jar ${PN}.jar + + use source && java-pkg_dosrc src/main/java/com + + if use doc ; then + java-pkg_dojavadoc target/site/apidocs + + dodoc README.markdown + fi +}
\ No newline at end of file diff --git a/dev-java/invokebinder/metadata.xml b/dev-java/invokebinder/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/dev-java/invokebinder/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +</pkgmetadata> |