xidle-26052015.ebuild 993 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit toolchain-funcs
  5. DESCRIPTION="Monitors inactivity in X and runs the specified program when a timeout occurs"
  6. HOMEPAGE="http://www.freebsdsoftware.org/x11/xidle.html"
  7. SRC_URI="http://distcache.freebsd.org/local-distfiles/novel/${P}.tar.bz2"
  8. LICENSE="BSD-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~hppa ~x86"
  11. IUSE=""
  12. DEPEND="
  13. x11-libs/libX11
  14. x11-libs/libXScrnSaver
  15. "
  16. RDEPEND="${DEPEND}"
  17. PATCHES=( "${FILESDIR}/${P}-dead.patch" )
  18. src_compile() {
  19. local my_compile="$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN}{,.c}
  20. $($(tc-getPKG_CONFIG) --libs xscrnsaver) $($(tc-getPKG_CONFIG) --libs x11)"
  21. echo ${my_compile} || die
  22. eval ${my_compile} || die
  23. }
  24. src_install() {
  25. dobin ${PN}
  26. doman ${PN}.1
  27. }
  28. pkg_postinst() {
  29. elog "If you don't specify -program argument for xidle, xlock is ran by default."
  30. elog "Install x11-misc/xlockmore for xlock if you wish to use default behaviour."
  31. }