blob: f3692c367809c0c981752624a35c2af62e56b0b3 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/picp/picp-0.6.8.ebuild,v 1.3 2012/02/17 07:43:54 radhermit Exp $
EAPI=4
inherit toolchain-funcs eutils
DESCRIPTION="A commandline interface to Microchip's PICSTART+ programmer."
HOMEPAGE="http://home.pacbell.net/theposts/picmicro/"
SRC_URI="http://home.pacbell.net/theposts/picmicro/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""
src_prepare() {
sed -i -e '/strip/d' \
-e 's:$(CC):\0 $(LDFLAGS):' \
{.,fixchksum,picsnoop}/Makefile || die "sed failed"
rm -f picsnoop/{picsnoop,*.o}
epatch "${FILESDIR}"/${P}-errno.patch
}
src_compile() {
emake CC=$(tc-getCC) OPTIONS="${CFLAGS} -x c++"
emake -C picsnoop CC=$(tc-getCC) OPTIONS="${CFLAGS} -x c++"
emake -C fixchksum CC=$(tc-getCC) OPTIONS="${CFLAGS}"
}
src_install() {
dobin picp
dobin picsnoop/picsnoop
dobin fixchksum/fixchksum
dodoc README HISTORY LICENSE.TXT NOTES PSCOMMANDS.TXT BugReports.txt TODO
newdoc picsnoop/README.TXT PICSNOOP.txt
newdoc fixchksum/README fixchksum.txt
dohtml PICPmanual.html
}
|