zeal-0.2.1.ebuild 1008 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit qmake-utils gnome2-utils fdo-mime
  5. DESCRIPTION="Offline documentation browser inspired by Dash"
  6. HOMEPAGE="https://zealdocs.org/"
  7. SRC_URI="https://github.com/zealdocs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  8. S="${WORKDIR}/${P}/src"
  9. LICENSE="GPL-3"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. DEPEND="
  13. app-arch/libarchive
  14. dev-qt/qtconcurrent:5
  15. dev-qt/qtgui:5
  16. dev-qt/qtnetwork:5
  17. dev-qt/qtsql:5[sqlite]
  18. dev-qt/qtwebkit:5
  19. dev-qt/qtwidgets:5
  20. dev-qt/qtx11extras:5
  21. >=x11-libs/xcb-util-keysyms-0.3.9
  22. "
  23. RDEPEND="
  24. ${DEPEND}
  25. x11-themes/hicolor-icon-theme
  26. "
  27. src_configure() {
  28. eqmake5
  29. PREFIX="${EPREFIX}/usr"
  30. }
  31. src_install() {
  32. emake INSTALL_ROOT="${D}" PREFIX="${EPREFIX}/usr" install
  33. }
  34. pkg_preinst() {
  35. gnome2_icon_savelist
  36. }
  37. pkg_postinst() {
  38. gnome2_icon_cache_update
  39. fdo-mime_desktop_database_update
  40. }
  41. pkg_postrm() {
  42. gnome2_icon_cache_update
  43. fdo-mime_desktop_database_update
  44. }