| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/btrfs-progs/btrfs-progs-0.20_rc1.ebuild,v 1.4 2013/01/06 11:11:29 ago Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit toolchain-funcs
|
| 8 |
|
| 9 |
if [[ ${PV} != 9999 ]]; then
|
| 10 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
| 11 |
SRC_URI="http://dev.gentoo.org/~floppym/dist/${P}.tar.gz"
|
| 12 |
else
|
| 13 |
inherit git-2
|
| 14 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
|
| 15 |
https://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git"
|
| 16 |
fi
|
| 17 |
|
| 18 |
DESCRIPTION="Btrfs filesystem utilities"
|
| 19 |
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
| 20 |
|
| 21 |
LICENSE="GPL-2"
|
| 22 |
SLOT="0"
|
| 23 |
IUSE=""
|
| 24 |
|
| 25 |
DEPEND="sys-libs/zlib
|
| 26 |
sys-apps/acl
|
| 27 |
sys-fs/e2fsprogs"
|
| 28 |
RDEPEND="${DEPEND}"
|
| 29 |
|
| 30 |
src_compile() {
|
| 31 |
emake \
|
| 32 |
CC="$(tc-getCC)" \
|
| 33 |
AM_CFLAGS=-D_FILE_OFFSET_BITS=64 \
|
| 34 |
CFLAGS="${CFLAGS}" \
|
| 35 |
LDFLAGS="${LDFLAGS}"
|
| 36 |
}
|
| 37 |
|
| 38 |
src_install() {
|
| 39 |
emake install \
|
| 40 |
DESTDIR="${D}" \
|
| 41 |
prefix=/usr \
|
| 42 |
bindir=/sbin \
|
| 43 |
mandir=/usr/share/man
|
| 44 |
}
|