mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 18:43:18 -04:00
dev-cpp/pcg-cpp: add .pc file + examples use flag
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
45
dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20210406-r1.ebuild
Normal file
45
dev-cpp/pcg-cpp/pcg-cpp-0.98.1_p20210406-r1.ebuild
Normal file
@@ -0,0 +1,45 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit multilib 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="examples test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# 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/*
|
||||
|
||||
docompress -x /usr/share/doc/${PF}/sample
|
||||
use examples && dodoc -r sample
|
||||
einstalldocs
|
||||
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins "${FILESDIR}"/pcg-cpp.pc
|
||||
sed -e "s:@PREFIX@:${EPREFIX}/usr:" \
|
||||
-i "${ED}"/usr/$(get_libdir)/pkgconfig/pcg-cpp.pc || die
|
||||
}
|
||||
Reference in New Issue
Block a user