1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs
9 DESCRIPTION="Automatically execute scripts as you traverse directories"
10 HOMEPAGE="http://swapoff.org/OnDir"
11 SRC_URI="http://swapoff.org/files/${PN}/${P}.tar.gz"
15 KEYWORDS="amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
23 -e "s:\(/man/.*$\):/share\1:g" \
24 -e "s:-g:${CFLAGS}:" Makefile || die "sed Makefile failed"
30 PREFIX="${EPREFIX}/usr" \
31 CONF="${EPREFIX}/etc/ondirrc" \
32 LDFLAGS="${LDFLAGS}" || die
36 emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" CONF="${EPREFIX}/etc/ondirrc" install || die
37 dodoc AUTHORS ChangeLog README INSTALL scripts.tcsh scripts.sh || die
38 newdoc ondirrc.eg ondirrc.example || die
39 dohtml changelog.html ondir.1.html || die