-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
+
inherit autotools eutils
DESCRIPTION="drop-in replacement for cdialog using GTK"
nls? ( sys-devel/gettext )
"
-S=${WORKDIR}/${P/x/X}
+S="${WORKDIR}/${P/x/X}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-{no-strip,install}.patch
+)
src_prepare() {
- epatch "${FILESDIR}"/${P}-{no-strip,install}.patch
+ epatch "${PATCHES[@]}"
+
eautoreconf
}
src_install() {
default
- rm -rf "${D}"/usr/share/doc
+
+ rm -rv "${D}"/usr/share/doc || die
dodoc AUTHORS BUGS ChangeLog README
use doc && dohtml -r doc/
if use examples; then
- insinto /usr/share/doc/${PF}/examples
+ insinto "/usr/share/doc/${PF}/examples"
doins samples/*
fi
}