i3lock-2.8.ebuild 676 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="Simple screen locker"
  6. HOMEPAGE="http://i3wm.org/i3lock/"
  7. SRC_URI="http://i3wm.org/${PN}/${P}.tar.bz2"
  8. LICENSE="BSD"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86"
  11. IUSE=""
  12. RDEPEND="virtual/pam
  13. dev-libs/libev
  14. >=x11-libs/libxkbcommon-0.5.0[X]
  15. x11-libs/libxcb[xkb]
  16. x11-libs/xcb-util
  17. x11-libs/cairo[xcb]"
  18. DEPEND="${RDEPEND}
  19. virtual/pkgconfig"
  20. DOCS=( CHANGELOG README.md )
  21. pkg_setup() {
  22. tc-export CC
  23. }
  24. src_prepare() {
  25. sed -i -e 's:login:system-auth:' ${PN}.pam || die
  26. epatch_user
  27. }
  28. src_install() {
  29. default
  30. doman ${PN}.1
  31. }