public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libaxc/
Date: Tue,  9 Nov 2021 04:55:05 +0000 (UTC)	[thread overview]
Message-ID: <1636433697.e96ff3984641ca1eec5926ca89cfa51209433cc1.sam@gentoo> (raw)

commit:     e96ff3984641ca1eec5926ca89cfa51209433cc1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  9 04:53:40 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov  9 04:54:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e96ff398

net-libs/libaxc: run tests in parallel, respect CC in src_test too

- Run tests in parallel (fixed upstream in 0.3.5)
- Respect CC in src_test
- Shift src_test to be above src_install (so it matches the order they're
called in)
- As a bonus, shift pkgconfig to BDEPEND.

Note that test failures seem to be ignored in the upstream Makefile.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/libaxc/libaxc-0.3.6.ebuild | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/net-libs/libaxc/libaxc-0.3.6.ebuild b/net-libs/libaxc/libaxc-0.3.6.ebuild
index 6fe97dd4c07..013ce8f510c 100644
--- a/net-libs/libaxc/libaxc-0.3.6.ebuild
+++ b/net-libs/libaxc/libaxc-0.3.6.ebuild
@@ -23,9 +23,9 @@ RDEPEND="
 	"
 DEPEND="
 	${RDEPEND}
-	virtual/pkgconfig
 	test? ( dev-util/cmocka )
 	"
+BDEPEND="virtual/pkgconfig"
 
 S="${WORKDIR}"/${MY_P}
 RESTRICT="!test? ( test )"
@@ -48,24 +48,26 @@ src_compile() {
 	emake "${make_args[@]}"
 }
 
+src_test() {
+	# TODO: Test failures seem to be ignored in the upstream Makefile?
+	# e.g. https://github.com/gkdr/axc/blob/master/Makefile#L154
+	emake CC="$(tc-getCC)" test
+}
+
 src_install() {
 	emake DESTDIR="${D}" PREFIX=/usr install
 
 	# Respect libdir other than /usr/lib, e.g. /usr/lib64
 	local libdir="$(get_libdir)"
 	if [[ ${libdir} != lib ]]; then
-		mv "${D}"/usr/{lib,${libdir}} || die
+		mv "${ED}"/usr/{lib,${libdir}} || die
 		sed "s|^libdir=.*|libdir=\${prefix}/${libdir}|" \
-				-i "${D}/usr/${libdir}/pkgconfig/libaxc.pc" || die
+				-i "${ED}/usr/${libdir}/pkgconfig/libaxc.pc" || die
 	fi
 
 	einstalldocs
 
 	if ! use static-libs ; then
-		rm "${D}/usr/${libdir}/libaxc.a" || die
+		rm "${ED}/usr/${libdir}/libaxc.a" || die
 	fi
 }
-
-src_test() {
-	emake -j1 test
-}


             reply	other threads:[~2021-11-09  4:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-09  4:55 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-11-29  1:18 [gentoo-commits] repo/gentoo:master commit in: net-libs/libaxc/ Sebastian Pipping
2022-10-05 10:27 Sebastian Pipping
2022-01-29 18:15 Sebastian Pipping
2021-09-27 20:21 Sam James
2021-09-27 20:21 Sam James
2021-09-09 12:31 Sebastian Pipping
2021-08-22 23:09 Sebastian Pipping
2021-04-03 22:15 Sam James
2021-04-03 22:15 Sam James
2021-02-22 21:09 Sebastian Pipping
2021-02-22 21:09 Sebastian Pipping
2021-02-21 23:49 Sebastian Pipping

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=1636433697.e96ff3984641ca1eec5926ca89cfa51209433cc1.sam@gentoo \
    --to=sam@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