1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit toolchain-funcs
7 DESCRIPTION="This is a growing collection of the unix tools that nobody thought to write thirty years ago"
8 HOMEPAGE="http://www.kitenet.net/~joey/code/moreutils.html"
9 SRC_URI="http://ftp.debian.org/debian/pool/main/m/moreutils/${P/-/_}.tar.gz"
16 DEPEND="doc? ( =app-text/docbook-xml-dtd-4.4*
18 RDEPEND="dev-lang/perl"
25 -e 's/^CFLAGS/#CFLAGS/' \
27 -e 's/docbook2x-man $</docbook2man.pl $< >$@/g' \
28 "${S}/Makefile" || die "sed failed"
32 -e 's#file.*/xml/\(.*docbookx.dtd\)#\1#g' \
33 $(find "${S}" -iname *.docbook -printf '%p ') || die "sed failed"
38 -e 's#install $(MANS) $(PREFIX)/usr/share/man/man1##' \
39 -e 's#mkdir -p $(PREFIX)/usr/share/man/man1##' \
40 "${S}/Makefile" || die "sed failed"
46 emake CC=$(tc-getCC) || die "emake failed"
50 emake PREFIX="${D}" install || die "emake install failed"