public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-logging/
Date: Fri, 16 Feb 2018 22:35:56 +0000 (UTC)	[thread overview]
Message-ID: <1518820545.300bbfeadd6383d672c55889dd00eee6302be0f3.monsieurp@gentoo> (raw)

commit:     300bbfeadd6383d672c55889dd00eee6302be0f3
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 16 19:55:57 2018 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Fri Feb 16 22:35:45 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=300bbfea

dev-java/commons-logging: fix compilation failure.

Closes: https://bugs.gentoo.org/647868
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../commons-logging/commons-logging-1.2-r2.ebuild  | 30 ++++++++--------------
 1 file changed, 11 insertions(+), 19 deletions(-)

diff --git a/dev-java/commons-logging/commons-logging-1.2-r2.ebuild b/dev-java/commons-logging/commons-logging-1.2-r2.ebuild
index bb17056e251..9d530b2fd23 100644
--- a/dev-java/commons-logging/commons-logging-1.2-r2.ebuild
+++ b/dev-java/commons-logging/commons-logging-1.2-r2.ebuild
@@ -34,28 +34,22 @@ DEPEND="
 
 S="${WORKDIR}/${P}-src"
 
-JAVA_ANT_IGNORE_SYSTEM_CLASSES="yes"
-JAVA_ANT_REWRITE_CLASSPATH="yes"
 EANT_BUILD_TARGET="compile"
-EANT_DOC_TARGET=""
-
-PATCH=(
-	# patch to make the build.xml respect no servletapi
-	"${FILESDIR}/${P}-servletapi.patch"
-	"${FILESDIR}/${P}-gentoo.patch"
-)
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_IGNORE_SYSTEM_CLASSES="yes"
 
 DOCS=( RELEASE-NOTES.txt PROPOSAL.html )
 
 src_prepare() {
 	default
 
+	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 || die
 
-	if use servletapi; then
-		echo "servletapi.jar=$(java-pkg_getjar --virtual servlet-api-3.1 servlet-api.jar)" >> build.properties || die
-	fi
 	if use avalon-framework; then
 		echo "avalon-framework.jar=$(java-pkg_getjars avalon-framework-4.2)" >> build.properties || die
 	fi
@@ -65,22 +59,20 @@ src_prepare() {
 	if use log4j; then
 		echo "log4j12.jar=$(java-pkg_getjars log4j)" >> build.properties || die
 	fi
-}
 
-src_compile() {
-	java-pkg-2_src_compile
-	if use doc; then
-		ejavadoc -d api -sourcepath src/main/java -subpackages org || die
+	if use servletapi; then
+		echo "servletapi.jar=$(java-pkg_getjar --virtual servlet-api-3.1 servlet-api.jar)" >> build.properties || die
 	fi
 }
 
 src_install() {
-	local pkg="org.apache.commons.logging"
+	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
 
-	use doc && java-pkg_dojavadoc api
+	einstalldocs
+	use doc && java-pkg_dojavadoc target/docs/
 	use source && java-pkg_dosrc src/main/java/org
 }
 


             reply	other threads:[~2018-02-16 22:36 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-16 22:35 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-20  7:50 [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-logging/ 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 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
2016-04-26 21:47 James Le Cuirot
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=1518820545.300bbfeadd6383d672c55889dd00eee6302be0f3.monsieurp@gentoo \
    --to=monsieurp@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