qtpass-1.1.0.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit qmake-utils
  5. DESCRIPTION="multi-platform GUI for pass, the standard unix password manager"
  6. HOMEPAGE="https://qtpass.org/"
  7. SRC_URI="https://github.com/IJHack/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~x86 ~amd64"
  11. IUSE="+qt5"
  12. DOCS=( FAQ.md README.md CONTRIBUTING.md )
  13. RDEPEND="qt5? (
  14. dev-qt/qtcore:5
  15. dev-qt/qtgui:5[xcb]
  16. dev-qt/qtwidgets:5
  17. dev-qt/qtnetwork:5
  18. )
  19. !qt5? (
  20. dev-qt/qtcore:4
  21. dev-qt/qtgui:4
  22. )
  23. app-admin/pass
  24. net-misc/x11-ssh-askpass"
  25. DEPEND="${RDEPEND}
  26. qt5? (
  27. dev-qt/linguist-tools:5
  28. dev-qt/qtsvg:5
  29. )
  30. !qt5? ( dev-qt/qtsvg:4 )"
  31. src_prepare() {
  32. # Modify install path
  33. sed -i "s/target.path = \$\$PREFIX/target.path = \$\$PREFIX\/bin/" \
  34. ${PN}.pro \
  35. || die "sed failed to modify install path for ${PN}.pro"
  36. epatch_user
  37. }
  38. src_configure() {
  39. if use qt5 ; then
  40. eqmake5 PREFIX="${D}"/usr
  41. else
  42. eqmake4 PREFIX="${D}"/usr
  43. fi
  44. }
  45. src_install() {
  46. default
  47. insinto /usr/share/applications
  48. doins "${PN}.desktop"
  49. newicon artwork/icon.svg "${PN}-icon.svg"
  50. }