summaryrefslogtreecommitdiff
blob: 2ddcca30f8f96cf7d7950cc278b032b290d4e789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

#if LIVE
AUTOTOOLS_AUTORECONF=yes
EGIT_REPO_URI="http://bitbucket.org/mgorny/${PN}.git"

inherit git-2
#endif

inherit autotools-utils

DESCRIPTION="A portable file copying library"
HOMEPAGE="https://bitbucket.org/mgorny/libcopyfile/"
SRC_URI="mirror://bitbucket/mgorny/${PN}/downloads/${P}.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="acl btrfs caps debug static-libs xattr"

# USE=btrfs needs btrfs/ioctl.h only
RDEPEND="acl? ( virtual/acl )
	caps? ( sys-libs/libcap )"
DEPEND="${RDEPEND}
	btrfs? ( >=sys-fs/btrfs-progs-9999 )
	virtual/pkgconfig"

#if LIVE
KEYWORDS=
SRC_URI=
#endif

src_configure() {
	myeconfargs=(
		$(use_enable acl)
		$(use_enable btrfs)
		$(use_enable caps cap)
		$(use_enable debug)
		$(use_enable xattr)
	)

	autotools-utils_src_configure
}