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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20A2F158086 for ; Thu, 7 Oct 2021 18:54:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AC13E0848; Thu, 7 Oct 2021 18:54:20 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0DEF5E0844 for ; Thu, 7 Oct 2021 18:54:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B365D34337D for ; Thu, 7 Oct 2021 18:54:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 513F2138 for ; Thu, 7 Oct 2021 18:54:17 +0000 (UTC) From: "Jakov Smolić" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jakov Smolić" Message-ID: <1633632843.97601a724cce28c0dddfb32588c43e90086761d3.jsmolic@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/avrdude/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-embedded/avrdude/avrdude-6.3-r1.ebuild X-VCS-Directories: dev-embedded/avrdude/ X-VCS-Committer: jsmolic X-VCS-Committer-Name: Jakov Smolić X-VCS-Revision: 97601a724cce28c0dddfb32588c43e90086761d3 X-VCS-Branch: master Date: Thu, 7 Oct 2021 18:54:17 +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: cc61cd61-ea51-459d-9080-7a52a1d61a56 X-Archives-Hash: 6e2cc4e5694da278e4590b74f0cbe9e2 commit: 97601a724cce28c0dddfb32588c43e90086761d3 Author: Jakov Smolić gentoo org> AuthorDate: Thu Oct 7 18:48:13 2021 +0000 Commit: Jakov Smolić gentoo org> CommitDate: Thu Oct 7 18:54:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97601a72 dev-embedded/avrdude: Port to EAPI-8, add missing virtual/libelf dependency Closes: https://bugs.gentoo.org/565512 Signed-off-by: Jakov Smolić gentoo.org> dev-embedded/avrdude/avrdude-6.3-r1.ebuild | 56 ++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/dev-embedded/avrdude/avrdude-6.3-r1.ebuild b/dev-embedded/avrdude/avrdude-6.3-r1.ebuild new file mode 100644 index 00000000000..eedc4b7b506 --- /dev/null +++ b/dev-embedded/avrdude/avrdude-6.3-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="AVR Downloader/UploaDEr" +HOMEPAGE="https://savannah.nongnu.org/projects/avrdude" +SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz + doc? ( + mirror://nongnu/${PN}/${PN}-doc-${PV}.tar.gz + mirror://nongnu/${PN}/${PN}-doc-${PV}.pdf + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="doc ftdi ncurses readline" + +RDEPEND=" + virtual/libelf + virtual/libusb:1 + virtual/libusb:0 + ftdi? ( dev-embedded/libftdi:= ) + ncurses? ( sys-libs/ncurses:0= ) + readline? ( sys-libs/readline:0= ) +" +DEPEND="${RDEPEND}" + +src_configure() { + # somehow this doesnt get set when cross-compiling and breaks build + tc-export AR + export ac_cv_lib_ftdi_ftdi_usb_get_strings=$(usex ftdi) + export ac_cv_lib_ncurses_tputs=$(usex ncurses) + export ac_cv_lib_readline_readline=$(usex readline) + econf --disable-static +} + +src_compile() { + # The automake target for these files does not use tempfiles or create + # these atomically, confusing a parallel build. So we force them first. + emake lexer.c config_gram.c config_gram.h + emake +} + +src_install() { + default + + if use doc ; then + newdoc "${DISTDIR}/${PN}-doc-${PV}.pdf" avrdude.pdf + dodoc -r "${WORKDIR}/avrdude-html/" + fi + + find "${ED}" -name '*.la' -delete || die +}