| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xidle/xidle-24102005.ebuild,v 1.2 2008/11/24 09:15:43 flameeyes Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit eutils toolchain-funcs
|
| 7 |
|
| 8 |
DESCRIPTION="xidle monitors inactivity in X and runs the specified program when
|
| 9 |
a timeout occurs."
|
| 10 |
HOMEPAGE="http://www.freebsdsoftware.org/x11/xidle.html"
|
| 11 |
SRC_URI="mirror://freebsd/ports/local-distfiles/novel/${P}.tar.bz2"
|
| 12 |
|
| 13 |
LICENSE="BSD-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~hppa ~x86"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
DEPEND="
|
| 19 |
x11-libs/libX11
|
| 20 |
x11-libs/libXScrnSaver
|
| 21 |
"
|
| 22 |
RDEPEND="${DEPEND}"
|
| 23 |
|
| 24 |
src_prepare() {
|
| 25 |
epatch "${FILESDIR}/${P}-dead.patch"
|
| 26 |
}
|
| 27 |
|
| 28 |
src_compile() {
|
| 29 |
local my_compile="$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN}{,.c} -lXss -lX11"
|
| 30 |
echo ${my_compile}
|
| 31 |
eval ${my_compile} || die
|
| 32 |
}
|
| 33 |
|
| 34 |
src_install() {
|
| 35 |
dobin ${PN}
|
| 36 |
doman ${PN}.1
|
| 37 |
}
|