keepassx-2.0.2-r1.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit cmake-utils gnome2-utils vcs-snapshot xdg
  5. DESCRIPTION="Qt password manager compatible with its Win32 and Pocket PC versions"
  6. HOMEPAGE="http://www.keepassx.org/"
  7. SRC_URI="https://www.keepassx.org/releases/${PV}/${P}.tar.gz"
  8. LICENSE="|| ( GPL-2 GPL-3 ) BSD GPL-2 LGPL-2.1 LGPL-3+ CC0-1.0 public-domain || ( LGPL-2.1 GPL-3 )"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux ~x86-linux"
  11. IUSE="test"
  12. DEPEND="
  13. dev-libs/libgcrypt:0=
  14. dev-qt/qtcore:4
  15. dev-qt/qtgui:4
  16. dev-qt/qttest:4
  17. sys-libs/zlib
  18. x11-libs/libX11
  19. x11-libs/libXtst
  20. "
  21. RDEPEND="${DEPEND}"
  22. DOCS=(CHANGELOG)
  23. src_prepare() {
  24. xdg_src_prepare
  25. cmake-utils_src_prepare
  26. }
  27. src_configure() {
  28. local mycmakeargs=(
  29. -DWITH_TESTS="$(usex test)"
  30. )
  31. cmake-utils_src_configure
  32. }
  33. pkg_preinst() {
  34. gnome2_icon_savelist
  35. xdg_pkg_preinst
  36. }
  37. pkg_postinst() {
  38. gnome2_icon_cache_update
  39. xdg_pkg_postinst
  40. }
  41. pkg_postrm() {
  42. gnome2_icon_cache_update
  43. xdg_pkg_postrm
  44. }