blob: a39ecac5a48512c03222cf60da429c30f9202e94 (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit strip-linguas toolchain-funcs
DESCRIPTION="A lightweight and fast battery icon that sits in your system tray"
HOMEPAGE="https://github.com/valr/cbatticon"
SRC_URI="https://github.com/valr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~riscv ~x86"
IUSE="libnotify"
RDEPEND="dev-libs/glib:2
x11-libs/gtk+:3
libnotify? ( x11-libs/libnotify )"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
DOCS=( Changelog README )
src_prepare() {
default
strip-linguas -i .
}
src_compile() {
tc-export CC
emake \
$(usex libnotify WITH_NOTIFY=1 WITH_NOTIFY=0) \
V=1 \
VERSION="${PF}" \
WITH_GTK3=1
}
src_install() {
emake \
DESTDIR="${D}" \
DOCDIR="/usr/share/doc/${PF}" \
LANGUAGES="${LINGUAS}" \
V=1 VERSION="${PF}" \
install
einstalldocs
}
|