Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 550540
Collapse All | Expand All

(-)ubin-wrappers-0.ebuild~ (-7 / +16 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild,v 1.2 2012/12/08 09:06:05 ulm Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild,v 1.2 2012/12/08 09:06:05 ulm Exp $
4
4
5
EAPI=4
5
EAPI=5
6
6
7
DESCRIPTION="/usr/bin wrapper scripts for FreeBSD script compatibility"
7
DESCRIPTION="/usr/bin wrapper scripts for FreeBSD script compatibility"
8
HOMEPAGE="http://www.gentoo.org"
8
HOMEPAGE="http://www.gentoo.org"
Lines 18-29 Link Here
18
18
19
S="${WORKDIR}"
19
S="${WORKDIR}"
20
20
21
dowrap() {
22
	local x
23
	for x do
24
		[[ -e ${x} ]] || die "${x} does not exist"
25
		newbin - "$(basename "${x}")" <<-EOF
26
			#!/bin/sh
27
			exec ${x} \${1:+"\$@"}
28
		EOF
29
	done
30
}
31
21
src_install()
32
src_install()
22
{
33
{
23
34
	dowrap \
24
	into /usr/bin
35
		"${EPREFIX}/bin/"{bunzip2,bzcat,cpio,egrep,fgrep,grep,gunzip,gzip,zcat}
25
	"${FILESDIR}/dowrap" "${EPREFIX}/bin/"{bunzip2,bzcat,cpio,egrep,fgrep,grep,gunzip,gzip,zcat}
36
	use userland_BSD && dowrap "${EPREFIX}/bin/sort"
26
	use userland_BSD && "${FILESDIR}/dowrap" "${EPREFIX}/bin/sort"
37
	use userland_GNU && dowrap "${EPREFIX}/bin/"{fuser,sed,uncompress}
27
	use userland_GNU && "${FILESDIR}/dowrap" "${EPREFIX}/bin/"{fuser,sed,uncompress}
28
29
}
38
}

Return to bug 550540