1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="AVR Downloader/UploaDEr"
10 HOMEPAGE="https://savannah.nongnu.org/projects/avrdude"
11 SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz
13 mirror://nongnu/${PN}/${PN}-doc-${PV}.tar.gz
14 mirror://nongnu/${PN}/${PN}-doc-${PV}.pdf
19 KEYWORDS="amd64 arm ppc ppc64 x86"
20 IUSE="doc ftdi ncurses readline"
22 RDEPEND="virtual/libusb:1
23 ftdi? ( dev-embedded/libftdi:0 )
24 ncurses? ( sys-libs/ncurses )
25 readline? ( sys-libs/readline )"
28 DOCS="AUTHORS ChangeLog* NEWS README"
31 # let the build system re-generate these, bug #120194
32 rm -f lexer.c config_gram.c config_gram.h
36 export ac_cv_lib_ftdi_ftdi_usb_get_strings=$(usex ftdi)
37 export ac_cv_lib_ncurses_tputs=$(usex ncurses)
38 export ac_cv_lib_readline_readline=$(usex readline)
43 # The automake target for these files does not use tempfiles or create
44 # these atomically, confusing a parallel build. So we force them first.
45 emake lexer.c config_gram.c config_gram.h
53 newdoc "${DISTDIR}/${PN}-doc-${PV}.pdf" avrdude.pdf
54 dohtml -r "${WORKDIR}/avrdude-html/"