From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-cpp/pcg-cpp/Manifest | 1 + .../pcg-cpp/files/pcg-cpp-0.98.1-testerror.patch | 12 +++++++ dev-cpp/pcg-cpp/metadata.xml | 17 +++++++++ dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20220408.ebuild | 41 ++++++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 dev-cpp/pcg-cpp/Manifest create mode 100644 dev-cpp/pcg-cpp/files/pcg-cpp-0.98.1-testerror.patch create mode 100644 dev-cpp/pcg-cpp/metadata.xml create mode 100644 dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20220408.ebuild (limited to 'dev-cpp/pcg-cpp') diff --git a/dev-cpp/pcg-cpp/Manifest b/dev-cpp/pcg-cpp/Manifest new file mode 100644 index 000000000000..d1692012b821 --- /dev/null +++ b/dev-cpp/pcg-cpp/Manifest @@ -0,0 +1 @@ +DIST pcg-cpp-0.98.1_p20220408.tar.gz 78224 BLAKE2B a2de1ddd297e0f18be1be69d047e77cd53e0278d80818e8431e8a7fe49d4576d72df256a1210afe87f53e3ee65e920b55cba1a461354a118d9d8d794b387b9c0 SHA512 6d952737f61778f1d5c7f6bba0ebc3164e84fc0b1369186cd9c9aa880ec7ab3ea2a7066012c9094bc697a0093fe24d316bf83bd2842eb9433f4533782bb50a39 diff --git a/dev-cpp/pcg-cpp/files/pcg-cpp-0.98.1-testerror.patch b/dev-cpp/pcg-cpp/files/pcg-cpp-0.98.1-testerror.patch new file mode 100644 index 000000000000..9626735acb1f --- /dev/null +++ b/dev-cpp/pcg-cpp/files/pcg-cpp-0.98.1-testerror.patch @@ -0,0 +1,12 @@ +Fail test if test failed +https://github.com/imneme/pcg-cpp/pull/100 + +--- a/test-high/run-tests.sh ++++ b/test-high/run-tests.sh +@@ -94,5 +94,6 @@ else + echo All tests except tests awkward tests with 128-bit math succceed. + else + echo ERROR: Some tests failed. ++ exit 1 + fi + fi diff --git a/dev-cpp/pcg-cpp/metadata.xml b/dev-cpp/pcg-cpp/metadata.xml new file mode 100644 index 000000000000..a5284e150baa --- /dev/null +++ b/dev-cpp/pcg-cpp/metadata.xml @@ -0,0 +1,17 @@ + + + + + alexey+gentoo@asokolov.org + Alexey Sokolov + + + proxy-maint@gentoo.org + Proxy Maintainers + + + https://github.com/imneme/pcg-cpp/issues + https://www.pcg-random.org/using-pcg-cpp.html + + baldeagleos-repo + diff --git a/dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20220408.ebuild b/dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20220408.ebuild new file mode 100644 index 000000000000..efd4fcffe254 --- /dev/null +++ b/dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20220408.ebuild @@ -0,0 +1,41 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +MY_COMMIT="428802d1a5634f96bcd0705fab379ff0113bcf13" + +DESCRIPTION="Family of better random number generators" +HOMEPAGE="https://www.pcg-random.org https://github.com/imneme/pcg-cpp" +SRC_URI="https://github.com/imneme/pcg-cpp/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/pcg-cpp-${MY_COMMIT}" + +LICENSE="|| ( Apache-2.0 MIT )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}"/pcg-cpp-0.98.1-testerror.patch +) + +# header-only library +src_compile() { + tc-export CXX + if use test ; then + cd test-high || die + emake + fi +} + +src_test() { + cd test-high || die + sh ./run-tests.sh || die +} + +src_install() { + doheader include/* +} -- cgit v1.3.1