/[gentoo-x86]/app-misc/ondir/ondir-0.2.2-r1.ebuild
Gentoo

Contents of /app-misc/ondir/ondir-0.2.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Jan 11 22:08:24 2011 UTC (3 years, 8 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
x86 stable, bug #350694

(Portage version: 2.1.9.30/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/ondir/ondir-0.2.2-r1.ebuild,v 1.4 2011/01/07 23:28:05 ranger Exp $
4
5 EAPI="3"
6
7 inherit toolchain-funcs
8
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"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
16 IUSE=""
17
18 DEPEND="sys-apps/sed"
19 RDEPEND=""
20
21 src_prepare() {
22 sed -i \
23 -e "s:\(/man/.*$\):/share\1:g" \
24 -e "s:-g:${CFLAGS}:" Makefile || die "sed Makefile failed"
25 }
26
27 src_compile() {
28 emake \
29 CC="$(tc-getCC)" \
30 PREFIX="${EPREFIX}/usr" \
31 CONF="${EPREFIX}/etc/ondirrc" \
32 LDFLAGS="${LDFLAGS}" || die
33 }
34
35 src_install() {
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
40 }

  ViewVC Help
Powered by ViewVC 1.1.20