sci-mathematics/rngstreams: Port to EAPI 7

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2019-12-08 00:37:08 +01:00
parent b8b9672854
commit cc34d8bca4
@@ -1,24 +1,36 @@
# Copyright 1999-2013 Gentoo Foundation
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=4
EAPI=7
inherit autotools-utils
inherit out-of-source
DESCRIPTION="Multiple independent streams of pseudo-random numbers"
HOMEPAGE="http://statmath.wu.ac.at/software/RngStreams/"
SRC_URI="${HOMEPAGE}${P}.tar.gz"
SRC_URI="http://statmath.wu.ac.at/software/RngStreams/${P}.tar.gz"
LICENSE="GPL-3"
SLOT=0
SLOT="0"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="doc examples static-libs"
IUSE="doc examples"
src_install() {
autotools-utils_src_install
use doc && dohtml -r doc/rngstreams.html/* && dodoc doc/${PN}.pdf
my_src_configure() {
econf --enable-shared --disable-static
}
my_src_install_all() {
if use doc; then
HTML_DOCS=( doc/rngstreams.html/. )
dodoc doc/${PN}.pdf
fi
einstalldocs
if use examples; then
rm examples/Makefile*
rm examples/Makefile* || die
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
# no static archives
find "${D}" -name '*.la' -delete || die
}