commit:     e70a3a2be29419f78b130fb6fdfca69ca5816ca6
Author:     Anna Vyalkova <cyber <AT> sysrq <DOT> in>
AuthorDate: Mon May 17 23:12:49 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Tue May 18 21:31:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e70a3a2b

dev-cpp/pcg-cpp: initial import

Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>

 dev-cpp/pcg-cpp/Manifest                        |  1 +
 dev-cpp/pcg-cpp/metadata.xml                    | 12 ++++++++
 dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20210406.ebuild | 40 +++++++++++++++++++++++++
 3 files changed, 53 insertions(+)

diff --git a/dev-cpp/pcg-cpp/Manifest b/dev-cpp/pcg-cpp/Manifest
new file mode 100644
index 000000000..f6fbafada
--- /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 000000000..8f65b2c6a
--- /dev/null
+++ b/dev-cpp/pcg-cpp/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <upstream>
+               <remote-id type="github">mneme/pcg-cpp</remote-id>
+               <bugs-to>https://github.com/imneme/pcg-cpp/issues</bugs-to>
+       </upstream>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Anna</name>
+       </maintainer>
+</pkgmetadata>

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 000000000..cac2f56bc
--- /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
+}

Reply via email to