mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 19:11:57 +02:00
mphidflash: v1.8 bump
This commit is contained in:
parent
d84e07dec9
commit
42e33558c4
5 changed files with 80 additions and 8 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST mphidflash-1.6-src.tar.gz 27426 SHA256 303169dee7a0658380989287167d475e716168f588e5a8a7e751c33f16ae7850 SHA512 fbf72ba81a6004fcfb6f47346e643c7772465bcb449686f2ef8b01dc00159f0455ee64e6d8747de29bb1ef989e10d2153f1aa9c79f8d41bded57e5c6543cc76b WHIRLPOOL 28218bdff8cd3bd1b5520364c75b7ef6379daab9f25d2cf0e8117960b62df25a469a3224f0ee3dd3eda571159fc2d06f9921e50ed347e2c24243cc83bb868759
|
||||
DIST mphidflash-1.8-src.tar.gz 28000 SHA256 af2337218c86ab98750a3dd407cb74ea8b9e18b6ad01a126d83ec7fb401997f9 SHA512 09a6d0bd0809cd6cb4e0b26fbe83282f54a43649e72ebcbe13978d0610c24f1072c6447910f4aa768e9fc34390ad3eb526e8d29f281a57b428374d89f423db22 WHIRLPOOL 5494cc5940c3e1277160f9c1e42ab25c8cb2d550f29c728fd7a0574900b9185a57a76ed067a2a0d81ff795fdb2535ed2648cf3613d4fa0ce01589b6166b83413
|
||||
|
|
|
|||
33
dev-embedded/mphidflash/files/mphidflash-1.8-makefile.patch
Normal file
33
dev-embedded/mphidflash/files/mphidflash-1.8-makefile.patch
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
--- Makefile.orig 2016-05-22 01:13:28.000000000 +0800
|
||||
+++ Makefile 2017-03-24 11:18:43.151771889 +0800
|
||||
@@ -1,9 +1,9 @@
|
||||
VERSION_MAIN = 1
|
||||
VERSION_SUB = 8
|
||||
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
OBJS = main.o hex.o
|
||||
-EXECPATH = binaries
|
||||
+EXECPATH = .
|
||||
DISTPATH = dist
|
||||
STRIP := strip
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
else
|
||||
# Rules for Linux, etc.
|
||||
OBJS += usb-libusb.o
|
||||
- CFLAGS = -O3
|
||||
- LDFLAGS = -lusb
|
||||
+ CFLAGS ?= -O3
|
||||
+ LDFLAGS += -lusb
|
||||
SYSTEM = linux
|
||||
endif
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
|
||||
mphidflash: $(OBJS)
|
||||
$(CC) $(OBJS) $(LDFLAGS) -o $(EXECPATH)/$(EXEC)
|
||||
- $(STRIP) $(EXECPATH)/$(EXEC)
|
||||
|
||||
install:
|
||||
@echo
|
||||
|
|
@ -1,13 +1,12 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="ommand-line tool for communicating with the USB-Bootloader in PIC microcontrollers"
|
||||
HOMEPAGE="https://code.google.com/p/mphidflash/"
|
||||
DESCRIPTION="Tool for communicating with the USB-Bootloader in PIC microcontrollers"
|
||||
HOMEPAGE="https://github.com/ApertureLabsLtd/mphidflash"
|
||||
#SRC_URI="https://mphidflash.googlecode.com/svn/trunk/dist/${P}-src.tar.gz"
|
||||
SRC_URI="http://dev.pentoo.ch/~zero/distfiles/${P}-src.tar.gz"
|
||||
|
||||
|
|
@ -16,14 +15,15 @@ SLOT="0"
|
|||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="virtual/libusb
|
||||
DEPEND="virtual/libusb:0
|
||||
dev-libs/libhid"
|
||||
RDEPEND="virtual/libusb"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/"${P}"-makefile.patch
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
|
|
|||
38
dev-embedded/mphidflash/mphidflash-1.8.ebuild
Normal file
38
dev-embedded/mphidflash/mphidflash-1.8.ebuild
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Tool for communicating with the USB-Bootloader in PIC microcontrollers"
|
||||
HOMEPAGE="https://github.com/ApertureLabsLtd/mphidflash"
|
||||
#SRC_URI="http://dev.pentoo.ch/~zero/distfiles/${P}-src.tar.gz"
|
||||
#https://github.com/ApertureLabsLtd/mphidflash/issues/23
|
||||
SRC_URI="https://github.com/ApertureLabsLtd/mphidflash/raw/master/dist/${P}-src.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="virtual/libusb:0
|
||||
dev-libs/libhid"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/"${P}"-makefile.patch
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use x86 && emake mphidflash32
|
||||
use amd64 && emake mphidflash64
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use x86 && newbin ${P}-linux-32 ${PN}
|
||||
use amd64 && newbin ${P}-linux-64 ${PN}
|
||||
}
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
~kde-misc/plasma-nm-0.9.3.5
|
||||
|
||||
#required by "net-wireless/rfidler
|
||||
~dev-embedded/mphidflash-1.6
|
||||
~dev-embedded/mphidflash-1.8
|
||||
|
||||
dev-embedded/libmpsse
|
||||
dev-embedded/libftdi:0
|
||||
|
|
|
|||
Loading…
Reference in a new issue