Skip to content
Browse files

xidletool

  • Loading branch information...
1 parent 0a424f8 commit 4d661f4b4495cf463650f6758bed6baa483a408a @wired committed
Showing with 42 additions and 0 deletions.
  1. +1 −0 x11-misc/xidletool/Manifest
  2. +41 −0 x11-misc/xidletool/xidletool-9999.ebuild
View
1 x11-misc/xidletool/Manifest
@@ -0,0 +1 @@
+EBUILD xidletool-9999.ebuild 854 SHA256 db88f16420dd3e1a9f65651c5666ced81a8230134f384867bb37c1c8eb3e7c19 SHA512 5070d6829686c21ebaa59f131e73c2ec5808b95403a1c8d59f2e80163127e302ef30b76fe2fe5bc61815823e202bc34d8b452bcf188e4d27bf1e9c067face24b WHIRLPOOL 087c0e94e9ab12d678f4fc14c6467752e7a744cd6733710f22262d93d91ceeace64b9a68cec8b30452496e0072824a88d77b5091b27d389531f33030a6eafaf7
View
41 x11-misc/xidletool/xidletool-9999.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils autotools git-2
+
+DESCRIPTION="Use the X Screensaver extension to get and use the user's idle time."
+HOMEPAGE="https://github.com/wired/xidletool"
+RESTRICT="mirror"
+EGIT_REPO_URI="https://github.com/wired/xidletool.git"
+EGIT_BRANCH="master"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="x11-base/xorg-server
+ || ( app-arch/lzma-utils app-arch/xz-utils )"
+RDEPEND="x11-base/xorg-server"
+
+#pre_src_configure() {
+src_prepare() {
+ sed -i "s/ dist-lzma//" configure.ac ||
+ die "sed failed"
+ sed -i "/^LDADD/ s/ -lX11/ -lX11 -lXext/" Makefile.am ||
+ die "sed failed"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --x-libraries=/usr/lib/X11 \
+ --x-includes=/usr/include/X11
+}
+
+src_install() {
+ einstall
+}

0 comments on commit 4d661f4

Please sign in to comment.
Something went wrong with that request. Please try again.