dev-cpp/pcg-cpp: initial import

Signed-off-by: Anna Vyalkova <cyber@sysrq.in>
This commit is contained in:
Anna Vyalkova 2021-05-18 04:12:49 +05:00
parent b22e69e69d
commit e70a3a2be2
No known key found for this signature in database
GPG Key ID: E7B76EDC50864BB1
3 changed files with 53 additions and 0 deletions

1
dev-cpp/pcg-cpp/Manifest Normal file
View File

@ -0,0 +1 @@
DIST pcg-cpp-0.98.1_p20210406.tar.gz 78228 BLAKE2B 5cb1ded0bbc04a147975f3a40ca8e50becbd50e1d325a1f0bdff37bb2030bc15063601650a6bf8db252688e5f80cb950e14ebc14f2c9be37b6415be9074aa258 SHA512 e96e40bf63ddb29ebf8679ddaabbf5dc934173f38cb5ed97c5efe068a742a715daa05e38d9ae322a10fa538c8ec7a271622bfb6569256a471fe5e1c9a83f9e3f

View File

@ -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>cyber+gentoo@sysrq.in</email>
<name>Anna</name>
</maintainer>
</pkgmetadata>

View File

@ -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
}