summaryrefslogtreecommitdiff
blob: 158c90277a0bfd26911d577254b0a03808eda7ac (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 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="Userspace tools for EROFS"
HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git"
LICENSE="GPL-2+"

SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/${PN}.git/snapshot/${P}.tar.gz"
KEYWORDS="~amd64"

SLOT="0"
IUSE="fuse +lz4 selinux +uuid"

RDEPEND="
	fuse? ( sys-fs/fuse:0 )
	lz4? ( app-arch/lz4:0= )
	selinux? ( sys-libs/libselinux:0= )
	uuid? ( sys-apps/util-linux )
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}/${PV}-dump-fix-de-nid-issues.patch"
	"${FILESDIR}/${PV}-fsck-add-missing-include.patch"
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	# This package asks for MicroLZMA support, which is not included in any
	# released version of xz-utils at the moment, so disable lzma until a new
	# xz-utils is packaged.
	econf \
		$(use_enable fuse) \
		$(use_enable lz4) \
		--disable-lzma \
		$(use_with selinux) \
		$(use_with uuid)
}