gnome-multi-writer-9999.ebuild 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright 1999-2018 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=7
  4. inherit git-r3 meson udev gnome2-utils
  5. DESCRIPTION="Utility to flash disk images to multiple drives at once."
  6. HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-multi-writer"
  7. MY_AUTHOR="GNOME"
  8. EGIT_REPO_URI="https://gitlab.gnome.org/${MY_AUTHOR}/${PN}.git"
  9. MY_PV="GNOME_MULTI_WRITER_$(ver_rs 0-4 _)"
  10. if [[ ${PV} == "9999" ]] ; then
  11. EGIT_BRANCH="master"
  12. KEYWORDS=""
  13. else
  14. EGIT_COMMIT="${MY_PV}"
  15. KEYWORDS="~x86 ~amd64"
  16. fi
  17. LICENSE="GPL-2"
  18. SLOT="0"
  19. KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
  20. IUSE=""
  21. RDEPEND="dev-libs/glib:2
  22. >=x11-libs/gtk+-3.11.2:3
  23. >=dev-libs/libgusb-0.2.7
  24. virtual/libgudev
  25. >=media-libs/libcanberra-0.10[gtk3]
  26. >=sys-auth/polkit-0.1
  27. sys-fs/udisks:2
  28. dev-libs/glib:2
  29. gnome-base/gsettings-desktop-schemas
  30. "
  31. DEPEND="${RDEPEND}"
  32. BDEPEND="virtual/pkgconfig"
  33. #src_prepare() {
  34. # gnome2_src_prepare
  35. #}
  36. src_install() {
  37. meson_src_install
  38. }
  39. pkg_postinst() {
  40. xdg_desktop_database_update
  41. xdg_mimeinfo_database_update
  42. gnome2_icon_cache_update
  43. gnome2_schemas_update
  44. }
  45. pkg_postrm() {
  46. xdg_desktop_database_update
  47. xdg_mimeinfo_database_update
  48. gnome2_icon_cache_update
  49. gnome2_schemas_update
  50. }
  51. #src_configure() {
  52. # local emesonargs=(
  53. # -Ddoc=$(usex doc true false)
  54. # -Dx11-examples=$(usex examples true false)
  55. # -Ddrivers=all
  56. # -Dudev_rules=true
  57. # -Dudev_rules_dir=$(get_udevdir)/rules.d
  58. # --libdir=/usr/$(get_libdir)
  59. # )
  60. # meson_src_configure
  61. #}