blob: bfac567f975bfa0be53baf89e0d1005859c81c87 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/avrdude/avrdude-5.5.ebuild,v 1.1 2007/12/09 11:13:04 calchan Exp $
DESCRIPTION="AVR Downloader/UploaDEr"
HOMEPAGE="http://savannah.nongnu.org/projects/avrdude"
SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz
!doc? ( http://savannah.nongnu.org/download/${PN}/${PN}-doc-${PV}.tar.gz
http://savannah.nongnu.org/download/${PN}/${PN}-doc-${PV}.pdf )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="doc"
RDEPEND="dev-libs/libusb"
DEPEND="${RDEPEND}
doc? ( app-text/texi2html
virtual/tetex
sys-apps/texinfo )"
src_unpack() {
unpack ${A}
cd "${S}"
# let the build system re-generate these, bug #120194
rm -f lexer.c config_gram.c config_gram.h
}
src_compile() {
econf --disable-dependency-tracking --disable-doc || die "econf failed"
emake || die "emake failed"
# We build docs separately since they fail to parallel-build
if use doc ; then
cd doc
emake -j1 || die "emake doc failed"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS NEWS README ChangeLog*
# We either install docs we just built or those pre-made by upstream
insinto /usr/share/doc/${PF}
if use doc ; then
cd doc
doins avrdude.{ps,pdf}
else
newins "${DISTDIR}/${PN}-doc-${PV}.pdf" avrdude.pdf
cd "${WORKDIR}"
fi
mv avrdude-html html
doins -r html
}
|