Package-Manager: portage-2.3.3
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
inherit autotools eutils
DEPEND="${RDEPEND}
doc? ( dev-tex/latex2html )"
+DOCS=(
+ NOTES
+)
+HTML_DOCS=()
+
+PATCHES=(
+ "${FILESDIR}/${P}-build.patch"
+)
+
+pkg_setup() {
+ use doc && DOCS+=(
+ ChangeLog
+ manual/dieharder.pdf manual/dieharder.ps
+ )
+ use doc && HTML_DOCS+=(
+ dieharder.html
+ )
+}
+
src_prepare() {
- epatch "${FILESDIR}/${P}-build.patch"
+ default
eautoreconf
}
src_install() {
default
- dodoc NOTES
+
docinto "dieharder"
dodoc dieharder/README dieharder/NOTES
docinto "libdieharder"
dodoc libdieharder/README libdieharder/NOTES
-
- if use doc ; then
- dodoc ChangeLog dieharder.html
- docinto "manual"
- dodoc manual/dieharder.pdf manual/dieharder.ps
- fi
}