diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-embedded/picp/picp-0.6.8.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-embedded/picp/picp-0.6.8.ebuild')
-rw-r--r-- | dev-embedded/picp/picp-0.6.8.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-embedded/picp/picp-0.6.8.ebuild b/dev-embedded/picp/picp-0.6.8.ebuild new file mode 100644 index 000000000000..9957ee011e31 --- /dev/null +++ b/dev-embedded/picp/picp-0.6.8.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |