public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Viorel Munteanu" <ceamac@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/dfu-programmer/
Date: Wed,  1 Mar 2023 13:44:51 +0000 (UTC)	[thread overview]
Message-ID: <1677678088.a8a4fbc6b33407f125c023aaa18b42c73d894939.ceamac@gentoo> (raw)

commit:     a8a4fbc6b33407f125c023aaa18b42c73d894939
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  1 12:19:24 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Wed Mar  1 13:41:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8a4fbc6

dev-embedded/dfu-programmer: update EAPI 6 -> 8

Closes: https://bugs.gentoo.org/842090
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 .../dfu-programmer/dfu-programmer-0.7.2-r2.ebuild  | 59 ++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/dev-embedded/dfu-programmer/dfu-programmer-0.7.2-r2.ebuild b/dev-embedded/dfu-programmer/dfu-programmer-0.7.2-r2.ebuild
new file mode 100644
index 000000000000..226ed4cd05d2
--- /dev/null
+++ b/dev-embedded/dfu-programmer/dfu-programmer-0.7.2-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs udev
+
+DESCRIPTION="A Device Firmware Update based USB programmer for Atmel chips"
+HOMEPAGE="https://dfu-programmer.github.io/ https://sourceforge.net/projects/dfu-programmer/"
+
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64"
+
+RDEPEND="
+	acct-group/plugdev
+	virtual/libusb:1
+	virtual/udev"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
+
+src_prepare() {
+	default
+
+	# Upstream has fixed this in their configure already.
+	tc-export CPP PKG_CONFIG
+	sed -i \
+		-e "/LIBUSB_1_0_CFLAGS=/s:=.*:='$(${PKG_CONFIG} --cflags libusb-1.0)':" \
+		-e "/LIBUSB_1_0_LIBS=/s:=.*:='$(${PKG_CONFIG} --libs libusb-1.0)':" \
+		configure || die
+}
+
+src_install() {
+	default
+
+	cat <<-EOF > 70-dfu-programmer.rules
+	#
+	# do not edit this file, it will be overwritten on update
+	#
+	EOF
+	printf 'SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="%s", MODE="660", GROUP="plugdev", SYMLINK+="dfu-%%n"\n' \
+		2ff{a,b,9,7,4,3} >> 70-dfu-programmer.rules
+
+	udev_dorules 70-dfu-programmer.rules
+}
+
+pkg_postinst() {
+	udev_reload
+
+	elog "To update device firmware as user you must be in the plugdev group:"
+	elog
+	elog "usermod -aG plugdev <user>"
+}
+
+pkg_postrm() {
+	udev_reload
+}


             reply	other threads:[~2023-03-01 13:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-01 13:44 Viorel Munteanu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-04-07  5:43 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/dfu-programmer/ Viorel Munteanu
2023-04-07  1:53 Sam James
2023-04-06 16:52 Arthur Zamarin
2023-03-02 18:55 Viorel Munteanu
2023-03-02 18:55 Viorel Munteanu
2021-11-15  2:35 Sam James
2021-05-31 20:45 David Seifert
2019-09-13 12:58 Michał Górny
2017-12-24 10:59 Johannes Huber
2017-12-23 11:17 Markus Meier
2017-12-15  8:18 Jason Zaman
2017-10-08 16:29 Johannes Huber
2017-10-08 16:29 Johannes Huber
2017-10-08 16:29 Johannes Huber
2017-07-25 19:27 Markus Meier
2015-08-25 11:45 Tony Vroon

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=1677678088.a8a4fbc6b33407f125c023aaa18b42c73d894939.ceamac@gentoo \
    --to=ceamac@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