diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/log4j | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/log4j')
-rw-r--r-- | dev-java/log4j/Manifest | 3 | ||||
-rw-r--r-- | dev-java/log4j/log4j-1.2.17-r3.ebuild | 69 | ||||
-rw-r--r-- | dev-java/log4j/metadata.xml | 12 |
3 files changed, 84 insertions, 0 deletions
diff --git a/dev-java/log4j/Manifest b/dev-java/log4j/Manifest new file mode 100644 index 000000000000..d971d1971d07 --- /dev/null +++ b/dev-java/log4j/Manifest @@ -0,0 +1,3 @@ +DIST log4j-1.2.17.tar.gz 2864448 BLAKE2B 233763dbe53f92b5408d3e278b291dff8a7d74657f367ec8b7c7ae1e685ddc0170783c8a5e4b48ec2590b6dda13f45e91bd66066f2c6b515e5d692caca31660b SHA512 7df8dca721f960b9fd22dd5f642dbe7d89167f167aa11604c5f9fe54d649a26dd05af88d7188b47abfb91d501535a4b3665dd84d7e0058ef77159713a10b5af8 +EBUILD log4j-1.2.17-r3.ebuild 1417 BLAKE2B 4601f6d91064d97ac84b5ba7ec83ba0bddc8aeb7b6fd788a6f8401394cff1dcbfe494e6eaa34157aa3561b637bfd42e221869d7d9f8e99c5cec5279c83b6f1d9 SHA512 1f9cdfc8782930a1f04bf5944aed24c6b21efc3313d7a05fe695bda76bb45bf611451561d795a9c5988fc037598c14014c30766ef9ad9a69be4166ebd7416a42 +MISC metadata.xml 365 BLAKE2B c7d4eddda426c4ba6e5749a60c60c1ec3a169e545e119b4987703c13bbbea8fb59ea52055c1dad743b0374a13b32869fb39ee846e5fad2237cd11426b612f69e SHA512 0a4edf2fd6a980baad45c3282db2f991b7c806d8a36a06bed355a4491472b58e0e79f96c5dd2210d0ea51f5f4e83731165345c21b0b439bb2a36584b543b18a7 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..fb7e7820dbe2 --- /dev/null +++ b/dev-java/log4j/log4j-1.2.17-r3.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2018 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 ~amd64-linux" +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> |