aboutsummaryrefslogtreecommitdiff
blob: 38c664cf56fda285552f4533a3eb9ad20d43fe91 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools linux-info

DESCRIPTION="Shared-disk cluster file system"
HOMEPAGE="https://pagure.io/gfs2-utils"
SRC_URI="https://pagure.io/gfs2-utils/archive/${PV}/${P}.tar.gz"

LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="nls test"
RESTRICT="!test? ( test )"

BDEPEND="dev-build/automake
		dev-build/automake
		dev-build/libtool
		dev-build/make
"
RDEPEND="sys-libs/zlib
		app-arch/bzip2
		sys-libs/ncurses
		sys-apps/util-linux
"

DEPEND="${RDEPEND}
		sys-devel/gettext
		sys-devel/bison
		sys-devel/flex
		test? ( dev-libs/check )
		sys-kernel/linux-headers
"

src_prepare() {
	eapply "${FILESDIR}"/reproducible.patch
	eapply "${FILESDIR}"/gfs2_withdraw_helper.patch
	eapply "${FILESDIR}"/python3.patch
	default
	eautoreconf
}

src_configure() {
			local econf_args
				econf_args=(
				bzip2_LIBS="-L/$(get_libdir) -lbz2"
				bzip2_CFLAGS="-I${prefix}/include"
				)
			ECONF_SOURCE="${S}" econf "${econf_args[@]}"

}

src_compile() {
	emake
}

src_install() {
	emake DESTDIR="${D}" install
}