summaryrefslogtreecommitdiff
path: root/dev-java/log4j
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/log4j
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/log4j')
-rw-r--r--dev-java/log4j/Manifest5
-rw-r--r--dev-java/log4j/log4j-1.2.17-r3.ebuild69
-rw-r--r--dev-java/log4j/metadata.xml12
3 files changed, 86 insertions, 0 deletions
diff --git a/dev-java/log4j/Manifest b/dev-java/log4j/Manifest
new file mode 100644
index 000000000000..d93f53425cc5
--- /dev/null
+++ b/dev-java/log4j/Manifest
@@ -0,0 +1,5 @@
+DIST log4j-1.2.17.tar.gz 2864448 SHA256 a528e3771ee6234661b5eb0fa02e14faee89dfec38de94088c163ddf2a0a8663 SHA512 7df8dca721f960b9fd22dd5f642dbe7d89167f167aa11604c5f9fe54d649a26dd05af88d7188b47abfb91d501535a4b3665dd84d7e0058ef77159713a10b5af8 WHIRLPOOL 1fc1b420e78bb56ca05282c81f12d5911f8966228194a8f5090a32cfa0403332b36589c7841b06c3bfd602f0f13cdf8342e678de01446e4260cffd8a57a6c175
+EBUILD log4j-1.2.17-r3.ebuild 1404 SHA256 fbcda20a91d3343bc27ca7f7d877b38630c5533991988b36500b19d84b9ee7a7 SHA512 55a5793ecfa5d112c7934926f94a318bef2033b6caa805ddd97658e58a0d4b24bacd7d48e19694a8972d99e61ac339bf5581bf50bf86953cd56e1b89c89a5914 WHIRLPOOL cd614c06307ae13658709927a6ec9e0c99ab2bac2d6ca57ab30181f11df37f05a41b2cb146641002a91aecd5028086e95ab36776d7675402efdd8f5e37b514c6
+MISC ChangeLog 4143 SHA256 631935921bdf9cb23e9bf71872f071c83d514af8a68b1b8d22bb2b5ff751daf2 SHA512 864ecf61fc93494bdc07a0e0dc231627b96869079349908172bef955a4884940ecaf5aa1f173d10a5efd7e85eb586d9cf79fcd0b66f7615b8d817dd32e2c1ae9 WHIRLPOOL 5f512940175fc721e4faa14f958fa27a14bd0b06389bbcc532718d6c3515723fc5514b3dcfc3463664edb20fc371618ed32d3614dd6e042ce1cae0ba9cf6a984
+MISC ChangeLog-2015 11819 SHA256 56cfb70fd35ce0819e14aa0f417d55460f566eae4c6b387915abf1f2a5aa7572 SHA512 b17a0ed9ed94ae7eeadae5557c2ff1fe1df4f98516ef757cfa7027009c91b54c50f1a3660cef21529caaa2866d8bce59800f1c958316f4376986f7073c8c3be6 WHIRLPOOL cba9b47f4252a0c037d16c1151b06832978d0c1a739893f01ac23922b046d8a23d2197f73fe712a590e28fc3543c37faa848c938d8bd995fc95daae8aee4b40a
+MISC metadata.xml 365 SHA256 3133f25387636baddf7fe9234fd05f9c25c9e6130f699a19b80c1d76facc2571 SHA512 0a4edf2fd6a980baad45c3282db2f991b7c806d8a36a06bed355a4491472b58e0e79f96c5dd2210d0ea51f5f4e83731165345c21b0b439bb2a36584b543b18a7 WHIRLPOOL ecc1518aca40dc0c4a22f533d676f66632638cb524780d6319c89e505c7c4c6113b7ffa0fe779315da9a4db2b478d3921fb8e9998a18140edce14069ac36938d
diff --git a/dev-java/log4j/log4j-1.2.17-r3.ebuild b/dev-java/log4j/log4j-1.2.17-r3.ebuild
new file mode 100644
index 000000000000..0707d2074e3b
--- /dev/null
+++ b/dev-java/log4j/log4j-1.2.17-r3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="A low-overhead robust logging package for Java"
+SRC_URI="mirror://apache/logging/${PN}/${PV}/${P}.tar.gz"
+HOMEPAGE="http://logging.apache.org/log4j/"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ppc64 x86"
+IUSE="javamail jms"
+
+CDEPEND="
+ javamail? ( dev-java/oracle-javamail:0 )
+ jms? ( java-virtuals/jms:0 )"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.6"
+
+MY_P="apache-${P}"
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+ java-pkg_clean
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
+EANT_BUILD_TARGET="log4j.jar"
+EANT_EXTRA_ARGS="-Djaxp-present=true -Djmx-present=true"
+EANT_DOC_TARGET=""
+
+src_compile() {
+ if use javamail; then
+ EANT_GENTOO_CLASSPATH+="oracle-javamail"
+ EANT_EXTRA_ARGS+=" -Djavamail-present=true"
+ fi
+
+ if use jms; then
+ EANT_EXTRA_ARGS+=" -Djms-present=true -Djms.jar=$(java-pkg_getjars jms)"
+ fi
+
+ java-pkg-2_src_compile
+}
+
+src_install() {
+ java-pkg_newjar dist/lib/${PN}-1.2.17.jar ${PN}.jar
+
+ if use doc; then
+ java-pkg_dohtml -r site/*
+ rm -fr "${ED}/usr/share/doc/${PF}/html/apidocs"
+ java-pkg_dojavadoc --symlink apidocs site/apidocs
+ fi
+
+ if use source; then
+ java-pkg_dosrc src/main/java/*
+ fi
+}
diff --git a/dev-java/log4j/metadata.xml b/dev-java/log4j/metadata.xml
new file mode 100644
index 000000000000..84c33199b892
--- /dev/null
+++ b/dev-java/log4j/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+ <use>
+ <flag name="javamail">Build the SMTPAppender</flag>
+ <flag name="jms">Build the JMSAppender</flag>
+ </use>
+</pkgmetadata>