From e70a3a2be29419f78b130fb6fdfca69ca5816ca6 Mon Sep 17 00:00:00 2001 From: Anna Vyalkova Date: Tue, 18 May 2021 04:12:49 +0500 Subject: [PATCH] dev-cpp/pcg-cpp: initial import Signed-off-by: Anna Vyalkova --- dev-cpp/pcg-cpp/Manifest | 1 + dev-cpp/pcg-cpp/metadata.xml | 12 ++++++ .../pcg-cpp/pcg-cpp-0.98.1_p20210406.ebuild | 40 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 dev-cpp/pcg-cpp/Manifest create mode 100644 dev-cpp/pcg-cpp/metadata.xml create mode 100644 dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20210406.ebuild diff --git a/dev-cpp/pcg-cpp/Manifest b/dev-cpp/pcg-cpp/Manifest new file mode 100644 index 0000000000..f6fbafada8 --- /dev/null +++ b/dev-cpp/pcg-cpp/Manifest @@ -0,0 +1 @@ +DIST pcg-cpp-0.98.1_p20210406.tar.gz 78228 BLAKE2B 5cb1ded0bbc04a147975f3a40ca8e50becbd50e1d325a1f0bdff37bb2030bc15063601650a6bf8db252688e5f80cb950e14ebc14f2c9be37b6415be9074aa258 SHA512 e96e40bf63ddb29ebf8679ddaabbf5dc934173f38cb5ed97c5efe068a742a715daa05e38d9ae322a10fa538c8ec7a271622bfb6569256a471fe5e1c9a83f9e3f diff --git a/dev-cpp/pcg-cpp/metadata.xml b/dev-cpp/pcg-cpp/metadata.xml new file mode 100644 index 0000000000..8f65b2c6ae --- /dev/null +++ b/dev-cpp/pcg-cpp/metadata.xml @@ -0,0 +1,12 @@ + + + + + mneme/pcg-cpp + https://github.com/imneme/pcg-cpp/issues + + + cyber+gentoo@sysrq.in + Anna + + diff --git a/dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20210406.ebuild b/dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20210406.ebuild new file mode 100644 index 0000000000..cac2f56bc9 --- /dev/null +++ b/dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20210406.ebuild @@ -0,0 +1,40 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +COMMIT="ffd522e7188bef30a00c74dc7eb9de5faff90092" +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/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="|| ( Apache-2.0 MIT )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +src_prepare() { + default + sed "s/install: all/install:/" -i Makefile || die +} + +# this code installs only headers +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() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +}