blob: b32d3e5ab1a67ac03023bc674085251453775cf3 (
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
|
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit xdg
DESCRIPTION="Lightweight, graphical wifi management utility for Linux"
HOMEPAGE="https://github.com/J-Lentz/iwgtk"
SRC_URI="https://github.com/J-Lentz/iwgtk/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="
dev-libs/atk:0
dev-libs/glib:2
gui-libs/gtk:4
media-gfx/qrencode:=
x11-libs/cairo:0
x11-libs/gdk-pixbuf:2
x11-libs/pango:0
"
RDEPEND="
${DEPEND}
>=net-wireless/iwd-1.28
"
src_prepare() {
default
sed -i \
-e 's/^CC=/CC?=/' \
-e 's/^CFLAGS=/CFLAGS:=$(CFLAGS) /' \
-e 's/^LDLIBS=/LDLIBS:=$(LDFLAGS) /' \
-e 's/-O3$/${CFLAGS}/' \
Makefile || die
}
src_install() {
emake DESTDIR="${D}" PREFIX="/usr" install
gunzip "${ED}/usr/share/man/man1/iwgtk.1.gz" || die
}
|