Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/pugixml/
Date: Sat, 10 Sep 2022 11:33:27
Message-Id: 1662809592.fe7fbdb2f6a747fac2d547b8f2c22a31bdddc2f1.sam@gentoo
1 commit: fe7fbdb2f6a747fac2d547b8f2c22a31bdddc2f1
2 Author: matoro <matoro <AT> users <DOT> noreply <DOT> github <DOT> com>
3 AuthorDate: Wed Sep 7 19:37:27 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 10 11:33:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe7fbdb2
7
8 dev-libs/pugixml: enable tests
9
10 The release tarball excludes the test sources, so switch SRC_URI to the
11 github tag archive.
12
13 Closes: https://github.com/gentoo/gentoo/pull/27184
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 dev-libs/pugixml/Manifest | 2 +-
17 dev-libs/pugixml/pugixml-1.12.ebuild | 11 ++++++++++-
18 2 files changed, 11 insertions(+), 2 deletions(-)
19
20 diff --git a/dev-libs/pugixml/Manifest b/dev-libs/pugixml/Manifest
21 index 9c4fb41221cf..5f706d44aba8 100644
22 --- a/dev-libs/pugixml/Manifest
23 +++ b/dev-libs/pugixml/Manifest
24 @@ -1,2 +1,2 @@
25 DIST pugixml-1.11.4.tar.gz 386229 BLAKE2B 93d9c537f10e3a12297e4d6a39f2866bd5c9678c6aff83e20fb79b6587191b6586b1fe4d9dd995a7be05cc9281cd9910fae3eddf6b2eac216873e918a5cf3231 SHA512 c83f57ef2492eee359d979597fb5089b8eca547bb9d41cfbb6bcf43d59fe75e6780b0f31dd593145ec9888c065153aba52702667e2de213fa080cd51e9e13a38
26 -DIST pugixml-1.12.tar.gz 389685 BLAKE2B 190ebd1e7ac298a4ef6bc35769151f4d606a88185d29cfad7acb813990e3c9b2bf5b17c461f321942a3af0688c2244a896eb0129df8def5aff63b1d65aa3f6dc SHA512 1d23fc8b0aa643b932d34012be6d545734f5177d7db711fe1f0b82e318d72b5850a8c3d8513393b86b5a1e83ee7bfd825877f9efbf801369adfcb88041b52a93
27 +DIST pugixml-1.12.tar.gz 571637 BLAKE2B 46bacdef3e8eb2eeae877d1d62dcb19a442d840d784c2ff402a6b1bbfedb0af1379ec98344580a491472fc1014875f35ab2319d9759e0284dbb1afbcdae27454 SHA512 29395836a2add5f2bcb8fca6be5e517ce036ec2d041ca25aae5253f29f75fbc7214e7a411f0c0e470c2476ee49b4882d66dec3502a933004eb17e6119cd8f125
28
29 diff --git a/dev-libs/pugixml/pugixml-1.12.ebuild b/dev-libs/pugixml/pugixml-1.12.ebuild
30 index ebcd674be6c0..75d80895d193 100644
31 --- a/dev-libs/pugixml/pugixml-1.12.ebuild
32 +++ b/dev-libs/pugixml/pugixml-1.12.ebuild
33 @@ -9,7 +9,7 @@ if [[ ${PV} == *9999 ]] ; then
34 EGIT_REPO_URI="https://github.com/zeux/${PN}.git"
35 inherit git-r3
36 else
37 - SRC_URI="https://github.com/zeux/${PN}/releases/download/v${PV}/${P}.tar.gz"
38 + SRC_URI="https://github.com/zeux/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
39 KEYWORDS="amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux"
40 fi
41
42 @@ -18,3 +18,12 @@ HOMEPAGE="https://pugixml.org/ https://github.com/zeux/pugixml"
43
44 LICENSE="MIT"
45 SLOT="0"
46 +IUSE="test"
47 +RESTRICT="!test? ( test )"
48 +
49 +src_configure() {
50 + local mycmakeargs=(
51 + -D${PN^^}_BUILD_TESTS=$(usex test ON OFF)
52 + )
53 + cmake_src_configure
54 +}