Skip to content

Commit 7982179

Browse files
committed
dev-embedded/qdl: add 2.5
Signed-off-by: Quincy Fleming <quincyf467@protonmail.com>
1 parent d5883f0 commit 7982179

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

dev-embedded/qdl/Manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST qdl-2.4.tar.gz 49938 BLAKE2B 691dc7e6625ea7c19c62aed41a4bb6c63b8371c1f1182b88e5b0173b8cd5e5799e23ef99e4c09f82cd5d4060bc5b48e96a607ee9d6e19104a5d42c4adc797d82 SHA512 e7cf3780a15f43e66addb6f8e0ce7702b5a311980e0d3ce6c30d67bbe53994777189b58ea85843f44665fa6ad5784e723ace893bb07a248b8dc7f88c34bec10c
2+
DIST qdl-2.5.tar.gz 51204 BLAKE2B c523c01c9a9d5c8902679ec76e88ea7068a4e8c0485bd5ac462fc150cc0b4029439723640eaecf7fdc547faea98760d9e108d8555ef275498291d78eeaaebeef SHA512 b42700225dd93184ae588b64de0479fc46ca51240b1c3c7fb28f27c5d49bddd12c41a8665caf447d66b66d38a7be75cec9e0cdad043240cdd106cc37e2332591

dev-embedded/qdl/qdl-2.5.ebuild

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2023-2026 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit toolchain-funcs
7+
8+
DESCRIPTION="Tool to communicate with Qualcomm System On a Chip bootroms"
9+
HOMEPAGE="https://github.com/linux-msm/qdl"
10+
SRC_URI="https://github.com/linux-msm/qdl/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
11+
12+
LICENSE="BSD"
13+
SLOT="0"
14+
KEYWORDS="~amd64"
15+
16+
DEPEND="
17+
dev-libs/libusb:1
18+
dev-libs/libxml2:=
19+
"
20+
RDEPEND="${DEPEND}"
21+
22+
BDEPEND="
23+
sys-apps/help2man
24+
virtual/pkgconfig
25+
"
26+
27+
src_compile() {
28+
# $(VERSION) needs to be consistent in all make invocations
29+
export VERSION="${PV}"
30+
31+
local PKG_CONFIG="$(tc-getPKG_CONFIG)"
32+
emake CC="$(tc-getCC)" \
33+
CFLAGS="${CFLAGS} $(${PKG_CONFIG} --cflags libxml-2.0 libusb-1.0 || die)" \
34+
LDFLAGS="${LDFLAGS} $(${PKG_CONFIG} --libs libxml-2.0 libusb-1.0 || die)"
35+
emake manpages
36+
}
37+
38+
src_test() {
39+
emake tests
40+
}
41+
42+
src_install() {
43+
emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install
44+
doman *.1
45+
einstalldocs
46+
}

0 commit comments

Comments
 (0)