spacefm-9999.ebuild 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. EGIT_REPO_URI="git://github.com/IgnorantGuru/${PN}.git"
  5. EGIT_BRANCH="next"
  6. inherit fdo-mime git-r3 gnome2-utils linux-info
  7. DESCRIPTION="A multi-panel tabbed file manager"
  8. HOMEPAGE="https://ignorantguru.github.com/spacefm/"
  9. LICENSE="GPL-2 LGPL-2.1"
  10. SLOT="0"
  11. KEYWORDS=""
  12. IUSE="gtk2 +gtk3 +startup-notification +video-thumbnails"
  13. RDEPEND="dev-libs/glib:2
  14. dev-util/desktop-file-utils
  15. >=virtual/udev-143
  16. virtual/freedesktop-icon-theme
  17. x11-libs/cairo
  18. x11-libs/gdk-pixbuf
  19. gtk2? ( gtk3? ( x11-libs/gtk+:3 ) !gtk3? ( x11-libs/gtk+:2 ) )
  20. !gtk2? ( x11-libs/gtk+:3 )
  21. x11-libs/pango
  22. x11-libs/libX11
  23. x11-misc/shared-mime-info
  24. video-thumbnails? ( media-video/ffmpegthumbnailer )
  25. startup-notification? ( x11-libs/startup-notification )"
  26. DEPEND="${RDEPEND}
  27. dev-util/intltool
  28. virtual/pkgconfig
  29. sys-devel/gettext"
  30. src_configure() {
  31. econf \
  32. --htmldir=/usr/share/doc/${PF}/html \
  33. $(use_enable startup-notification) \
  34. $(use_enable video-thumbnails) \
  35. --disable-hal \
  36. --enable-inotify \
  37. --disable-pixmaps \
  38. $(use_with gtk3 gtk3 "yes")
  39. }
  40. pkg_preinst() {
  41. gnome2_icon_savelist
  42. }
  43. pkg_postinst() {
  44. fdo-mime_desktop_database_update
  45. fdo-mime_mime_database_update
  46. gnome2_icon_cache_update
  47. einfo
  48. elog "To mount as non-root user you need one of the following:"
  49. elog " sys-apps/udevil (recommended, see below)"
  50. elog " sys-apps/pmount"
  51. elog " sys-fs/udisks:0"
  52. elog " sys-fs/udisks:2"
  53. elog "To support ftp/nfs/smb/ssh URLs in the path bar you need:"
  54. elog " sys-apps/udevil"
  55. elog "To perform as root functionality you need one of the following:"
  56. elog " x11-misc/ktsuss"
  57. elog " kde-apps/kdesu"
  58. elog "Other optional dependencies:"
  59. elog " sys-apps/dbus"
  60. elog " sys-process/lsof (device processes)"
  61. elog " virtual/eject (eject media)"
  62. einfo
  63. if ! has_version 'sys-fs/udisks' ; then
  64. elog "When using SpaceFM without udisks, and without the udisks-daemon running,"
  65. elog "you may need to enable kernel polling for device media changes to be detected."
  66. elog "See /usr/share/doc/${PF}/html/spacefm-manual-en.html#devices-kernpoll"
  67. has_version '<virtual/udev-173' && ewarn "You need at least udev-173"
  68. kernel_is lt 2 6 38 && ewarn "You need at least kernel 2.6.38"
  69. einfo
  70. fi
  71. }
  72. pkg_postrm() {
  73. fdo-mime_desktop_database_update
  74. fdo-mime_mime_database_update
  75. gnome2_icon_cache_update
  76. }