blob: b8a65fe610a29fe04a96aebd42a71fccf43a9b44 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/picptk/picptk-0.5a-r1.ebuild,v 1.2 2007/01/28 17:21:26 calchan Exp $
WANT_AUTOMAKE="1.4"
WANT_AUTOCONF="latest"
inherit eutils autotools
DESCRIPTION="Picptk is a programmer supporting the whole PIC family including all memory types (EEPROM, EPROM, and OTP)"
HOMEPAGE="http://huizen.dds.nl/~gnupic/programmers_mike_butler.html"
SRC_URI="http://huizen.dds.nl/~gnupic/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="=dev-tcltk/itk-3.3*
dev-tcltk/iwidgets
dev-tcltk/itcl"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${PF}-headerfix.patch
epatch "${FILESDIR}"/${PF}-gccfixes.patch
cd "${S}"
sed -i.orig -e '49,53d' \
-e 's/AM_PROG_INSTALL/AC_PROG_INSTALL/g' \
${S}/aclocal.m4 || die "sed failed"
eautoreconf || die "autoreconf failed"
}
src_compile() {
econf LDFLAGS="-L/usr/lib/itk3.3 ${LDFLAGS}" || die "Configuration failed"
emake || die "Compilation failed"
}
src_install() {
emake DESTDIR="${D}" install || die "Installation failed"
dodoc AUTHORS NEWS README TODO
newdoc .picprc sample.picprc
}
|