Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/avrdude/
Date: Thu, 07 Oct 2021 18:54:21
Message-Id: 1633632843.97601a724cce28c0dddfb32588c43e90086761d3.jsmolic@gentoo
1 commit: 97601a724cce28c0dddfb32588c43e90086761d3
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 7 18:48:13 2021 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 7 18:54:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97601a72
7
8 dev-embedded/avrdude: Port to EAPI-8, add missing virtual/libelf dependency
9
10 Closes: https://bugs.gentoo.org/565512
11 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
12
13 dev-embedded/avrdude/avrdude-6.3-r1.ebuild | 56 ++++++++++++++++++++++++++++++
14 1 file changed, 56 insertions(+)
15
16 diff --git a/dev-embedded/avrdude/avrdude-6.3-r1.ebuild b/dev-embedded/avrdude/avrdude-6.3-r1.ebuild
17 new file mode 100644
18 index 00000000000..eedc4b7b506
19 --- /dev/null
20 +++ b/dev-embedded/avrdude/avrdude-6.3-r1.ebuild
21 @@ -0,0 +1,56 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +inherit toolchain-funcs
28 +
29 +DESCRIPTION="AVR Downloader/UploaDEr"
30 +HOMEPAGE="https://savannah.nongnu.org/projects/avrdude"
31 +SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz
32 + doc? (
33 + mirror://nongnu/${PN}/${PN}-doc-${PV}.tar.gz
34 + mirror://nongnu/${PN}/${PN}-doc-${PV}.pdf
35 + )"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
40 +IUSE="doc ftdi ncurses readline"
41 +
42 +RDEPEND="
43 + virtual/libelf
44 + virtual/libusb:1
45 + virtual/libusb:0
46 + ftdi? ( dev-embedded/libftdi:= )
47 + ncurses? ( sys-libs/ncurses:0= )
48 + readline? ( sys-libs/readline:0= )
49 +"
50 +DEPEND="${RDEPEND}"
51 +
52 +src_configure() {
53 + # somehow this doesnt get set when cross-compiling and breaks build
54 + tc-export AR
55 + export ac_cv_lib_ftdi_ftdi_usb_get_strings=$(usex ftdi)
56 + export ac_cv_lib_ncurses_tputs=$(usex ncurses)
57 + export ac_cv_lib_readline_readline=$(usex readline)
58 + econf --disable-static
59 +}
60 +
61 +src_compile() {
62 + # The automake target for these files does not use tempfiles or create
63 + # these atomically, confusing a parallel build. So we force them first.
64 + emake lexer.c config_gram.c config_gram.h
65 + emake
66 +}
67 +
68 +src_install() {
69 + default
70 +
71 + if use doc ; then
72 + newdoc "${DISTDIR}/${PN}-doc-${PV}.pdf" avrdude.pdf
73 + dodoc -r "${WORKDIR}/avrdude-html/"
74 + fi
75 +
76 + find "${ED}" -name '*.la' -delete || die
77 +}