Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/pcg-cpp/
Date: Tue, 18 May 2021 21:31:24
Message-Id: 1621373477.e70a3a2be29419f78b130fb6fdfca69ca5816ca6.cybertailor@gentoo
1 commit: e70a3a2be29419f78b130fb6fdfca69ca5816ca6
2 Author: Anna Vyalkova <cyber <AT> sysrq <DOT> in>
3 AuthorDate: Mon May 17 23:12:49 2021 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Tue May 18 21:31:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e70a3a2b
7
8 dev-cpp/pcg-cpp: initial import
9
10 Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>
11
12 dev-cpp/pcg-cpp/Manifest | 1 +
13 dev-cpp/pcg-cpp/metadata.xml | 12 ++++++++
14 dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20210406.ebuild | 40 +++++++++++++++++++++++++
15 3 files changed, 53 insertions(+)
16
17 diff --git a/dev-cpp/pcg-cpp/Manifest b/dev-cpp/pcg-cpp/Manifest
18 new file mode 100644
19 index 000000000..f6fbafada
20 --- /dev/null
21 +++ b/dev-cpp/pcg-cpp/Manifest
22 @@ -0,0 +1 @@
23 +DIST pcg-cpp-0.98.1_p20210406.tar.gz 78228 BLAKE2B 5cb1ded0bbc04a147975f3a40ca8e50becbd50e1d325a1f0bdff37bb2030bc15063601650a6bf8db252688e5f80cb950e14ebc14f2c9be37b6415be9074aa258 SHA512 e96e40bf63ddb29ebf8679ddaabbf5dc934173f38cb5ed97c5efe068a742a715daa05e38d9ae322a10fa538c8ec7a271622bfb6569256a471fe5e1c9a83f9e3f
24
25 diff --git a/dev-cpp/pcg-cpp/metadata.xml b/dev-cpp/pcg-cpp/metadata.xml
26 new file mode 100644
27 index 000000000..8f65b2c6a
28 --- /dev/null
29 +++ b/dev-cpp/pcg-cpp/metadata.xml
30 @@ -0,0 +1,12 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <upstream>
35 + <remote-id type="github">mneme/pcg-cpp</remote-id>
36 + <bugs-to>https://github.com/imneme/pcg-cpp/issues</bugs-to>
37 + </upstream>
38 + <maintainer type="person">
39 + <email>cyber+gentoo@×××××.in</email>
40 + <name>Anna</name>
41 + </maintainer>
42 +</pkgmetadata>
43
44 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
45 new file mode 100644
46 index 000000000..cac2f56bc
47 --- /dev/null
48 +++ b/dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20210406.ebuild
49 @@ -0,0 +1,40 @@
50 +# Copyright 2021 Gentoo Authors
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=7
54 +
55 +inherit toolchain-funcs
56 +
57 +COMMIT="ffd522e7188bef30a00c74dc7eb9de5faff90092"
58 +DESCRIPTION="Family of better random number generators"
59 +HOMEPAGE="https://www.pcg-random.org https://github.com/imneme/pcg-cpp"
60 +SRC_URI="https://github.com/imneme/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
61 +S="${WORKDIR}/${PN}-${COMMIT}"
62 +
63 +LICENSE="|| ( Apache-2.0 MIT )"
64 +SLOT="0"
65 +KEYWORDS="~amd64 ~x86"
66 +IUSE="test"
67 +
68 +src_prepare() {
69 + default
70 + sed "s/install: all/install:/" -i Makefile || die
71 +}
72 +
73 +# this code installs only headers
74 +src_compile() {
75 + tc-export CXX
76 + if use test ; then
77 + cd test-high || die
78 + emake
79 + fi
80 +}
81 +
82 +src_test() {
83 + cd test-high || die
84 + sh ./run-tests.sh || die
85 +}
86 +
87 +src_install() {
88 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
89 +}