blob: 22e68dc39dafa91c95067e60b06a9f1fec733f08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools subversion toolchain-funcs
DESCRIPTION="AVR Downloader/UploaDEr"
HOMEPAGE="https://savannah.nongnu.org/projects/avrdude"
ESVN_REPO_URI="svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude"
MY_DOC_PV=6.3
SRC_URI="
doc? (
mirror://nongnu/${PN}/${PN}-doc-${MY_DOC_PV}.tar.gz
mirror://nongnu/${PN}/${PN}-doc-${MY_DOC_PV}.pdf
)"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="doc ftdi ncurses readline"
RDEPEND="virtual/libusb:1
virtual/libusb:0
ftdi? ( dev-embedded/libftdi:= )
ncurses? ( sys-libs/ncurses:0= )
readline? ( sys-libs/readline:0= )"
DEPEND="${RDEPEND}"
DOCS="AUTHORS ChangeLog* NEWS README"
src_unpack() {
default
subversion_src_unpack
}
src_prepare() {
default
# let the build system re-generate these, bug #120194
rm -f lexer.c config_gram.c config_gram.h || die
eautoreconf
}
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-${MY_DOC_PV}.pdf" avrdude.pdf
dodoc -r "${WORKDIR}/avrdude-html/"
dodoc -r atmel-docs
fi
find "${ED}" -name '*.la' -delete || die
}
|