I've modified app-emulation/spice ebuild to make it not dependent on X libs if only server functionality is desired. Also I've included tunnel use-flag, but currently it depends on net-libs/slirp package that is not in the main tree (bgo overlay). I've checked server-only layout: it works as it should/ Reproducible: Always
Created attachment 314793 [details] app-emulation/spice-0.10.1-r1 with customised RDEPEND
Comment on attachment 314793 [details] app-emulation/spice-0.10.1-r1 with customised RDEPEND --- spice-0.10.1.ebuild 2012-06-09 16:09:46.000000000 +0200 +++ - 2012-06-09 16:10:03.047215005 +0200 @@ -13,31 +13,30 @@ LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="amd64 ~x86" -IUSE="+client +gui sasl smartcard static static-libs" +IUSE="+client +gui sasl smartcard static static-libs tunnel" RDEPEND=">=app-emulation/spice-protocol-0.10.1 >=x11-libs/pixman-0.17.7 media-libs/alsa-lib media-libs/celt:0.5.1 dev-libs/openssl - >=x11-libs/libXrandr-1.2 - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXinerama - x11-libs/libXfixes - x11-libs/libXrender + client? ( + >=x11-libs/libXrandr-1.2 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXinerama + x11-libs/libXfixes + x11-libs/libXrender + gui? ( =dev-games/cegui-0.6* ) + ) virtual/jpeg sys-libs/zlib - client? ( gui? ( =dev-games/cegui-0.6* ) ) sasl? ( dev-libs/cyrus-sasl ) - smartcard? ( >=app-emulation/libcacard-0.1.2 )" + smartcard? ( >=app-emulation/libcacard-0.1.2 ) + tunnel? ( net-libs/slirp )" DEPEND="virtual/pkgconfig ${RDEPEND}" -# maintainer notes: -# * opengl support is currently broken -# * TODO: add slirp for tunnel-support - src_prepare() { epatch \ "${FILESDIR}/0.10.1-disable-werror.patch" \ @@ -50,12 +49,12 @@ use client || gui="--disable-gui" econf \ $(use_enable static-libs static) \ - --disable-tunnel \ ${gui} \ $(use_enable client) \ $(use_enable static static-linkage) \ $(use_with sasl) \ - $(use_enable smartcard) + $(use_enable smartcard) \ + $(use_enable tunnel) } src_install() {
Please talk to upstream about building spice completely without X. Just removing the deps doesn't help and I do not have time to patch the build system.