blob: 491f48e798288b606a3a6b60ed8f95155cf8a08a (
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
46
47
48
49
50
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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="~amd64 x86"
PATCHES=(
"${FILESDIR}"/${P}-makefile.patch
"${FILESDIR}"/${P}-errno.patch
"${FILESDIR}"/${P}-C99-stdbool.patch
)
src_prepare() {
default
# remove stale binaries
rm picsnoop/{picsnoop,*.o} || die
}
src_configure() {
tc-export CC
}
src_compile() {
emake
emake -C picsnoop
emake -C fixchksum
}
src_install() {
dobin picp picsnoop/picsnoop fixchksum/fixchksum
einstalldocs
dodoc BugReports.txt HISTORY LICENSE.TXT NOTES PSCOMMANDS.TXT
newdoc picsnoop/README.TXT PICSNOOP.txt
newdoc fixchksum/README fixchksum.txt
docinto html
dodoc PICPmanual.html
}
|