diff options
author | Johann Schmitz <ercpe@gentoo.org> | 2014-01-13 18:13:27 +0000 |
---|---|---|
committer | Johann Schmitz <ercpe@gentoo.org> | 2014-01-13 18:13:27 +0000 |
commit | c11c471acf8d4ae333b1e5c10775977ac9659508 (patch) | |
tree | 6718a9ecba9b1a690dfc3fee0b6bd308e068627a /dev-java | |
parent | New ebuild for cal10n (dep of slf4j-ext): (diff) | |
download | historical-c11c471acf8d4ae333b1e5c10775977ac9659508.tar.gz historical-c11c471acf8d4ae333b1e5c10775977ac9659508.tar.bz2 historical-c11c471acf8d4ae333b1e5c10775977ac9659508.zip |
New ebuild for slf4j extension module
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0x77C501ED
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/slf4j-ext/ChangeLog | 9 | ||||
-rw-r--r-- | dev-java/slf4j-ext/Manifest | 19 | ||||
-rw-r--r-- | dev-java/slf4j-ext/files/1.7.5-build.xml | 93 | ||||
-rw-r--r-- | dev-java/slf4j-ext/metadata.xml | 5 | ||||
-rw-r--r-- | dev-java/slf4j-ext/slf4j-ext-1.7.5.ebuild | 48 |
5 files changed, 174 insertions, 0 deletions
diff --git a/dev-java/slf4j-ext/ChangeLog b/dev-java/slf4j-ext/ChangeLog new file mode 100644 index 000000000000..7fd5567beb67 --- /dev/null +++ b/dev-java/slf4j-ext/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-java/slf4j-ext +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/slf4j-ext/ChangeLog,v 1.1 2014/01/13 18:13:18 ercpe Exp $ + +*slf4j-ext-1.7.5 (13 Jan 2014) + + 13 Jan 2014; Johann Schmitz <ercpe@gentoo.org> +files/1.7.5-build.xml, + +metadata.xml, +slf4j-ext-1.7.5.ebuild: + New ebuild for slf4j extension module diff --git a/dev-java/slf4j-ext/Manifest b/dev-java/slf4j-ext/Manifest new file mode 100644 index 000000000000..c7bb37bbb781 --- /dev/null +++ b/dev-java/slf4j-ext/Manifest @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX 1.7.5-build.xml 4262 SHA256 945877106a05b339fb0e5c9cfc89ba6e55ed7eb3331b6ebcc50a50d25be9fdd0 SHA512 06b9f3342928c58b10b0dfc70b1f990209da58e14b6293b2d7b7add6db0463698b473d33c305d2469dc96f3d9c8b5cac98e931ddbdcc2c100c82a30c26fa6547 WHIRLPOOL 2eba85bac9f9ac337e2700b0d0a7d5ba17f737025295ab04757cba71e7d4e21093d981a233190c298ec053a9d3e5ac6be302ae1f41c390f3b8871166f4d026ec +DIST slf4j-1.7.5.tar.gz 2862186 SHA256 e83f1f22f22dabce0a78bd8191fb2d6fab71dc9dc4c8bfbd7939a87b1237c92e SHA512 2ef078f505b626273bd22fe683b4a2527ce2d97b345ffb8cd9f23e7375cb11588623e67e15de90ceacfa02689e40c59749f22e5e0b44b8a9fd7492d3f120d9d7 WHIRLPOOL 4a396c81b50b186d8e582f30331f7d0a21c85bb2cc293bdc8eff8a8bc49ae7382b6b37e1b3f585d0f14e716b1b889ac17ae1acdc03799b93180539e488170820 +EBUILD slf4j-ext-1.7.5.ebuild 1244 SHA256 9fdfbd144592b1a04d412b508eb0254ee8161c183ffebb67b6951ca41ac10ffa SHA512 4d7d5141499ca543c78c5f9b62518b555d241fca2909de75bf61ef74c7fff63659d1a006c6378f925154accb0d4d0761e1ed7e4fbad0e74ac48f9b4d6f55af1f WHIRLPOOL ee343a4233132345edf2972228afccb350485ca3db970f17f9d91e37fca57dda4150b1407a4d0bd59bc22f9e039d0e2ed26349f9d67a9368a359b303adfa901c +MISC ChangeLog 395 SHA256 fcc0cc9694418e644760cda0431a8e975357b3e1bf3eaa8fa36da78e41a000c9 SHA512 c42cf67d86cd15adc18692f99b47ee40163052128da31fa9438420b2e90106bbfeb7f0b724ccb1419f0a7b7070b95f9cfe12fe2ab7900032ca04328e7086ad18 WHIRLPOOL 34e821dd0c00515426e0bb6cbbcfe669ca4f32a54e8233426aaf270949441a04f94ea6a22f0b37adf12ff8f0f18bb7401854e940638f5b8d11cb79179133605a +MISC metadata.xml 159 SHA256 a4ced33e98b00e3a3f725c4c40ef8e76c338db53389465ef871105fbe6e8cbbb SHA512 74dc9ada199a90543b8e1c168c7054f2e973fbfa2551e2b959d67501f2538e269cfb4b2f0905a88a1afa04c20b33961336310ba876f80d47c8e7615b2d7c830a WHIRLPOOL a0ac49efeca233ec4d8f63eb69c8e46e1d4ecbd926693c25b1b8c7415e4c565680936aec46f0c4197116fd7a19a3bb571beee493c18bdae1e5e978e3db84f17a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +iQEcBAEBCAAGBQJS1CzEAAoJEKCEBkJ3xQHtCUUIAJT4MONNwyvEcnF1X622WQJf +QX+a/gN7QJ1ptztOKIGhc/2TFOs5Al43Y4o9hs8MnBQZEFLZdlZVkyNSsGuBHd2+ +8+P7HTQIic7UP/zSVq0+j60JWIU0L0grEgXcl7536tHaSz5tVRJBKbEfnK6qeEZM +bH82ciZI5etCdOoopp6wIOhOcxrxs+WTKPKG3xFonjIG0HA2v0u5Nfa06GcUTXgZ +5PeQXvSham8NywiTs4oPMPZ2n/T1Ux7aK+fIChyuF2NBdipdt3AquhxSzmduP6TK +Op3pt3IXubg+2JDdmHls1X4YJoxy78c/pyVdf8sExPaFu8LkeqRSb0sHIhmpDlM= +=if/9 +-----END PGP SIGNATURE----- diff --git a/dev-java/slf4j-ext/files/1.7.5-build.xml b/dev-java/slf4j-ext/files/1.7.5-build.xml new file mode 100644 index 000000000000..0e118338196e --- /dev/null +++ b/dev-java/slf4j-ext/files/1.7.5-build.xml @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project name="slf4j-ext" 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" /> + + <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="false" optimize="true" deprecation="false" target="1.5" verbose="false" fork="false" source="1.5"> + <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="false" debug="false" optimize="true" deprecation="false" 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> + </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="**/AllTest.java" /> + <exclude name="**/PackageTest.java" /> + </fileset> + </batchtest> + <batchtest todir="${maven.test.reports}" if="test"> + <fileset dir="${maven.build.testDir.0}"> + <include name="**/${test}.java" /> + <exclude name="**/AllTest.java" /> + <exclude name="**/PackageTest.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" 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> + + <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/slf4j-ext/metadata.xml b/dev-java/slf4j-ext/metadata.xml new file mode 100644 index 000000000000..250f2d1940ea --- /dev/null +++ b/dev-java/slf4j-ext/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> diff --git a/dev-java/slf4j-ext/slf4j-ext-1.7.5.ebuild b/dev-java/slf4j-ext/slf4j-ext-1.7.5.ebuild new file mode 100644 index 000000000000..7ea4f0f5872c --- /dev/null +++ b/dev-java/slf4j-ext/slf4j-ext-1.7.5.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/slf4j-ext/slf4j-ext-1.7.5.ebuild,v 1.1 2014/01/13 18:13:18 ercpe Exp $ + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Simple Logging Facade for Java" +HOMEPAGE="http://www.slf4j.org/" +SRC_URI="http://www.slf4j.org/dist/${P/-ext/}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEP="dev-java/slf4j-api:0 + dev-java/javassist:3 + dev-java/cal10n:0 + dev-java/commons-lang:2.1" +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + ${COMMON_DEP}" + +S="${WORKDIR}/${P/-ext/}/${PN}" + +RESTRICT="test" # causes loop with log4j:2 + +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_GENTOO_CLASSPATH="slf4j-api,javassist-3,cal10n,commons-lang-2.1" +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" +EANT_TEST_ANT_TASKS="ant-junit" + +java_prepare() { + cp -v "${FILESDIR}"/${PV}-build.xml build.xml || die + find "${S}" -name "*.jar" -delete || die +} + +src_install() { + java-pkg_dojar "${S}"/target/${PN}.jar + use doc && java-pkg_dojavadoc "${S}"/target/site/apidocs + use source && java-pkg_dosrc "${S}"/src/main/java/org +} |