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/pk2cmd/pk2cmd-1.20.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-embedded/pk2cmd/pk2cmd-1.20.ebuild')
-rw-r--r-- | dev-embedded/pk2cmd/pk2cmd-1.20.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-embedded/pk2cmd/pk2cmd-1.20.ebuild b/dev-embedded/pk2cmd/pk2cmd-1.20.ebuild new file mode 100644 index 000000000000..24cfe4769c1b --- /dev/null +++ b/dev-embedded/pk2cmd/pk2cmd-1.20.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="An application for working with the Microchip PicKit2 PIC programmer" +HOMEPAGE="http://www.microchip.com/pickit2" +SRC_URI="http://ww1.microchip.com/downloads/en/DeviceDoc/${PN}v${PV}LinuxMacSource.tar.gz" + +LICENSE="MicroChip-PK2" +SLOT="0" +KEYWORDS="~amd64 ppc ppc64 ~x86" +IUSE="" + +DEPEND="virtual/libusb:0" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${PN}v${PV}LinuxMacSource + +src_prepare() { + # Patch adds /usr/share/pk2 to the default search for the device file + epatch "${FILESDIR}/${PN}-add-share-dir-for-dev-file-${PV}.patch" + + # Fix up the Makefile + sed \ + -e 's:#TARGET=linux:TARGET=linux:' \ + -e 's:DBG=-O2:DBG=:' \ + -e 's:^CFLAGS=:CFLAGS+=:' \ + -e 's:^LDFLAGS=:LDFLAGS+=:' \ + -e 's:^LIBUSB=/usr/local:LIBUSB=/usr:' \ + -e "s:^CC=g++::" \ + -i Makefile || die +} + +src_compile() { + emake CC="$(tc-getCXX)" +} + +src_install() { + # Copy the device files and PicKit2 OS + insinto "/usr/share/pk2" + doins PK2DeviceFile.dat PK2V023200.hex + # Install the program + dobin pk2cmd + # Install the documentation + dodoc ReadmeForPK2CMDLinux2-6.txt usbhotplug.txt +} |