diff options
Diffstat (limited to 'sys-fs/btrfs-progs/btrfs-progs-0.16-r1.ebuild')
-rw-r--r-- | sys-fs/btrfs-progs/btrfs-progs-0.16-r1.ebuild | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/sys-fs/btrfs-progs/btrfs-progs-0.16-r1.ebuild b/sys-fs/btrfs-progs/btrfs-progs-0.16-r1.ebuild index 31366e4d5072..46d2e76c8a6d 100644 --- a/sys-fs/btrfs-progs/btrfs-progs-0.16-r1.ebuild +++ b/sys-fs/btrfs-progs/btrfs-progs-0.16-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/btrfs-progs/btrfs-progs-0.16-r1.ebuild,v 1.1 2008/08/07 17:29:45 lavajoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/btrfs-progs/btrfs-progs-0.16-r1.ebuild,v 1.2 2008/08/21 19:03:37 lavajoe Exp $ inherit eutils @@ -11,9 +11,12 @@ SRC_URI="http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="acl" -DEPEND="sys-fs/e2fsprogs" +DEPEND="acl? ( + sys-apps/acl + sys-fs/e2fsprogs + )" RDEPEND="${DEPEND}" src_unpack() { @@ -27,13 +30,14 @@ src_unpack() { src_compile() { emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ all || die - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ - convert || die + if use acl; then + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ + convert || die + fi } src_install() { into / - dosbin btrfs-convert dosbin btrfs-show dosbin btrfs-vol dosbin btrfsctl @@ -43,6 +47,11 @@ src_install() { newsbin debug-tree btrfs-debug-tree newsbin mkfs.btrfs mkbtrfs dosym mkbtrfs /sbin/mkfs.btrfs + if use acl; then + dosbin btrfs-convert + else + ewarn "Note: btrfs-convert not built/installed (requires acl USE flag)" + fi into /usr newbin bcp btrfs-bcp |