summaryrefslogtreecommitdiff
path: root/dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20220408.ebuild
diff options
context:
space:
mode:
authorAlexey Sokolov <alexey+gentoo@asokolov.org>2025-08-15 22:10:42 +0100
committerSam James <sam@gentoo.org>2025-09-04 21:48:36 +0100
commit35c3e1bee8f56edf7445aed066af87d360118325 (patch)
tree81937e4b6fcb54c65056a81bb28c7b0450e97d4f /dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20220408.ebuild
parent7aeb2187092c15425dfcf9d1a21ae78fa36c2760 (diff)
downloadgentoo-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/pcg-cpp/pcg-cpp-0.98.1_p20220408.ebuild')
-rw-r--r--dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20220408.ebuild41
1 files changed, 41 insertions, 0 deletions
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/*
+}