mate-sensors-applet-1.16.0.ebuild 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. COMMON_DEPEND=">=dev-libs/glib-2.36:2
  14. >=mate-base/mate-panel-1.6[gtk3(-)=]
  15. >=x11-libs/cairo-1.0.4:0
  16. x11-libs/gdk-pixbuf:2
  17. virtual/libintl:0
  18. !gtk3? ( >=x11-libs/gtk+-2.24:2 )
  19. gtk3? ( >=x11-libs/gtk+-3.0:3 )
  20. hddtemp? (
  21. dbus? (
  22. >=dev-libs/dbus-glib-0.80:0
  23. >=dev-libs/libatasmart-0.16:0 )
  24. !dbus? ( >=app-admin/hddtemp-0.3_beta13:0 ) )
  25. libnotify? ( >=x11-libs/libnotify-0.7:0 )
  26. lm_sensors? ( sys-apps/lm_sensors:0 )
  27. video_cards_fglrx? ( x11-drivers/ati-drivers:* )
  28. video_cards_nvidia? ( || (
  29. >=x11-drivers/nvidia-drivers-100.14.09:0[static-libs,tools]
  30. media-video/nvidia-settings:0
  31. ) )"
  32. RDEPEND="${COMMON_DEPEND}"
  33. DEPEND="${COMMON_DEPEND}
  34. app-text/rarian:0
  35. >=app-text/scrollkeeper-dtd-1:1.0
  36. app-text/yelp-tools:0
  37. >=dev-util/intltool-0.50.1:*
  38. sys-devel/gettext:*
  39. virtual/pkgconfig:*"
  40. PDEPEND="hddtemp? ( dbus? ( sys-fs/udisks:0 ) )"
  41. src_configure() {
  42. local udisks
  43. if use hddtemp && use dbus; then
  44. udisks="--enable-udisks"
  45. else
  46. udisks="--disable-udisks"
  47. fi
  48. mate_src_configure \
  49. --disable-static \
  50. --with-gtk=$(usex gtk3 3.0 2.0) \
  51. $(use_enable libnotify) \
  52. $(use_with lm_sensors libsensors) \
  53. $(use_with video_cards_fglrx aticonfig) \
  54. $(use_with video_cards_nvidia nvidia) \
  55. ${udisks}
  56. }