From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D5722158012 for ; Sat, 10 Sep 2022 11:33:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0EECDE0908; Sat, 10 Sep 2022 11:33:27 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE284E0908 for ; Sat, 10 Sep 2022 11:33:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ED1C9340F3A for ; Sat, 10 Sep 2022 11:33:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5E4CD5D0 for ; Sat, 10 Sep 2022 11:33:24 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1662809593.210e27e93c7bf050b19c6212c4e35d45306dfb74.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/pugixml/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/pugixml/pugixml-1.12.ebuild dev-libs/pugixml/pugixml-9999.ebuild X-VCS-Directories: dev-libs/pugixml/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 210e27e93c7bf050b19c6212c4e35d45306dfb74 X-VCS-Branch: master Date: Sat, 10 Sep 2022 11:33:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4340f9bb-7e2d-440f-b57f-f641480ea6a6 X-Archives-Hash: 6194259b0affcce848d43ba8b897d5e3 commit: 210e27e93c7bf050b19c6212c4e35d45306dfb74 Author: Sam James gentoo org> AuthorDate: Sat Sep 10 11:32:47 2022 +0000 Commit: Sam James gentoo 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 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 +}