1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 EGIT_REPO_URI="git://github.com/derat/xsettingsd.git"
7 inherit git-2 toolchain-funcs
9 DESCRIPTION="A daemon that implements the XSETTINGS specification."
10 HOMEPAGE="http://code.google.com/p/xsettingsd/"
18 RDEPEND="x11-libs/libX11"
19 DEPEND="dev-util/scons
23 # scons options differ from make options -> remove everything except "-jX" and "-j X"
24 local sconsopts=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[[:space:]]*[0-9]\+\).*/\1/; p }")
25 scons CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
26 ${sconsopts} DESTDIR="${D}" PREFIX="/usr" xsettingsd dump_xsettings \
27 || die 'Please add "${S}/config.opts" when filing bugs reports!'
31 dobin xsettingsd dump_xsettings || die