|
| 1 | +# Copyright 1999-2016 Gentoo Foundation |
| 2 | +# Distributed under the terms of the GNU General Public License v2 |
| 3 | +# $Id$ |
| 4 | + |
| 5 | +EAPI=6 |
| 6 | +inherit autotools eutils |
| 7 | + |
| 8 | +DESCRIPTION="Modern graphical system monitor for any panel" |
| 9 | +HOMEPAGE="https://github.com/udda/multiload-ng" |
| 10 | + |
| 11 | +SRC_URI="https://github.com/udda/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
| 12 | +KEYWORDS="amd64 x86" |
| 13 | + |
| 14 | +LICENSE="GPL-2" |
| 15 | +SLOT="0" |
| 16 | +IUSE="-debug +autostart -experimental gtk2 +gtk3 -awn +indicator +lxde +mate +standalone +systray +xfce4" |
| 17 | + |
| 18 | +LANGS="de es fr it lt ru zh_CN" |
| 19 | +for lang in ${LANGS} ; do IUSE+=" linguas_${lang}"; done |
| 20 | + |
| 21 | +RDEPEND=" |
| 22 | + gtk2? ( >=x11-libs/gtk+-2.20:2 ) |
| 23 | + gtk3? ( x11-libs/gtk+:3 ) |
| 24 | + x11-libs/cairo:= |
| 25 | + awn? ( |
| 26 | + >=gnome-extra/avant-window-navigator-0.3.9 |
| 27 | + >=dev-cpp/glibmm-2.16.0:2 |
| 28 | + >=dev-cpp/gtkmm-2.20:2.4 |
| 29 | + ) |
| 30 | + indicator? ( |
| 31 | + gtk2? ( >=dev-libs/libappindicator-0.4.92:2 ) |
| 32 | + gtk3? ( >=dev-libs/libappindicator-0.4.92:3 ) |
| 33 | + ) |
| 34 | + lxde? ( |
| 35 | + >=lxde-base/lxpanel-0.5.8 |
| 36 | + ) |
| 37 | + mate? ( |
| 38 | + gtk2? ( >=mate-base/mate-panel-1.7.0 ) |
| 39 | + gtk3? ( >=mate-base/mate-panel-1.7.0[gtk3(-)] ) |
| 40 | + ) |
| 41 | + xfce4? ( |
| 42 | + gtk2? ( |
| 43 | + >=xfce-base/libxfce4util-4.6.0 |
| 44 | + >=xfce-base/xfce4-panel-4.6.0 |
| 45 | + ) |
| 46 | + gtk3? ( |
| 47 | + >=xfce-base/libxfce4util-4.12.0 |
| 48 | + >=xfce-base/xfce4-panel-4.12.0 |
| 49 | + ) |
| 50 | + )" |
| 51 | + |
| 52 | +DEPEND="${RDEPEND} |
| 53 | + dev-util/intltool |
| 54 | + sys-devel/gettext |
| 55 | + virtual/pkgconfig" |
| 56 | + |
| 57 | +DOCS="AUTHORS README.md" |
| 58 | + |
| 59 | +REQUIRED_USE=" |
| 60 | + ^^ ( gtk2 gtk3 ) |
| 61 | + || ( awn indicator lxde mate standalone systray xfce4 ) |
| 62 | + awn? ( gtk2 experimental )" |
| 63 | + |
| 64 | +src_prepare() { |
| 65 | + eautoreconf |
| 66 | + eapply_user |
| 67 | +} |
| 68 | + |
| 69 | +src_configure() { |
| 70 | + if use gtk2; then |
| 71 | + GTK_CONF="--with-gtk=2.0" |
| 72 | + else |
| 73 | + GTK_CONF="--with-gtk=3.0 --disable-deprecations" |
| 74 | + fi |
| 75 | + econf \ |
| 76 | + $(use_enable experimental) \ |
| 77 | + $(use_enable debug) \ |
| 78 | + $(use_enable autostart) \ |
| 79 | + $GTK_CONF \ |
| 80 | + $(use_with standalone) \ |
| 81 | + $(use_with awn) \ |
| 82 | + $(use_with indicator) \ |
| 83 | + $(use_with lxde lxpanel) \ |
| 84 | + $(use_with mate) \ |
| 85 | + $(use_with systray) \ |
| 86 | + $(use_with xfce4) |
| 87 | + |
| 88 | + if use experimental; then |
| 89 | + elog "You are enabling experimental code. Please note that this can be really unstable." |
| 90 | + fi |
| 91 | +} |
0 commit comments