2018-09-17 17:54:09 +02:00
|
|
|
# Copyright 1999-2016 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-06-23 14:52:35 +02:00
|
|
|
EAPI=7
|
2018-09-17 17:54:09 +02:00
|
|
|
|
2021-06-24 15:01:29 +02:00
|
|
|
inherit bash-completion-r1 git-r3 udev
|
2018-09-17 17:54:09 +02:00
|
|
|
|
|
|
|
DESCRIPTION="A free and open TL866XX programmer"
|
2018-09-19 17:10:15 +02:00
|
|
|
HOMEPAGE="https://gitlab.com/DavidGriffith/minipro"
|
|
|
|
EGIT_REPO_URI="https://gitlab.com/DavidGriffith/minipro.git"
|
2018-09-17 17:54:09 +02:00
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS=""
|
|
|
|
IUSE=""
|
|
|
|
|
2021-01-03 00:26:52 +01:00
|
|
|
RDEPEND="virtual/libusb:1
|
|
|
|
virtual/pkgconfig"
|
2018-09-17 17:54:09 +02:00
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
2021-01-12 10:16:23 +01:00
|
|
|
src_prepare() {
|
2021-06-24 15:01:29 +02:00
|
|
|
eapply "${FILESDIR}/${P}-infoic.patch" || die
|
|
|
|
eapply "${FILESDIR}/${P}-voltages.patch" || die
|
2021-01-12 10:16:23 +01:00
|
|
|
|
|
|
|
default
|
|
|
|
}
|
|
|
|
|
2021-01-03 00:26:52 +01:00
|
|
|
src_compile() {
|
|
|
|
PREFIX=/usr emake || die
|
|
|
|
}
|
|
|
|
|
2018-09-17 17:54:09 +02:00
|
|
|
src_install() {
|
2018-09-19 17:10:15 +02:00
|
|
|
dobin ${PN}{,hex}
|
2019-07-12 14:06:44 +02:00
|
|
|
udev_dorules udev/60-${PN}.rules
|
|
|
|
udev_dorules udev/61-${PN}-{plugdev,uaccess}.rules
|
2018-09-17 17:54:09 +02:00
|
|
|
doman man/${PN}.1
|
|
|
|
dobashcomp bash_completion.d/${PN}
|
2020-12-29 00:45:08 +01:00
|
|
|
insinto /usr/share/minipro
|
|
|
|
doins infoic.xml
|
2018-09-17 17:54:09 +02:00
|
|
|
}
|