76 lines
1.7 KiB
Bash
76 lines
1.7 KiB
Bash
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xnee/xnee-3.10.ebuild,v 1.3 2011/11/27 23:17:24 jer Exp $
|
|
|
|
EAPI=4
|
|
|
|
inherit eutils
|
|
|
|
DESCRIPTION="Program suite to record, replay and distribute user actions."
|
|
HOMEPAGE="http://www.sandklef.com/xnee/"
|
|
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="gnome static-libs xosd"
|
|
|
|
RDEPEND="
|
|
x11-libs/libX11
|
|
x11-libs/libXau
|
|
x11-libs/libXdmcp
|
|
x11-libs/libXext
|
|
x11-libs/libXi
|
|
x11-libs/libXtst
|
|
x11-libs/libxcb
|
|
gnome? (
|
|
x11-libs/gtk+:2
|
|
>=gnome-base/libgnomeui-2
|
|
>=gnome-base/gconf-2
|
|
gnome-base/gnome-panel[bonobo]
|
|
)
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
x11-proto/inputproto
|
|
dev-util/pkgconfig
|
|
sys-devel/gettext
|
|
gnome? ( || ( media-gfx/imagemagick[jpeg,png]
|
|
media-gfx/graphicsmagick[imagemagick,jpeg,png] ) )"
|
|
|
|
# This needs RECORD extension from X.org server which isn't necessarily
|
|
# enabled. Xlib: extension "RECORD" missing on display ":0.0".
|
|
RESTRICT="test"
|
|
|
|
AUTOTOOLS_IN_SOURCE_BUILD=1
|
|
|
|
src_configure() {
|
|
local myconf=""
|
|
|
|
if use xosd; then
|
|
myconf="--enable-xosd --enable-verbose --enable-buffer_verbose"
|
|
else
|
|
myconf="--disable-xosd --disable-verbose --disable-buffer_verbose"
|
|
fi
|
|
|
|
econf \
|
|
$(use_enable gnome gui) \
|
|
$(use_enable gnome gnome-applet) \
|
|
$(use_enable static-libs static) \
|
|
--enable-cli \
|
|
--enable-lib \
|
|
--disable-static-programs \
|
|
${myconf}
|
|
}
|
|
|
|
src_test() {
|
|
Xemake check || die
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
dodoc AUTHORS BUGS ChangeLog FAQ NEWS README TODO
|
|
use gnome && make_desktop_entry gnee Gnee ${PN} "Utility;GTK"
|
|
if ! use static-libs; then
|
|
rm -f "${D}"/usr/lib*/lib*.la
|
|
fi
|
|
}
|