dev-libs/pugixml: enable tests

The release tarball excludes the test sources, so switch SRC_URI to the
github tag archive.

Closes: https://github.com/gentoo/gentoo/pull/27184
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
matoro
2022-09-10 12:33:12 +01:00
committed by Sam James
parent 820427ba0f
commit fe7fbdb2f6
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
DIST pugixml-1.11.4.tar.gz 386229 BLAKE2B 93d9c537f10e3a12297e4d6a39f2866bd5c9678c6aff83e20fb79b6587191b6586b1fe4d9dd995a7be05cc9281cd9910fae3eddf6b2eac216873e918a5cf3231 SHA512 c83f57ef2492eee359d979597fb5089b8eca547bb9d41cfbb6bcf43d59fe75e6780b0f31dd593145ec9888c065153aba52702667e2de213fa080cd51e9e13a38
DIST pugixml-1.12.tar.gz 389685 BLAKE2B 190ebd1e7ac298a4ef6bc35769151f4d606a88185d29cfad7acb813990e3c9b2bf5b17c461f321942a3af0688c2244a896eb0129df8def5aff63b1d65aa3f6dc SHA512 1d23fc8b0aa643b932d34012be6d545734f5177d7db711fe1f0b82e318d72b5850a8c3d8513393b86b5a1e83ee7bfd825877f9efbf801369adfcb88041b52a93
DIST pugixml-1.12.tar.gz 571637 BLAKE2B 46bacdef3e8eb2eeae877d1d62dcb19a442d840d784c2ff402a6b1bbfedb0af1379ec98344580a491472fc1014875f35ab2319d9759e0284dbb1afbcdae27454 SHA512 29395836a2add5f2bcb8fca6be5e517ce036ec2d041ca25aae5253f29f75fbc7214e7a411f0c0e470c2476ee49b4882d66dec3502a933004eb17e6119cd8f125
+10 -1
View File
@@ -9,7 +9,7 @@ if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/zeux/${PN}.git"
inherit git-r3
else
SRC_URI="https://github.com/zeux/${PN}/releases/download/v${PV}/${P}.tar.gz"
SRC_URI="https://github.com/zeux/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux"
fi
@@ -18,3 +18,12 @@ HOMEPAGE="https://pugixml.org/ https://github.com/zeux/pugixml"
LICENSE="MIT"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
-D${PN^^}_BUILD_TESTS=$(usex test ON OFF)
)
cmake_src_configure
}