summaryrefslogtreecommitdiff
blob: 34161b0f8554d9929f9b19da4037aa40e867b4fa (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/uisp/uisp-20050103.ebuild,v 1.3 2005/05/03 15:52:10 dholm Exp $

inherit eutils

DESCRIPTION="tool for AVR microcontrollers which can interface to many hardware in-system programmers"
HOMEPAGE="http://savannah.nongnu.org/projects/uisp"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
#SRC_URI="http://savannah.nongnu.org/download/uisp/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~ppc"
IUSE=""
S=${WORKDIR}/${PN}

DEPEND="sys-apps/gawk
	sys-devel/gcc
	>=sys-devel/automake-1.7
	>=sys-devel/autoconf-2.57"
RDEPEND=""

#src_unpack() {
#	unpack ${A}
#	cd ${S}/src
#	epatch ${FILESDIR}/uisp-gcc34.patch
#}

src_compile() {
	rm -rf autom4te.cache
	export WANT_AUTOCONF=2.57 WANT_AUTOMAKE=1.7
	aclocal || die "aclocal failed"
	autoheader || die "autoheader failed"
	autoconf || die "autoconf failed"
	automake --foreign --add-missing --copy || die "automake failed"
	econf || die "configure failed"
	emake || die "make failed"
}

src_install() {
	emake DESTDIR=${D} install || die "install failed"
	dodoc doc/*
	prepalldocs
}