diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-14 11:10:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-14 11:10:11 +0100 |
commit | 81b8f20732954c4508baf2f77472b5435e3f851f (patch) | |
tree | 4180177cb7ba85eab50159ce96218c2419fb24a6 /dev-libs/pugixml/pugixml-9999.ebuild | |
parent | 946859e0e36904cffb3e0ccbccb6b7b1347c1cc8 (diff) |
gentoo auto-resync : 14:09:2022 - 11:10:10
Diffstat (limited to 'dev-libs/pugixml/pugixml-9999.ebuild')
-rw-r--r-- | dev-libs/pugixml/pugixml-9999.ebuild | 15 |
1 files changed, 13 insertions, 2 deletions
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 +} |