commit:     8bcc26e21ae72f77950bdc36afae9094e325628d
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Wed Jan  7 21:26:22 2026 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Wed Jan  7 22:51:12 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8bcc26e2

dev-embedded/qdl: several improvements

* add SLOT to dependencies
* wire up tests
* fix displayed version
* add manpages
* remove LICENSE from doc dir
* sync -9999, which is tag v2.4 at the moment

Acked-by: Quincy Fleming <quincyf467 <AT> protonmail.com>
Part-of: https://github.com/gentoo/guru/pull/415
Closes: https://github.com/gentoo/guru/pull/415
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 dev-embedded/qdl/qdl-2.4-r1.ebuild | 46 ++++++++++++++++++++++++++++++++++++++
 dev-embedded/qdl/qdl-2.4.ebuild    | 34 ----------------------------
 dev-embedded/qdl/qdl-9999.ebuild   | 30 +++++++++++++++++--------
 3 files changed, 67 insertions(+), 43 deletions(-)

diff --git a/dev-embedded/qdl/qdl-2.4-r1.ebuild 
b/dev-embedded/qdl/qdl-2.4-r1.ebuild
new file mode 100644
index 0000000000..a00078f50b
--- /dev/null
+++ b/dev-embedded/qdl/qdl-2.4-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2023-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Tool to communicate with Qualcomm System On a Chip bootroms"
+HOMEPAGE="https://github.com/linux-msm/qdl";
+SRC_URI="https://github.com/linux-msm/qdl/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+       dev-libs/libusb:1
+       dev-libs/libxml2:=
+"
+RDEPEND="${DEPEND}"
+
+BDEPEND="
+       sys-apps/help2man
+       virtual/pkgconfig
+"
+
+src_compile() {
+       # $(VERSION) needs to be consistent in all make invocations
+       export VERSION="${PV}"
+
+       local PKG_CONFIG="$(tc-getPKG_CONFIG)"
+       emake CC="$(tc-getCC)" \
+               CFLAGS="${CFLAGS} $(${PKG_CONFIG} --cflags libxml-2.0 
libusb-1.0 || die)" \
+               LDFLAGS="${LDFLAGS} $(${PKG_CONFIG} --libs libxml-2.0 
libusb-1.0 || die)"
+       emake manpages
+}
+
+src_test() {
+       emake tests
+}
+
+src_install() {
+       emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install
+       doman *.1
+       einstalldocs
+}

diff --git a/dev-embedded/qdl/qdl-2.4.ebuild b/dev-embedded/qdl/qdl-2.4.ebuild
deleted file mode 100644
index 871bd983fe..0000000000
--- a/dev-embedded/qdl/qdl-2.4.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit toolchain-funcs
-
-DESCRIPTION="Tool to communicate with Qualcomm System On a Chip bootroms"
-HOMEPAGE="https://github.com/linux-msm/qdl";
-SRC_URI="https://github.com/linux-msm/qdl/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-
-DEPEND="
-       dev-libs/libusb
-       dev-libs/libxml2
-"
-RDEPEND="${DEPEND}"
-
-BDEPEND="virtual/pkgconfig"
-
-src_compile() {
-       PKG_CONFIG=$(tc-getPKG_CONFIG)
-       emake CC=$(tc-getCC) \
-               "CFLAGS=${CFLAGS} `${PKG_CONFIG} --cflags libxml-2.0 
libusb-1.0`" \
-               "LDFLAGS=${LDFLAGS} `${PKG_CONFIG} --libs libxml-2.0 
libusb-1.0`"
-}
-
-src_install() {
-       emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install
-       dodoc {README.md,LICENSE}
-}

diff --git a/dev-embedded/qdl/qdl-9999.ebuild b/dev-embedded/qdl/qdl-9999.ebuild
index fbce6cfed1..2d96556f30 100644
--- a/dev-embedded/qdl/qdl-9999.ebuild
+++ b/dev-embedded/qdl/qdl-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2023-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -13,21 +13,33 @@ LICENSE="BSD"
 SLOT="0"
 
 DEPEND="
-       dev-libs/libusb
-       dev-libs/libxml2
+       dev-libs/libusb:1
+       dev-libs/libxml2:=
 "
 RDEPEND="${DEPEND}"
 
-BDEPEND="virtual/pkgconfig"
+BDEPEND="
+       sys-apps/help2man
+       virtual/pkgconfig
+"
 
 src_compile() {
-       PKG_CONFIG=$(tc-getPKG_CONFIG)
-       emake CC=$(tc-getCC) \
-               "CFLAGS=${CFLAGS} `${PKG_CONFIG} --cflags libxml-2.0 
libusb-1.0`" \
-               "LDFLAGS=${LDFLAGS} `${PKG_CONFIG} --libs libxml-2.0 
libusb-1.0`"
+       # $(VERSION) needs to be consistent in all make invocations
+       export VERSION="${PV}"
+
+       local PKG_CONFIG="$(tc-getPKG_CONFIG)"
+       emake CC="$(tc-getCC)" \
+               CFLAGS="${CFLAGS} $(${PKG_CONFIG} --cflags libxml-2.0 
libusb-1.0 || die)" \
+               LDFLAGS="${LDFLAGS} $(${PKG_CONFIG} --libs libxml-2.0 
libusb-1.0 || die)"
+       emake manpages
+}
+
+src_test() {
+       emake tests
 }
 
 src_install() {
        emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install
-       dodoc {README.md,LICENSE}
+       doman *.1
+       einstalldocs
 }

Reply via email to