tkurbad-overlay/sci-electronics/minipro/minipro-9999.ebuild
2021-05-29 00:02:58 +02:00

41 lines
833 B
Bash

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils bash-completion-r1 git-r3 udev
DESCRIPTION="A free and open TL866XX programmer"
HOMEPAGE="https://gitlab.com/DavidGriffith/minipro"
EGIT_REPO_URI="https://gitlab.com/DavidGriffith/minipro.git"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="virtual/libusb:1
virtual/pkgconfig"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}/${P}-infoic.patch" || die
epatch "${FILESDIR}/${P}-voltages.patch" || die
default
}
src_compile() {
PREFIX=/usr emake || die
}
src_install() {
dobin ${PN}{,hex}
udev_dorules udev/60-${PN}.rules
udev_dorules udev/61-${PN}-{plugdev,uaccess}.rules
doman man/${PN}.1
dobashcomp bash_completion.d/${PN}
insinto /usr/share/minipro
doins infoic.xml
}