diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-07-02 22:35:29 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-07-05 11:50:12 +0200 |
commit | 37cd080b9d968d8c5fa7f39daac2a40f55837bd2 (patch) | |
tree | e19b2178b7125e48fb56941d195e8ff535e94569 /dev-java/log4j/log4j-1.2.17-r3.ebuild | |
parent | dev-java/bcmail: clean up old. (diff) | |
download | gentoo-37cd080b9d968d8c5fa7f39daac2a40f55837bd2.tar.gz gentoo-37cd080b9d968d8c5fa7f39daac2a40f55837bd2.tar.bz2 gentoo-37cd080b9d968d8c5fa7f39daac2a40f55837bd2.zip |
dev-java/log4j: remove java-virtuals/jaf dependency.
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'dev-java/log4j/log4j-1.2.17-r3.ebuild')
-rw-r--r-- | dev-java/log4j/log4j-1.2.17-r3.ebuild | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/dev-java/log4j/log4j-1.2.17-r3.ebuild b/dev-java/log4j/log4j-1.2.17-r3.ebuild index 8ad08cbf8d11..99065ce40fbf 100644 --- a/dev-java/log4j/log4j-1.2.17-r3.ebuild +++ b/dev-java/log4j/log4j-1.2.17-r3.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2016 Gentoo Foundation +# 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 @@ -14,27 +15,24 @@ SLOT="0" KEYWORDS="amd64 ~arm ppc64 x86" IUSE="javamail jms" -CDEPEND="javamail? ( - dev-java/oracle-javamail:0 - java-virtuals/jaf:0 - ) - jms? ( - java-virtuals/jms:0 - )" +CDEPEND=" + javamail? ( dev-java/oracle-javamail:0 ) + jms? ( java-virtuals/jms:0 )" -RDEPEND=">=virtual/jre-1.6 - ${CDEPEND}" +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" -DEPEND=">=virtual/jdk-1.6 - ${CDEPEND}" +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.6" MY_P="apache-${P}" S="${WORKDIR}/${MY_P}" -java_prepare() { - rm -rf dist || die - java-pkg_filter-compiler jikes - rm -v *.jar || die +src_prepare() { + default + java-pkg_clean } JAVA_ANT_REWRITE_CLASSPATH="true" @@ -45,9 +43,10 @@ EANT_DOC_TARGET="" src_compile() { if use javamail; then - EANT_GENTOO_CLASSPATH+="oracle-javamail,jaf" + 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 @@ -58,7 +57,7 @@ src_compile() { src_install() { java-pkg_newjar dist/lib/${PN}-1.2.17.jar ${PN}.jar - if use doc ; then + 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 |