commit: 210e27e93c7bf050b19c6212c4e35d45306dfb74
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 10 11:32:47 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 10 11:33:13 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=210e27e9
dev-libs/pugixml: sync live, add explanatory comment re SRC_URI
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/pugixml/pugixml-1.12.ebuild | 2 ++
dev-libs/pugixml/pugixml-9999.ebuild | 15 +++++++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/dev-libs/pugixml/pugixml-1.12.ebuild
b/dev-libs/pugixml/pugixml-1.12.ebuild
index 75d80895d193..bc15a4c1e891 100644
--- a/dev-libs/pugixml/pugixml-1.12.ebuild
+++ b/dev-libs/pugixml/pugixml-1.12.ebuild
@@ -9,6 +9,8 @@ if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/zeux/${PN}.git"
inherit git-r3
else
+ # Use non-release tarball for tests
+ # TODO: ask upstream to include tests in release tarballs?
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
diff --git a/dev-libs/pugixml/pugixml-9999.ebuild
b/dev-libs/pugixml/pugixml-9999.ebuild
index dd62094ec7ee..ab15c38b19e9 100644
--- a/dev-libs/pugixml/pugixml-9999.ebuild
+++ b/dev-libs/pugixml/pugixml-9999.ebuild
@@ -9,8 +9,10 @@ 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"
- KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86
~amd64-linux ~x86-linux"
+ # Use non-release tarball for tests
+ # TODO: ask upstream to include tests in release tarballs?
+ 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
DESCRIPTION="Light-weight, simple, and fast XML parser for C++ with XPath
support"
@@ -18,3 +20,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
+}