From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DF7A3158004 for ; Tue, 2 Jan 2024 18:59:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C9612BC020; Tue, 2 Jan 2024 18:59:09 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 04A052BC020 for ; Tue, 2 Jan 2024 18:59:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 440B1340441 for ; Tue, 2 Jan 2024 18:59:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BF01C1300 for ; Tue, 2 Jan 2024 18:59:06 +0000 (UTC) From: "Matthew Smith" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Smith" Message-ID: <1704221928.da58f729dd160b30b506d5fc0f2251e9d5d3d9a4.matthew@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/avrdude/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-embedded/avrdude/Manifest dev-embedded/avrdude/avrdude-7.2.ebuild dev-embedded/avrdude/metadata.xml X-VCS-Directories: dev-embedded/avrdude/ X-VCS-Committer: matthew X-VCS-Committer-Name: Matthew Smith X-VCS-Revision: da58f729dd160b30b506d5fc0f2251e9d5d3d9a4 X-VCS-Branch: master Date: Tue, 2 Jan 2024 18:59:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2a4eb740-66f5-439d-87fb-fe9d7b3ca33a X-Archives-Hash: 04c38bb7907e583855d3f1164107cca4 commit: da58f729dd160b30b506d5fc0f2251e9d5d3d9a4 Author: Matthew Smith gentoo org> AuthorDate: Tue Jan 2 18:51:09 2024 +0000 Commit: Matthew Smith gentoo org> CommitDate: Tue Jan 2 18:58:48 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da58f729 dev-embedded/avrdude: add 7.2 Add a subslot for libavrdude, and build in parallel port support. Closes: https://bugs.gentoo.org/879013 Closes: https://bugs.gentoo.org/917397 Signed-off-by: Matthew Smith gentoo.org> dev-embedded/avrdude/Manifest | 1 + dev-embedded/avrdude/avrdude-7.2.ebuild | 64 +++++++++++++++++++++++++++++++++ dev-embedded/avrdude/metadata.xml | 3 ++ 3 files changed, 68 insertions(+) diff --git a/dev-embedded/avrdude/Manifest b/dev-embedded/avrdude/Manifest index 3675ad0936cc..9c081c4825fd 100644 --- a/dev-embedded/avrdude/Manifest +++ b/dev-embedded/avrdude/Manifest @@ -1 +1,2 @@ DIST avrdude-7.0.tar.gz 2354082 BLAKE2B 44cc6cb82abd4e44f9e7f72901cd9b2a13c9e7635582993ea9a01ea482709ca6a8a3454980446d1196a67cec19a021133d5821731618350336f81fce09d7c049 SHA512 ca3338e6f2f0efc102e70f72531efbd237c5f7bc282d8db5530038f9e20b18a7c2682343bb2baff08c81f8959b066323a444dd64c2362a340a9d9708f90770e0 +DIST avrdude-7.2.tar.gz 2622520 BLAKE2B 7bf86ea802bb150415a0d8c1ba884d5ff84b3d4bfb0e77470205d578001c1c19f782ddd37ae4235fba9f2ccc05247aea1723ebc2e1c71174c23b0986e835231e SHA512 04d04492458bc1d183ad8ff403cf3d38f65f44bb992df589e8f49d28b5347eb63433568c95f5d575ae651be70d725d3f178175cd1fe6dcd46ec013c3fe3f2ab0 diff --git a/dev-embedded/avrdude/avrdude-7.2.ebuild b/dev-embedded/avrdude/avrdude-7.2.ebuild new file mode 100644 index 000000000000..941904a47991 --- /dev/null +++ b/dev-embedded/avrdude/avrdude-7.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 2022-2024 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/1" # SOVERSION in src/CMakeLists.txt +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +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_LINUXGPIO=ON # Seems like there is no reason to have this off. + -DHAVE_LINUXSPI=ON # Ditto. + -DHAVE_PARPORT=ON + ) + use ftdi || mycmakeargs+=( -DHAVE_LIBFTDI1='' ) + use readline || mycmakeargs+=( -DHAVE_LIBREADLINE='' ) + cmake_src_configure +} diff --git a/dev-embedded/avrdude/metadata.xml b/dev-embedded/avrdude/metadata.xml index b9a0b133cefe..4b3b9dad10e3 100644 --- a/dev-embedded/avrdude/metadata.xml +++ b/dev-embedded/avrdude/metadata.xml @@ -8,6 +8,9 @@ Enable support for USB FTDI chips via dev-embedded/libftdi + + reflect soname of libavrdude + avrdudes/avrdude