blob: eb3eb819b7afb659f2efaf6a854f8cf48091972d (
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
|
# Copyright 2020-2021 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
x11-libs/cairo:0
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
x11-libs/pango:0
"
RDEPEND="
${DEPEND}
net-wireless/iwd
"
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 prefix="${ED}/usr" install
gunzip "${ED}/usr/share/man/man1/iwgtk.1.gz" || die
}
|