diff options
| author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2025-08-15 22:10:42 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-09-04 21:48:36 +0100 |
| commit | 35c3e1bee8f56edf7445aed066af87d360118325 (patch) | |
| tree | 81937e4b6fcb54c65056a81bb28c7b0450e97d4f /dev-cpp | |
| parent | 7aeb2187092c15425dfcf9d1a21ae78fa36c2760 (diff) | |
| download | gentoo-35c3e1bee8f56edf7445aed066af87d360118325.tar.gz gentoo-35c3e1bee8f56edf7445aed066af87d360118325.tar.bz2 gentoo-35c3e1bee8f56edf7445aed066af87d360118325.zip | |
dev-cpp/pcg-cpp: new package, add 0.98.1_p20220408
Changes from ::guru:
* New snapshot
* Removed .pc file, which is not upstream
* Not installing samples
* Patch test to fail if failed
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/43482
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp')
| -rw-r--r-- | dev-cpp/pcg-cpp/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/pcg-cpp/files/pcg-cpp-0.98.1-testerror.patch | 12 | ||||
| -rw-r--r-- | dev-cpp/pcg-cpp/metadata.xml | 17 | ||||
| -rw-r--r-- | dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20220408.ebuild | 41 |
4 files changed, 71 insertions, 0 deletions
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..1701c8181b99 --- /dev/null +++ b/dev-cpp/pcg-cpp/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>alexey+gentoo@asokolov.org</email> + <name>Alexey Sokolov</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">mneme/pcg-cpp</remote-id> + <bugs-to>https://github.com/imneme/pcg-cpp/issues</bugs-to> + <doc>https://www.pcg-random.org/using-pcg-cpp.html</doc> + </upstream> +</pkgmetadata> 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/* +} |
