tkurbad-overlay/sci-electronics/minipro/minipro-9999.ebuild
2021-09-09 13:46:05 +02:00

41 lines
834 B
Bash

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit 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() {
eapply "${FILESDIR}/${P}-infoic.patch" || die
eapply "${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 {info,logic}ic.xml
}