blob: 93073fc987fadfc5b365df3c6b581df22390d8e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake readme.gentoo-r1
REV="293d559bac55"
DESCRIPTION="flashtool for the multi purpose programming adapter usbprog"
HOMEPAGE="http://www.aaabbb.de/FirmwareUsbprog/FirmwareUsbprog_en.php https://bitbucket.org/bwalle/usbprog-tools/src/master/"
SRC_URI="https://bitbucket.org/bwalle/usbprog-tools/get/${REV}.tar.bz2 -> ${P}.tar.bz2"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+gui minimal"
RDEPEND="
!minimal? (
gui? ( dev-qt/qtwidgets:5 )
dev-qt/qtcore:5
dev-qt/qtnetwork:5
dev-qt/qtxml:5
sys-libs/ncurses:=
sys-libs/readline:=
)
virtual/libusb:1
"
DEPEND="${RDEPEND}"
S="${WORKDIR}/bwalle-usbprog-tools-${REV}"
PATCHES=(
"${FILESDIR}/${P}_versions.xml.patch"
)
DOC_CONTENTS="
Please visit http://www.aaabbb.de/FirmwareUsbprog/FirmwareUsbprog_en.php
for additional info.
"
src_configure() {
local mycmakeargs=(
-DBUILD_ONLY_CORE=$(usex minimal)
-DBUILD_GUI=$(usex gui)
-DUSE_QT5=ON
)
cmake_src_configure
}
src_install() {
cmake_src_install
readme.gentoo_create_doc
}
pkg_postinst() {
readme.gentoo_print_elog
}
|