diff options
author | Jeroen Roovers <jer@gentoo.org> | 2008-11-12 06:57:33 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2008-11-12 06:57:33 +0000 |
commit | 1d38be7865514ef8b95611810f166eeeaf57f129 (patch) | |
tree | 04ada10a0f78df073cc2819a53f8b74b0ccce400 /x11-misc/xidle | |
parent | Added ~ppc for bug #211726. (diff) | |
download | gentoo-2-1d38be7865514ef8b95611810f166eeeaf57f129.tar.gz gentoo-2-1d38be7865514ef8b95611810f166eeeaf57f129.tar.bz2 gentoo-2-1d38be7865514ef8b95611810f166eeeaf57f129.zip |
Initial commit. Thanks to Ben Anderson for finding it (bug #241918).
(Portage version: 2.2_rc13/cvs/Linux 2.6.25-gentoo-r7-JeR i686)
Diffstat (limited to 'x11-misc/xidle')
-rw-r--r-- | x11-misc/xidle/ChangeLog | 10 | ||||
-rw-r--r-- | x11-misc/xidle/files/xidle-24102005-dead.patch | 15 | ||||
-rw-r--r-- | x11-misc/xidle/metadata.xml | 9 | ||||
-rw-r--r-- | x11-misc/xidle/xidle-24102005.ebuild | 41 |
4 files changed, 75 insertions, 0 deletions
diff --git a/x11-misc/xidle/ChangeLog b/x11-misc/xidle/ChangeLog new file mode 100644 index 000000000000..a3161101f39e --- /dev/null +++ b/x11-misc/xidle/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for x11-misc/xidle +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/xidle/ChangeLog,v 1.1 2008/11/12 06:57:33 jer Exp $ + +*xidle-24102005 (12 Nov 2008) + + 12 Nov 2008; Jeroen Roovers <jer@gentoo.org> + +files/xidle-24102005-dead.patch, +metadata.xml, +xidle-24102005.ebuild: + Initial commit. Thanks to Ben Anderson for finding it (bug #241918). + diff --git a/x11-misc/xidle/files/xidle-24102005-dead.patch b/x11-misc/xidle/files/xidle-24102005-dead.patch new file mode 100644 index 000000000000..2805f08773bb --- /dev/null +++ b/x11-misc/xidle/files/xidle-24102005-dead.patch @@ -0,0 +1,15 @@ +--- xidle.c.orig 2005-10-24 16:42:09.000000000 +0200 ++++ xidle.c 2008-11-12 07:06:01.000000000 +0100 +@@ -87,10 +87,10 @@ + void close_x(struct xinfo *); + void init_x(const char *, struct xinfo *, int, int); + void handler(int); +-__dead void usage(void); ++void usage(void); + + +-__dead void ++void + usage() + { + fprintf(stderr, "Usage:\n%s %s\n", __progname, diff --git a/x11-misc/xidle/metadata.xml b/x11-misc/xidle/metadata.xml new file mode 100644 index 000000000000..9134efa10c60 --- /dev/null +++ b/x11-misc/xidle/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>jer@gentoo.org</email> + <name>Jeroen Roovers</name> +</maintainer> +</pkgmetadata> diff --git a/x11-misc/xidle/xidle-24102005.ebuild b/x11-misc/xidle/xidle-24102005.ebuild new file mode 100644 index 000000000000..e5e024ad3791 --- /dev/null +++ b/x11-misc/xidle/xidle-24102005.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/xidle/xidle-24102005.ebuild,v 1.1 2008/11/12 06:57:33 jer Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="xidle monitors inactivity in X and runs the specified program when +a timeout occurs." +HOMEPAGE="http://www.freebsdsoftware.org/x11/xidle.html" +SRC_URI="mirror://freebsd/ports/local-distfiles/novel/${P}.tar.bz2" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~hppa ~x86" +IUSE="" + +DEPEND=" + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXScrnSaver + " +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-dead.patch" +} + +src_compile() { + local my_libs="-lXss -lXext -lX11" + local my_compile + my_compile="$(tc-getCC) ${CFLAGS} ${LDFLAGS} ${my_libs} -o ${PN}{,.c}" + echo ${my_compile} + eval ${my_compile} +} + +src_install() { + dobin ${PN} + doman ${PN}.1 +} |