-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
default
# honor Gentoo's docdir
- sed -i -e '/^docdir=/s/^/#/' \
- Makefile.am \
- || die "failed to modify Makefile.am"
+ sed -i -e "s|^docdir =.*|docdir = \"${EPREFIX%/}/usr/share/doc/${PF}\"|g" \
+ Makefile.in \
+ || die "failed to modify Makefile.in"
# Make sure we can cross-compile this puppy
if tc-is-cross-compiler ; then
src_configure() {
local myeconfargs=(
--with-appresdir="${EPREFIX%/}"/usr/share/X11/app-defaults
- --docdir="${EPREFIX%/}"/usr/share/doc/${PF}
$(use_with X x)
)
econf "${myeconfargs[@]}"