summaryrefslogtreecommitdiff
path: root/dev-embedded/qdl/qdl-9999.ebuild
blob: 474d79307a7799cf226c86581a69c82c27fda396 (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
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit git-r3 meson

DESCRIPTION="Tool to communicate with Qualcomm System On a Chip bootroms"
HOMEPAGE="https://github.com/linux-msm/qdl"
EGIT_REPO_URI="https://github.com/linux-msm/qdl.git"

LICENSE="BSD"
SLOT="0"
IUSE="nbd test"
RESTRICT="!test? ( test )"

DEPEND="
	dev-libs/libusb:1
	dev-libs/libxml2:=
	dev-libs/libzip:=
	nbd? ( sys-block/nbdkit )
	test? (
		app-arch/zip
		dev-util/cmocka
	)
"
RDEPEND="${DEPEND}"

BDEPEND="
	sys-apps/help2man
	virtual/pkgconfig
"

src_prepare() {
	sed -i '/default_options/d' meson.build || die
	default
}

src_configure() {
	local emesonargs=(
		$(meson_feature nbd nbdkit)
		$(meson_feature test tests)
	)
	meson_src_configure
}

src_test() {
	meson_src_test --no-suite hil
}