summaryrefslogtreecommitdiff
path: root/dev-java/slf4j-nop
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/slf4j-nop
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/slf4j-nop')
-rw-r--r--dev-java/slf4j-nop/Manifest6
-rw-r--r--dev-java/slf4j-nop/files/1.7.7-build.xml93
-rw-r--r--dev-java/slf4j-nop/metadata.xml8
-rw-r--r--dev-java/slf4j-nop/slf4j-nop-1.7.7.ebuild51
4 files changed, 158 insertions, 0 deletions
diff --git a/dev-java/slf4j-nop/Manifest b/dev-java/slf4j-nop/Manifest
new file mode 100644
index 000000000000..5ffa2077ee1c
--- /dev/null
+++ b/dev-java/slf4j-nop/Manifest
@@ -0,0 +1,6 @@
+AUX 1.7.7-build.xml 4261 SHA256 edae0f478143823af89da515d450afc84821e8e559aaf3d85ced91638826ab3a SHA512 dc29b7acbc159eb592417a9457875d9f7c33ac21df87885f6a3faa8047f68550f16f2b8a24f5b8efaa123b1c8507ec6cd9d61ed154aff0406bdb008d62132120 WHIRLPOOL c6320db995428ee294356ba99cd0bdd51d5f3765db06dc0bf6127e7dc1fe8935e32caecc7751b8c103617a3361a3893119f64ec78051170b763aacfec455ffed
+DIST slf4j-1.7.7.tar.gz 3031017 SHA256 97717f30f263dfbfe853a00b218e3f929acb022d9b13a4723c75c31846351cf1 SHA512 aefefe049ed36e8ec938469067be8d73d2c7a28189f54cf434606fecab1d380f00fdf8349a23ed99d574067d9a613b0aec48b913705cd27524af5a4a5d887418 WHIRLPOOL a20cbc94b940f23bf61645b7ab09600651df17fedc103660996dc800af4dd7b0d82e25c7eac65aa2d7981bf4acbfdd14a8bf2885270d2b06627889129d23373f
+EBUILD slf4j-nop-1.7.7.ebuild 1080 SHA256 aa83198474a41a237fa9229d20e5958753b72d79e35d148dc158f1bc7f271ca8 SHA512 d2436dcb4b5118743c425445d56a16073d0c68322fdf57262643119e84592ab9f0a2439a6308f3e6edd6d521284fb4722cf39f2678b2d877fb57048152b32b75 WHIRLPOOL 8b94965ffea77c623f8c8fbf341dac5360a7f83a669a1a9dcc54cabad55e266248a547558b75889590c74f19f9cefe1a2a2b0d36d96cb788ebebb71bbf94eedb
+MISC ChangeLog 3375 SHA256 5c7378b13968d7cd22d7e62dca9cfb105b4d20c0ac43cbcf8f30b0ce9e93b73a SHA512 ecbab44c527ccfe30c0a77cec562a6167448c27e609fdd5d60da78bde4b552ad357b54e498a764a5ca643e62ed52ed49329d66b8ccb994ac8e26b8e7358a47a7 WHIRLPOOL 0fa8f92f16002c072aa9a4bd886556989051f723899b958ce5ca3881b690be5b4fc5140cac1e84fbb7fe38113da2418dfd09efe232e05ef8cc7d22ee08c4e312
+MISC ChangeLog-2015 1960 SHA256 95267ad1ac964d02ca40fec64049d5cca4abb4c9e84c146fc1b5c4577535e04a SHA512 9caf8c24b1cecaaa6bd8cc1cb20511e14736c8bf161e37e532bb8801c3b79a73eefd4438ef0345ed7f3f5f09792f6a1ceba20d133aac75c20df8176891014ca2 WHIRLPOOL e4b9da0adf0be913e72e8f1324f56099b00b305516f77dfd187f137d4c531279c14f8b42acfa48c12da0f5e9c86a9b056fa13c144fafc67b9ca3bc63a0f3295e
+MISC metadata.xml 242 SHA256 653cd0d34675fe6c6201752e96e6b035bad682c39a376c236b0a8f70dbdcc1c9 SHA512 50f4d6219b995b723d6ebbb4f2a18adbf558a685f862aea00f072254dcc0fe6c1388e4aeaf21fb3ce0fb840a2ef4851807536d037c9682b21cb1986198715a4f WHIRLPOOL 12c33e00040d7a3f4c26a8b7a6a6eaf10007a9e29af9904d192f89db5120a2760a7174fa40c40068eb6066d6a4f0dbbc57a12e852581de95cc956e210351b705
diff --git a/dev-java/slf4j-nop/files/1.7.7-build.xml b/dev-java/slf4j-nop/files/1.7.7-build.xml
new file mode 100644
index 000000000000..9d898d340d34
--- /dev/null
+++ b/dev-java/slf4j-nop/files/1.7.7-build.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="slf4j-nop-from-maven" default="jar" basedir=".">
+ <property file="${user.home}/.m2/maven.properties" />
+ <property file="maven-build.properties" />
+
+ <property name="maven.build.finalName" value="slf4j-nop" />
+ <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="true" optimize="false" deprecation="true" 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="true" optimize="false" deprecation="true" 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-nop/metadata.xml b/dev-java/slf4j-nop/metadata.xml
new file mode 100644
index 000000000000..37998bf40746
--- /dev/null
+++ b/dev-java/slf4j-nop/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-java/slf4j-nop/slf4j-nop-1.7.7.ebuild b/dev-java/slf4j-nop/slf4j-nop-1.7.7.ebuild
new file mode 100644
index 000000000000..417575df7e97
--- /dev/null
+++ b/dev-java/slf4j-nop/slf4j-nop-1.7.7.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source test"
+
+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/-nop/}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86"
+IUSE=""
+
+CDEPEND="dev-java/slf4j-api:0"
+RDEPEND=">=virtual/jre-1.6
+ ${CDEPEND}"
+DEPEND=">=virtual/jdk-1.6
+ app-arch/unzip
+ test? (
+ dev-java/ant-junit:0
+ dev-java/junit:4
+ )
+ ${CDEPEND}"
+
+S="${WORKDIR}/${P/-nop/}/${PN}"
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_GENTOO_CLASSPATH="slf4j-api"
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4"
+EANT_TEST_ANT_TASKS="ant-junit"
+
+java_prepare() {
+ cp -v "${FILESDIR}"/${PV}-build.xml "${S}"/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
+}
+
+src_test() {
+ java-pkg-2_src_test
+}