From: "Matthew Smith" <matthew@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/avrdude/
Date: Sun, 10 Jul 2022 07:46:19 +0000 (UTC) [thread overview]
Message-ID: <1657439168.2c74a52f0c4ddf0823e2827140b8b4baacfa8caa.matthew@gentoo> (raw)
commit: 2c74a52f0c4ddf0823e2827140b8b4baacfa8caa
Author: Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 10 07:45:26 2022 +0000
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Sun Jul 10 07:46:08 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c74a52f
dev-embedded/avrdude: add 7.0
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
dev-embedded/avrdude/Manifest | 1 +
dev-embedded/avrdude/avrdude-7.0.ebuild | 64 +++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
diff --git a/dev-embedded/avrdude/Manifest b/dev-embedded/avrdude/Manifest
index eb6a9e59c527..bd2f3203320a 100644
--- a/dev-embedded/avrdude/Manifest
+++ b/dev-embedded/avrdude/Manifest
@@ -1,3 +1,4 @@
DIST avrdude-6.3.tar.gz 909744 BLAKE2B 3c253571a50c423989fc3fd9c5d6fe11b67fad9ca0d94f4bee0de7309fc22ccfe64102fff74fad47ffcb1874870c0aafd0c003df63285bd05c30efd384f5ef9e SHA512 b671008388d6a552e71066fec46429bc7f6639e8eac41113bcbba5a56212b78be31fcf04956b31e11c6b14888b0f6e825f7458395b9ff4fc28406074c7ded2b2
+DIST avrdude-7.0.tar.gz 2354082 BLAKE2B 44cc6cb82abd4e44f9e7f72901cd9b2a13c9e7635582993ea9a01ea482709ca6a8a3454980446d1196a67cec19a021133d5821731618350336f81fce09d7c049 SHA512 ca3338e6f2f0efc102e70f72531efbd237c5f7bc282d8db5530038f9e20b18a7c2682343bb2baff08c81f8959b066323a444dd64c2362a340a9d9708f90770e0
DIST avrdude-doc-6.3.pdf 255521 BLAKE2B 3b6a3485b996f0923c00c54970e86c3ab9f40e8a5bd962f5d3e4f87c23c90b61f002b46af9766cc0f117583a54d519c5d8739cb5f8bca0776320243679989716 SHA512 f33b15f6a9247f6646ba8a861f1e86f5d43b1b44438fb95bd53764a73f0c450f669dcb43b6b587390ddbc22dafa02758ddc330a7aab1651ccca7c8da8e00b755
DIST avrdude-doc-6.3.tar.gz 39823 BLAKE2B 170ad1eab743435eb414a2d6547be6c86e4d75aed83836eb29285a8d11a43f7eb878104b3b7a70b528522a415a96a841686d07e82b151fc6f726c1f56d54e801 SHA512 b7abd9d0068d2933a1907655832930c455093b4ffbdc2b6fb2405a821cad0ba1c4de3aa5fa0ea7c9b53d06cfa6d5b5658d30a18a4f5c3884d0e15c171a097b29
diff --git a/dev-embedded/avrdude/avrdude-7.0.ebuild b/dev-embedded/avrdude/avrdude-7.0.ebuild
new file mode 100644
index 000000000000..be2345c4ae9f
--- /dev/null
+++ b/dev-embedded/avrdude/avrdude-7.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="AVR Downloader/UploaDEr"
+HOMEPAGE="https://avrdudes.github.io/avrdude https://github.com/avrdudes/avrdude"
+SRC_URI="https://github.com/avrdudes/avrdude/archive/refs/tags/v${PV}.tar.gz -> avrdude-${PV}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="ftdi readline"
+
+RDEPEND="
+ dev-libs/hidapi
+ virtual/libelf:=
+ virtual/libusb:0
+ virtual/libusb:1
+ ftdi? ( dev-embedded/libftdi:1= )
+ readline? ( sys-libs/readline:0= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+"
+
+src_prepare() {
+ cmake_src_prepare
+
+ # CMAKE_INSTALL_LIBDIR is not respected. Fixed in the next release.
+ sed -i "s@DESTINATION lib@DESTINATION $(get_libdir)@g" \
+ src/CMakeLists.txt || die
+
+ # For some reason 'TYPE SYSCONF' and 'CMAKE_INSTALL_SYSCONFDIR'
+ # prepends '/usr' so the config ends up getting installed as
+ # '/usr/etc/avrdude.conf' which is not correct.
+ sed -i 's@TYPE SYSCONF@DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}@' \
+ src/CMakeLists.txt || die
+}
+
+src_configure() {
+ # Optional libraries like libftdi aren't gated behind options and
+ # find_package calls, but find_library is called directly
+ # instead.
+ #
+ # Set the cache variable to an empty string if we do not want a
+ # library to be automatically detected.
+ local mycmakeargs=(
+ -DBUILD_DOC=OFF # This currently does nothing...
+ -DBUILD_SHARED_LIBS=ON
+ -DDEBUG_CMAKE=ON
+ -DHAVE_LIBFTDI=''
+ -DHAVE_LIBHID=''
+ -DHAVE_LINUXGPIO=ON # Seems like there is no reason to have this off.
+ -DHAVE_LINUXSPI=ON # Ditto.
+ )
+ use ftdi || mycmakeargs+=( -DHAVE_LIBFTDI1='' )
+ use readline || mycmakeargs+=( -DHAVE_LIBREADLINE='' )
+ cmake_src_configure
+}
next reply other threads:[~2022-07-10 7:46 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-10 7:46 Matthew Smith [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-14 8:06 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/avrdude/ Viorel Munteanu
2024-07-13 19:05 Sam James
2024-07-13 15:31 Arthur Zamarin
2024-07-13 15:18 Arthur Zamarin
2024-07-13 10:27 Arthur Zamarin
2024-07-13 9:58 Arthur Zamarin
2024-01-04 8:21 Matthew Smith
2024-01-02 18:59 Matthew Smith
2022-09-09 9:48 Matthew Smith
2022-08-25 18:25 Agostino Sarubbo
2022-08-25 18:15 Agostino Sarubbo
2022-08-25 4:02 Arthur Zamarin
2022-08-25 4:02 Arthur Zamarin
2022-08-25 3:33 Sam James
2022-08-24 21:03 Matthew Smith
2022-08-24 19:08 Matthew Smith
2022-08-20 11:40 Andreas Sturmlechner
2022-07-11 16:32 Arthur Zamarin
2022-07-10 18:22 Arthur Zamarin
2022-07-10 18:04 Arthur Zamarin
2022-07-10 7:46 Matthew Smith
2022-02-07 13:31 Jakov Smolić
2022-02-06 8:05 Agostino Sarubbo
2022-02-06 8:04 Agostino Sarubbo
2022-02-06 7:35 Sam James
2022-02-05 21:09 Jakov Smolić
2021-11-12 2:02 Sam James
2021-10-07 18:54 Jakov Smolić
2021-10-07 18:54 Jakov Smolić
2017-08-02 10:08 Michael Weber
2017-08-02 9:52 Michael Weber
2016-12-24 10:26 Agostino Sarubbo
2016-12-22 9:34 Agostino Sarubbo
2016-12-20 9:44 Agostino Sarubbo
2016-12-18 15:57 Agostino Sarubbo
2016-12-18 15:44 Agostino Sarubbo
2016-12-09 8:44 Tim Harder
2016-12-09 8:41 Tim Harder
2016-09-04 22:43 Manuel Rüger
2016-01-10 9:47 Sven Wegener
2016-01-10 9:47 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=1657439168.2c74a52f0c4ddf0823e2827140b8b4baacfa8caa.matthew@gentoo \
--to=matthew@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