From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-logging/
Date: Tue, 26 Apr 2016 21:47:51 +0000 (UTC) [thread overview]
Message-ID: <1461707264.a5e68f7eff5d7c836a1b977d2c2eab5749870ef7.chewi@gentoo> (raw)
commit: a5e68f7eff5d7c836a1b977d2c2eab5749870ef7
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 26 21:44:59 2016 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Tue Apr 26 21:47:44 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5e68f7e
dev-java/commons-logging: Use newer deps, fix tests, general tidy up
- Use newer avalon-logkit so we can kill 1.2
- Use newer servlet-api because it's very compatible
- log4j 1.3 was never actually released
- java-pkg-2_src_test isn't called automatically
- jikes is dead and we don't really support other compilers anyway
Package-Manager: portage-2.2.28
.../commons-logging/commons-logging-1.2-r1.ebuild | 66 ++++++++++++++++++++++
1 file changed, 66 insertions(+)
diff --git a/dev-java/commons-logging/commons-logging-1.2-r1.ebuild b/dev-java/commons-logging/commons-logging-1.2-r1.ebuild
new file mode 100644
index 0000000..0dc2cc8
--- /dev/null
+++ b/dev-java/commons-logging/commons-logging-1.2-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2 java-osgi
+
+DESCRIPTION="An ultra-thin bridge between different Java logging libraries"
+HOMEPAGE="http://commons.apache.org/logging/"
+SRC_URI="mirror://apache/commons/logging/source/${P}-src.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="avalon-framework avalon-logkit log4j servletapi test"
+RESTRICT="!servletapi? ( test )"
+
+CDEPEND="avalon-framework? ( dev-java/avalon-framework:4.2 )
+ avalon-logkit? ( dev-java/avalon-logkit:2.0 )
+ log4j? ( dev-java/log4j:0 )
+ servletapi? ( java-virtuals/servlet-api:3.1 )"
+
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.6
+ test? ( dev-java/ant-junit:0 )"
+
+S="${WORKDIR}/${P}-src"
+
+EANT_BUILD_TARGET="compile"
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_IGNORE_SYSTEM_CLASSES="yes"
+
+java_prepare() {
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+ # patch to make the build.xml respect no servletapi
+ epatch "${FILESDIR}/${P}-servletapi.patch"
+
+ # bug #208098
+ echo "jdk.1.4.present=true" > build.properties
+
+ use avalon-framework && echo "avalon-framework.jar=$(java-pkg_getjars avalon-framework-4.2)" >> build.properties
+ use avalon-logkit && echo "logkit.jar=$(java-pkg_getjars avalon-logkit-2.0)" >> build.properties
+ use log4j && echo "log4j12.jar=$(java-pkg_getjars log4j)" >> build.properties
+ use servletapi && echo "servletapi.jar=$(java-pkg_getjar --virtual servlet-api-3.1 servlet-api.jar)" >> build.properties
+}
+
+src_install() {
+ local pkg=org.apache.commons.logging
+ java-osgi_newjar "target/${P}.jar" "${pkg}" "Apache Commons Logging" "${pkg};version=\"${PV}\", ${pkg}.impl;version=\"${PV}\""
+ java-pkg_newjar target/${PN}-api-${PV}.jar ${PN}-api.jar
+ java-pkg_newjar target/${PN}-adapters-${PV}.jar ${PN}-adapters.jar
+
+ dodoc RELEASE-NOTES.txt || die
+ dohtml PROPOSAL.html || die
+ use doc && java-pkg_dojavadoc target/docs/
+ use source && java-pkg_dosrc src/main/java/org
+}
+
+src_test() {
+ java-pkg-2_src_test
+}
next reply other threads:[~2016-04-26 21:47 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-26 21:47 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-30 19:41 [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-logging/ Florian Schmaus
2024-12-23 23:47 Jakov Smolić
2024-11-15 22:13 Sam James
2024-10-17 9:05 Miroslav Šulc
2024-10-16 9:39 Miroslav Šulc
2024-05-20 7:50 Miroslav Šulc
2024-05-19 17:40 Arthur Zamarin
2024-05-18 3:51 Sam James
2024-05-18 3:19 Sam James
2024-05-18 3:19 Sam James
2024-04-18 10:56 Miroslav Šulc
2023-04-20 5:01 Sam James
2023-04-20 5:01 Sam James
2023-04-20 4:14 Arthur Zamarin
2023-04-20 4:02 Sam James
2023-03-21 9:06 Sven Wegener
2023-03-21 6:11 Miroslav Šulc
2023-03-19 6:20 Miroslav Šulc
2022-10-14 17:41 Miroslav Šulc
2022-03-31 18:58 Arthur Zamarin
2022-03-31 16:47 Arthur Zamarin
2022-03-30 11:47 Agostino Sarubbo
2022-03-30 11:09 Jakov Smolić
2022-03-30 11:09 Jakov Smolić
2022-02-26 11:53 Arthur Zamarin
2022-02-26 8:52 Miroslav Šulc
2022-02-25 18:53 Arthur Zamarin
2022-02-24 9:47 Miroslav Šulc
2022-01-27 8:17 Miroslav Šulc
2021-05-16 18:58 Sam James
2021-05-09 10:02 Miroslav Šulc
2021-05-09 9:17 Agostino Sarubbo
2021-05-06 7:22 Sergei Trofimovich
2021-05-01 18:19 Agostino Sarubbo
2021-04-25 9:18 Sergei Trofimovich
2021-04-21 10:00 Miroslav Šulc
2021-04-21 10:00 Miroslav Šulc
2021-04-21 10:00 Miroslav Šulc
2021-04-19 17:57 Miroslav Šulc
2018-04-14 21:04 Patrice Clement
2018-02-16 22:35 Patrice Clement
2018-02-16 10:27 Patrice Clement
2017-08-28 22:01 James Le Cuirot
2017-08-28 22:01 James Le Cuirot
2017-07-13 12:13 Alexis Ballier
2017-02-24 0:34 Michael Weber
2015-08-30 19:34 Patrice Clement
2015-08-30 19:34 Patrice Clement
2015-08-26 14:17 Mikle Kolyada
2015-08-16 20:52 Mikle Kolyada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1461707264.a5e68f7eff5d7c836a1b977d2c2eab5749870ef7.chewi@gentoo \
--to=chewi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox