1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils autotools
9 DESCRIPTION="A tool to write command line option parsing code for C programs"
10 HOMEPAGE="https://www.gnu.org/software/gengetopt/"
11 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
19 epatch "${FILESDIR}"/${P}-makefile.patch
20 epatch "${FILESDIR}"/${P}-no-docs.patch
21 epatch "${FILESDIR}"/${P}-docdirs.patch
22 sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
27 econf --docdir="${EPREFIX}"/usr/share/doc/${PF}
32 docompress -x /usr/share/doc/${PF}/examples