Large rework/update to EAPI=7
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
AUX pk2cmd-add-share-dir-for-dev-file-1.20.patch 668 SHA256 c59040ad6b5d840f3e55990fa58230610aac9164196ea0b3255fc1f4616c882d SHA512 f586c7eed0eac0d68e495d582c85c802c98ac8c84f7f21b00616edbbace74b877d21fd43334e5accfd02413d4a6d9d9811241feec1eaeae3a7647c745206d638 WHIRLPOOL a22205d9a8b1c95f9fc341e5f3db41df47ec0787ea44267c19c58f7ad47f3beda411d1fcdf003380b41960a34a0c83cd03fb6bd62cb4bca05669484d6e48257b
|
||||
AUX pk2cmd-add-share-dir-for-dev-file.patch 1268 SHA256 58ee54b394a19c20e075e357b9d00b0e3609e758a2fed8488664bf189ae1be2b SHA512 d05ee8ca723ab02b156c7b544f54480fe9ff18611442a5a41d7ac755f651e6550d8f3fd8f38d348b89dd77112ede403b5ad4372cb75bd0e09315d74347bd1565 WHIRLPOOL b2f854934d9c36241f1a92e6e56b56ac01fc77faeec0b2fd9b33475ebfb5289d967ee587811ceb8bb73f13d501ffacb4a995180174ab87578bc8fdd40693429b
|
||||
DIST pk2cmdv1.20LinuxMacSource.tar.gz 223175 SHA256 903027de5036eda3a648decece4acfcefe91e754ef0d4eacba0e5ba8b18857fa SHA512 72675eb287c1410c82ff49b4922afd28a8017b4e8517d10e77e0f0b111630f90881f778d754a47c97453f45412e965e281435d495fc70a047bd7357dd64f7b24 WHIRLPOOL f4f36412d4e653a20866bcbe9ec25b94e8ff4e75c1ae2e4944a42682832c9b64b683248bc559e73b976902906d2959492867f055291588cf66d9b83838174c75
|
||||
EBUILD pk2cmd-1.20.ebuild 1212 SHA256 1d033af2b7093c2973c329e2fb0e1e4ce090385cc78348fc8b6f0dfb6444fe9f SHA512 16960cfdb7887768008d8dc61d04b66cdf402852bee35542c93dab6d7b43c41dae4d4c8b80549d26b9801bb8df430bf982106219072efda4c20fb08919386358 WHIRLPOOL 6a7b16f1d3bbdc475b13f35a9c3816477f07c97ce4ad931154605019e1cfc19af4b8bf4ade978cadf6e82a9dec46a149ce889fed9bcc050d4a6cef6e677e481b
|
||||
EBUILD pk2cmd-9999.ebuild 1423 SHA256 d1589444ec2029265abf73dbacb751c73f44a567d94788d0622363f313fdb743 SHA512 6207ae1b9792cce8950e6ae4be85991f22c8728b98b526b6c408096b8327ecff644f0cb2fd59cc02f2e15a54dbe441dc6394756cfb91d6f713adaa8322d52dda WHIRLPOOL 1e7d32194b0e1570780f015ddae8d143bca3b2b8b12fa76379fbc41661ca8c9d9f0d12d40fafaae400102e7302feb15ea65a11fe1b2a50abc9ead143b15dd5b0
|
||||
MISC metadata.xml 367 SHA256 b7b67f2fc54adf03857f1024784295bcedebc293481d25a7bfeaa073d2419cfb SHA512 09c3d20eb53c9927bb7489b3522f4daa0809a379760d950a33eed0b9ddfccfe1eae4324e5c674c4731779ccb45a95627575941f2d22387efcda406947256cb22 WHIRLPOOL 6620a00bfdc65555675fd5a7099d57c6ee2d9e1115e5b852865de97befd1759305373964af2afdabb0142a540d1472143a9e3aa287c016994e643775b20898a6
|
||||
@@ -1,16 +0,0 @@
|
||||
--- cmd_app.cpp.old 2009-01-31 21:23:30.000000000 +0100
|
||||
+++ cmd_app.cpp 2009-01-31 21:25:48.000000000 +0100
|
||||
@@ -88,7 +88,12 @@
|
||||
_tsearchenv_s("PK2DeviceFile.dat", "PATH", tempString);
|
||||
if (_tcslen(tempString) < 17)
|
||||
{
|
||||
- _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||
+ // Try /usr/share/pk2 first
|
||||
+ _tcsncpy_s(tempString, "/usr/share/pk2/PK2DeviceFile.dat", 32);
|
||||
+
|
||||
+ if(access(tempString, 0))
|
||||
+ // Well, that didn't work, default to the current directory
|
||||
+ _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||
}
|
||||
}
|
||||
if (!PicFuncs.ReadDeviceFile(tempString))
|
||||
@@ -1,25 +0,0 @@
|
||||
--- pk2cmd-9999/pk2cmd/cmd_app.cpp.orig 2017-05-17 15:46:14.454813532 +0200
|
||||
+++ pk2cmd-9999/pk2cmd/cmd_app.cpp 2017-05-17 15:46:59.444690407 +0200
|
||||
@@ -8,7 +8,7 @@
|
||||
// Software must have this entire copyright and disclaimer notice prominently
|
||||
// posted in a location where end users will see it (e.g., installation program,
|
||||
// program headers, About Box, etc.). To the maximum extent permitted by law,
|
||||
-// this Software is distributed “AS IS” and WITHOUT ANY WARRANTY INCLUDING BUT
|
||||
+// this Software is distributed ?AS IS? and WITHOUT ANY WARRANTY INCLUDING BUT
|
||||
// NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR
|
||||
// PARTICULAR PURPOSE, or NON-INFRINGEMENT. IN NO EVENT WILL MICROCHIP OR ITS
|
||||
// LICENSORS BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL
|
||||
@@ -88,7 +88,12 @@
|
||||
_tsearchenv_s("PK2DeviceFile.dat", "PATH", tempString);
|
||||
if (_tcslen(tempString) < 17)
|
||||
{
|
||||
- _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||
+ // Try /usr/share/pk2 first
|
||||
+ _tcsncpy_s(tempString, "/usr/share/pk2/PK2DeviceFile.dat", 32);
|
||||
+
|
||||
+ if(access(tempString, 0))
|
||||
+ // Well, that didn't work, default to the current directory
|
||||
+ _tcsncpy_s(tempString, "PK2DeviceFile.dat", 17);
|
||||
}
|
||||
}
|
||||
if (!PicFuncs.ReadDeviceFile(tempString))
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>embedded@gentoo.org</email>
|
||||
<name>Embedded Gentoo</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
This application allows the use of the PICKit2 PIC programming device.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -1,49 +0,0 @@
|
||||
# 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
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
# 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"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="
|
||||
git://github.com/psmay/${PN}.git
|
||||
https://github.com/psmay/${PN}.git
|
||||
"
|
||||
inherit git-r3
|
||||
S=${WORKDIR}/${P}/${PN}
|
||||
else
|
||||
SRC_URI="http://ww1.microchip.com/downloads/en/DeviceDoc/${PN}v${PV}LinuxMacSource.tar.gz"
|
||||
KEYWORDS="~amd64 ppc ppc64 ~x86"
|
||||
S=${WORKDIR}/${PN}v${PV}LinuxMacSource
|
||||
fi
|
||||
|
||||
LICENSE="MicroChip-PK2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="virtual/libusb:0"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# Patch adds /usr/share/pk2 to the default search for the device file
|
||||
epatch "${FILESDIR}/${PN}-add-share-dir-for-dev-file.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
|
||||
}
|
||||
Reference in New Issue
Block a user