summaryrefslogtreecommitdiff
blob: 39adf50e0bbea55c344065ae332688de4bb1429a (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/avrdude/avrdude-5.0.ebuild,v 1.3 2005/11/24 18:20:01 corsair Exp $

DESCRIPTION="AVR Downloader/UploaDEr"
HOMEPAGE="http://savannah.nongnu.org/projects/avrdude"
SRC_URI="http://savannah.nongnu.org/download/avrdude/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ppc64 x86"

IUSE="doc"
RDEPEND="sys-libs/readline
		sys-libs/ncurses
		dev-libs/libusb"
DEPEND="doc? ( app-text/texi2html
			   app-text/tetex
			   sys-apps/texinfo )
		sys-devel/bison
		sys-devel/flex
		${RDEPEND}"

src_compile() {
	econf $(use_enable doc) || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	make DESTDIR="${D}" install || die "emake install failed"

	dodoc AUTHORS NEWS README \
		ChangeLog ChangeLog-2001 ChangeLog-2002 ChangeLog-2003
}