# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils cmake-utils git-2 EGIT_REPO_URI="git://git.process-one.net/oneteam/oneteam.git" EGIT_COMMIT="v${PV}" EGIT_SOURCEDIR="${WORKDIR}/${P}" DESCRIPTION="Enterprise multi-network instant messaging client" HOMEPAGE="http://oneteam.im/" LICENSE="|| ( GPL-2 MPL-1.1 )" SLOT="0" KEYWORDS="~amd64" IUSE="" RDEPEND="net-libs/xulrunner dev-libs/nspr dev-libs/glib:2 x11-libs/gtk+:2 media-sound/pulseaudio x11-libs/libXScrnSaver x11-libs/libX11" DEPEND="${DEPEND} dev-util/pkgconfig" S="${WORKDIR}/${P}/src/components" src_prepare() { sed -i cmake/FindXPCOM.cmake \ -e 's:${XPCOM_GECKO_SDK}/host/bin:${XPCOM_GECKO_SDK}/bin:' \ || die sed -i CMakeLists.txt \ -e "/^INCLUDE_DIRECTORIES(/a \ `pkg-config --variable=includedir nspr`" \ || die } src_configure() { export GECKO_SDK=`pkg-config --variable=sdkdir libxul` cmake-utils_src_configure }