summaryrefslogtreecommitdiff
blob: 8ecff4f1595d443e2b49c7eda263fe5a22020b60 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/picp/picp-0.6.5.ebuild,v 1.2 2009/09/23 16:40:32 patrick Exp $

inherit toolchain-funcs

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="~x86"
IUSE=""

DEPEND=""

src_compile() {
	emake CC=$(tc-getCC) OPTIONS="${CFLAGS} -x c++" || die "emake failed"
	emake -C picsnoop CC=$(tc-getCC) OPTIONS="${CFLAGS} -x c++" || die "emake failed"
	#emake -C fixchksum CC=$(tc-getCC) OPTIONS="${CFLAGS} -x c++" || die "emake failed"
}

src_install() {
	dodoc README HISTORY LICENSE.TXT NOTES PSCOMMANDS.TXT BugReports.txt TODO
	dohtml PICPmanual.html
	dobin picp
	dobin picsnoop/picsnoop
	#dobin fixchksum/fixchksum
	newdoc picsnoop/README.TXT PICSNOOP.txt
	#newdoc fixchksum/README fixchksum.txt
}