public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Yixun Lan" <dlan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/openocd/
Date: Sat, 17 Feb 2024 02:12:31 +0000 (UTC)	[thread overview]
Message-ID: <1708135932.9ec1edb1acb503243d4f3ea1474298b0b39f7d51.dlan@gentoo> (raw)

commit:     9ec1edb1acb503243d4f3ea1474298b0b39f7d51
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 17 02:09:57 2024 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Sat Feb 17 02:12:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ec1edb1

dev-embedded/openocd: make libgpiod optional

Closes: https://bugs.gentoo.org/917547
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 dev-embedded/openocd/metadata.xml                             |  1 +
 .../openocd/{openocd-9999.ebuild => openocd-0.12.0-r2.ebuild} | 11 ++++++++---
 dev-embedded/openocd/openocd-9999.ebuild                      |  7 ++++---
 3 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/dev-embedded/openocd/metadata.xml b/dev-embedded/openocd/metadata.xml
index b9dbe67059b7..358a9c0a93c5 100644
--- a/dev-embedded/openocd/metadata.xml
+++ b/dev-embedded/openocd/metadata.xml
@@ -17,6 +17,7 @@
 		<flag name="capstone">Use <pkg>dev-libs/capstone</pkg> for disassembly support</flag>
 		<flag name="cmsis-dap">Support for CMSIS-DAP compliant adapters</flag>
 		<flag name="dummy">Build the dummy port driver</flag>
+		<flag name="gpiod">Enable Linux GPIO bitbang support via libgpiod</flag>
 		<flag name="jlink"> Build the SEGGER J-Link driver</flag>
 		<flag name="ftdi">Enable support for USB FTDI chips via <pkg>dev-embedded/libftdi</pkg></flag>
 		<flag name="parport">Enable support for parport JTAG devices</flag>

diff --git a/dev-embedded/openocd/openocd-9999.ebuild b/dev-embedded/openocd/openocd-0.12.0-r2.ebuild
similarity index 90%
copy from dev-embedded/openocd/openocd-9999.ebuild
copy to dev-embedded/openocd/openocd-0.12.0-r2.ebuild
index 669feebd09f8..698978b49848 100644
--- a/dev-embedded/openocd/openocd-9999.ebuild
+++ b/dev-embedded/openocd/openocd-0.12.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -21,13 +21,13 @@ HOMEPAGE="https://openocd.sourceforge.io"
 
 LICENSE="GPL-2+"
 SLOT="0"
-IUSE="capstone +cmsis-dap dummy +ftdi +jlink parport +usb verbose-io"
+IUSE="capstone +cmsis-dap dummy +ftdi gpiod +jlink parport +usb verbose-io"
 RESTRICT="strip" # includes non-native binaries
 
 RDEPEND="
 	acct-group/plugdev
 	>=dev-lang/jimtcl-0.81:=
-	dev-libs/libgpiod:0/2
+	gpiod? ( dev-libs/libgpiod:0/2 )
 	capstone? ( dev-libs/capstone )
 	cmsis-dap? ( dev-libs/hidapi )
 	jlink? ( >=dev-embedded/libjaylink-0.2.0 )
@@ -37,6 +37,10 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
+PATCHES=(
+	"${FILESDIR}/${PN}-0.12.0-capstone-includedir.patch"
+)
+
 src_prepare() {
 	default
 
@@ -66,6 +70,7 @@ src_configure() {
 		$(use_enable ftdi openjtag)
 		$(use_enable ftdi presto)
 		$(use_enable ftdi usb-blaster)
+		$(use_enable gpiod linuxgpiod)
 		$(use_enable jlink)
 		$(use_enable parport)
 		$(use_enable parport parport_ppdev)

diff --git a/dev-embedded/openocd/openocd-9999.ebuild b/dev-embedded/openocd/openocd-9999.ebuild
index 669feebd09f8..bf5127f94e2c 100644
--- a/dev-embedded/openocd/openocd-9999.ebuild
+++ b/dev-embedded/openocd/openocd-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -21,13 +21,13 @@ HOMEPAGE="https://openocd.sourceforge.io"
 
 LICENSE="GPL-2+"
 SLOT="0"
-IUSE="capstone +cmsis-dap dummy +ftdi +jlink parport +usb verbose-io"
+IUSE="capstone +cmsis-dap dummy +ftdi gpiod +jlink parport +usb verbose-io"
 RESTRICT="strip" # includes non-native binaries
 
 RDEPEND="
 	acct-group/plugdev
 	>=dev-lang/jimtcl-0.81:=
-	dev-libs/libgpiod:0/2
+	gpiod? ( dev-libs/libgpiod:0/2 )
 	capstone? ( dev-libs/capstone )
 	cmsis-dap? ( dev-libs/hidapi )
 	jlink? ( >=dev-embedded/libjaylink-0.2.0 )
@@ -66,6 +66,7 @@ src_configure() {
 		$(use_enable ftdi openjtag)
 		$(use_enable ftdi presto)
 		$(use_enable ftdi usb-blaster)
+		$(use_enable gpiod linuxgpiod)
 		$(use_enable jlink)
 		$(use_enable parport)
 		$(use_enable parport parport_ppdev)


             reply	other threads:[~2024-02-17  2:12 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-17  2:12 Yixun Lan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-14 11:14 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/openocd/ Yixun Lan
2023-11-14 11:14 Yixun Lan
2023-06-08 11:23 Viorel Munteanu
2023-04-22 13:14 Viorel Munteanu
2023-04-22 13:02 Sam James
2023-04-22 11:34 Sam James
2023-01-20 11:49 Yixun Lan
2023-01-04  0:38 Yixun Lan
2023-01-04  0:38 Yixun Lan
2022-12-19  1:09 Yixun Lan
2022-08-12 20:36 Yixun Lan
2022-04-23 19:44 Sven Wegener
2021-10-27  6:37 Agostino Sarubbo
2021-10-27  6:35 Agostino Sarubbo
2021-03-10  6:08 Yixun Lan
2021-03-10  6:08 Yixun Lan
2021-02-13 10:14 David Seifert
2021-02-12 15:10 Sam James
2021-02-11  9:31 Sam James
2021-02-11  7:54 Sam James
2020-12-28 14:16 David Seifert
2020-12-28 14:16 David Seifert
2020-01-15 21:03 Göktürk Yüksek
2019-09-13 12:58 Michał Górny
2019-08-31 12:16 Sergei Trofimovich
2019-02-18  9:08 Sergei Trofimovich
2019-02-18  9:08 Sergei Trofimovich
2018-05-30 11:31 Jason Zaman
2018-05-29 12:40 Thomas Deutschmann
2017-12-25 19:17 David Seifert
2017-01-24 21:54 Richard Farina
2017-01-24 20:27 Richard Farina
2017-01-24 16:53 Richard Farina
2016-10-30 20:05 Sven Wegener
2016-01-10 11:17 Sven Wegener
2016-01-10  9:31 Sven Wegener
2016-01-10  9:31 Sven Wegener
2016-01-10  9:31 Sven Wegener
2016-01-10  9:31 Sven Wegener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1708135932.9ec1edb1acb503243d4f3ea1474298b0b39f7d51.dlan@gentoo \
    --to=dlan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox