From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-misc/ondir/ondir-0.2.2-r2.ebuild | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 app-misc/ondir/ondir-0.2.2-r2.ebuild (limited to 'app-misc/ondir/ondir-0.2.2-r2.ebuild') diff --git a/app-misc/ondir/ondir-0.2.2-r2.ebuild b/app-misc/ondir/ondir-0.2.2-r2.ebuild new file mode 100644 index 000000000000..59d6874ad10e --- /dev/null +++ b/app-misc/ondir/ondir-0.2.2-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Automatically execute scripts as you traverse directories" +HOMEPAGE="http://swapoff.org/OnDir" +SRC_URI="http://swapoff.org/files/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" + +DEPEND="sys-apps/sed" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog README INSTALL scripts.tcsh scripts.sh ) +HTML_DOCS=( changelog.html ondir.1.html ) + +src_prepare() { + default + sed -i \ + -e "s:\(/man/.*$\):/share\1:g" \ + -e "s:-g:${CFLAGS}:" Makefile || die "sed Makefile failed" +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + PREFIX="${EPREFIX}/usr" \ + CONF="${EPREFIX}/etc/ondirrc" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + default + emake \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + CONF="${EPREFIX}/etc/ondirrc" \ + install + newdoc ondirrc.eg ondirrc.example +} -- cgit v1.2.3