mirror of
https://notabug.org/Sages-of-Gensokyo/gensokyo_kappa-overlay
synced 2025-01-19 02:11:13 +01:00
65 lines
1.2 KiB
Bash
65 lines
1.2 KiB
Bash
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit gnome2-utils xdg-utils
|
|
|
|
DESCRIPTION="A graphical hardware temperature monitor"
|
|
HOMEPAGE="http://wpitchoune.net/psensor"
|
|
SRC_URI="http://wpitchoune.net/${PN}/files/${PN}-${PV}.tar.gz"
|
|
RESTRICT="mirror"
|
|
KEYWORDS="amd64 ~x86"
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
IUSE="+gtop +hddtemp nls +server +udisks X"
|
|
|
|
RDEPEND="
|
|
>=dev-libs/json-c-0.11.99
|
|
dev-libs/glib:2
|
|
dev-libs/libatasmart
|
|
gnome-base/dconf
|
|
gtop? ( >=gnome-base/libgtop-2.0:2 )
|
|
hddtemp? ( app-admin/hddtemp )
|
|
net-misc/curl
|
|
server? ( net-libs/libmicrohttpd )
|
|
sys-apps/lm_sensors:0/5.0.0
|
|
udisks? ( sys-fs/udisks:2 )
|
|
X? (
|
|
>=x11-libs/gtk+-3.4:3
|
|
x11-libs/libnotify
|
|
x11-libs/libX11
|
|
x11-libs/libXext
|
|
x11-libs/cairo
|
|
)"
|
|
|
|
DEPEND="${RDEPEND}
|
|
sys-apps/help2man
|
|
app-text/asciidoc
|
|
nls? ( sys-devel/gettext )"
|
|
|
|
src_configure() {
|
|
local econfargs=(
|
|
$(use_with gtop)
|
|
$(use_enable nls)
|
|
$(use_with X x)
|
|
)
|
|
|
|
econf "${econfargs[@]}" || die
|
|
}
|
|
|
|
pkg_preinst() {
|
|
gnome2_schemas_savelist
|
|
gnome2_icon_savelist
|
|
}
|
|
|
|
pkg_postinst() {
|
|
gnome2_schemas_update
|
|
gnome2_icon_cache_update
|
|
xdg_desktop_database_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
gnome2_schemas_update
|
|
}
|