# 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-9999.ebuild,v 1.5 2008/08/07 17:29:45 lavajoe Exp $ inherit eutils mercurial DESCRIPTION="Btrfs filesystem utilities" HOMEPAGE="http://btrfs.wiki.kernel.org/" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="sys-fs/e2fsprogs" RDEPEND="${DEPEND}" S="${WORKDIR}/progs-unstable" src_unpack() { mercurial_fetch http://www.kernel.org/hg/btrfs/progs-unstable cd "${S}" } src_compile() { emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ all || die emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ convert || die } src_install() { into / dosbin btrfs-convert dosbin btrfs-show dosbin btrfs-vol dosbin btrfsctl dosbin btrfsck # fsck will segfault if invoked at boot, so do not make this link #dosym btrfsck /sbin/fsck.btrfs newsbin debug-tree btrfs-debug-tree newsbin mkfs.btrfs mkbtrfs dosym mkbtrfs /sbin/mkfs.btrfs into /usr newbin bcp btrfs-bcp newbin show-blocks btrfs-show-blocks dodoc INSTALL }