1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools subversion toolchain-funcs
8 DESCRIPTION="AVR Downloader/UploaDEr"
9 HOMEPAGE="https://savannah.nongnu.org/projects/avrdude"
10 ESVN_REPO_URI="svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude"
14 mirror://nongnu/${PN}/${PN}-doc-${MY_DOC_PV}.tar.gz
15 mirror://nongnu/${PN}/${PN}-doc-${MY_DOC_PV}.pdf
21 IUSE="doc ftdi ncurses readline"
23 RDEPEND="virtual/libusb:1
25 ftdi? ( dev-embedded/libftdi:= )
26 ncurses? ( sys-libs/ncurses:0= )
27 readline? ( sys-libs/readline:0= )"
30 DOCS="AUTHORS ChangeLog* NEWS README"
40 # let the build system re-generate these, bug #120194
41 rm -f lexer.c config_gram.c config_gram.h || die
47 # somehow this doesnt get set when cross-compiling and breaks build
49 export ac_cv_lib_ftdi_ftdi_usb_get_strings=$(usex ftdi)
50 export ac_cv_lib_ncurses_tputs=$(usex ncurses)
51 export ac_cv_lib_readline_readline=$(usex readline)
56 # The automake target for these files does not use tempfiles or create
57 # these atomically, confusing a parallel build. So we force them first.
58 emake lexer.c config_gram.c config_gram.h
66 newdoc "${DISTDIR}/${PN}-doc-${MY_DOC_PV}.pdf" avrdude.pdf
67 dodoc -r "${WORKDIR}/avrdude-html/"