mate-sensors-applet-1.12.1.ebuild 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. MATE_LA_PUNT="yes"
  5. inherit mate
  6. if [[ ${PV} != 9999 ]]; then
  7. KEYWORDS="amd64 ~arm x86"
  8. fi
  9. DESCRIPTION="MATE panel applet to display readings from hardware sensors"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. IUSE="+dbus gtk3 hddtemp libnotify lm_sensors video_cards_fglrx video_cards_nvidia"
  13. RDEPEND="app-text/rarian:0
  14. >=dev-libs/glib-2.36:2
  15. >=mate-base/mate-panel-1.6[gtk3(-)=]
  16. >=x11-libs/cairo-1.0.4:0
  17. x11-libs/gdk-pixbuf:2
  18. virtual/libintl:0
  19. !gtk3? ( >=x11-libs/gtk+-2.24:2 )
  20. gtk3? ( >=x11-libs/gtk+-3.0:3 )
  21. hddtemp? (
  22. dbus? (
  23. >=dev-libs/dbus-glib-0.80:0
  24. >=dev-libs/libatasmart-0.16:0 )
  25. !dbus? ( >=app-admin/hddtemp-0.3_beta13:0 ) )
  26. libnotify? ( >=x11-libs/libnotify-0.7:0 )
  27. lm_sensors? ( sys-apps/lm_sensors:0 )
  28. video_cards_fglrx? ( x11-drivers/ati-drivers:* )
  29. video_cards_nvidia? ( || (
  30. >=x11-drivers/nvidia-drivers-100.14.09:0[static-libs,tools]
  31. media-video/nvidia-settings:0
  32. ) )"
  33. DEPEND="${RDEPEND}
  34. >=app-text/scrollkeeper-dtd-1:1.0
  35. app-text/yelp-tools:0
  36. >=dev-util/intltool-0.50.1:*
  37. sys-devel/gettext:*
  38. virtual/pkgconfig:*"
  39. PDEPEND="hddtemp? ( dbus? ( sys-fs/udisks:0 ) )"
  40. src_configure() {
  41. local udisks
  42. if use hddtemp && use dbus; then
  43. udisks="--enable-udisks"
  44. else
  45. udisks="--disable-udisks"
  46. fi
  47. mate_src_configure \
  48. --disable-static \
  49. --with-gtk=$(usex gtk3 3.0 2.0) \
  50. $(use_enable libnotify) \
  51. $(use_with lm_sensors libsensors) \
  52. $(use_with video_cards_fglrx aticonfig) \
  53. $(use_with video_cards_nvidia nvidia) \
  54. ${udisks}
  55. }