Line 0
Link Here
|
|
|
1 |
# Copyright 2019 Gentoo Authors |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=7 |
5 |
|
6 |
inherit gnome2-utils qmake-utils |
7 |
|
8 |
DESCRIPTION="Powerful yet simple to use screenshot software" |
9 |
HOMEPAGE="https://github.com/lupoDharkael/flameshot" |
10 |
SRC_URI="https://github.com/lupoDharkael/flameshot/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
11 |
|
12 |
LICENSE="GPL-3" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~x86" |
15 |
IUSE="" |
16 |
|
17 |
DEPEND="dev-qt/qtcore:5 |
18 |
dev-qt/qtsvg:5 |
19 |
dev-qt/qtnetwork:5 |
20 |
dev-qt/linguist-tools:5 |
21 |
" |
22 |
RDEPEND="${DEPEND}" |
23 |
BDEPEND="" |
24 |
|
25 |
src_configure() { |
26 |
if tc-is-gcc && [[ $(gcc-version) < 4.9.2 ]]; then |
27 |
die "Flameshot requires GCC >= 4.9.2, but you have GCC $(gcc-version)" |
28 |
fi |
29 |
eqmake5 CONFIG+=packaging flameshot.pro |
30 |
} |
31 |
|
32 |
src_install() { |
33 |
emake INSTALL_ROOT="${D}" install |
34 |
einstalldocs |
35 |
} |
36 |
|
37 |
pkg_postinst() { |
38 |
gnome2_icon_cache_update |
39 |
} |
40 |
|
41 |
pkg_postrm() { |
42 |
gnome2_icon_cache_update |
43 |
} |