| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 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.1 2012/06/17 23:21:19 ryao Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
DESCRIPTION="/usr/bin wrapper scripts for FreeBSD script compatibility"
|
| 8 |
HOMEPAGE="http://www.gentoo.org"
|
| 9 |
SRC_URI=""
|
| 10 |
|
| 11 |
LICENSE="public-domain"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
| 14 |
IUSE="userland_BSD userland_GNU"
|
| 15 |
|
| 16 |
DEPEND=""
|
| 17 |
RDEPEND="${DEPEND}"
|
| 18 |
|
| 19 |
S="${WORKDIR}"
|
| 20 |
|
| 21 |
src_install()
|
| 22 |
{
|
| 23 |
|
| 24 |
into /usr/bin
|
| 25 |
"${FILESDIR}/dowrap" "${EPREFIX}/bin/"{bunzip2,bzcat,cpio,egrep,fgrep,grep,gunzip,gzip,zcat}
|
| 26 |
use userland_BSD && "${FILESDIR}/dowrap" "${EPREFIX}/bin/sort"
|
| 27 |
use userland_GNU && "${FILESDIR}/dowrap" "${EPREFIX}/bin/"{fuser,sed,uncompress}
|
| 28 |
|
| 29 |
}
|