# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit git-2 scons-utils

DESCRIPTION="Xmpp library in c++"
HOMEPAGE="http://swift.im/swiften/"
SRC_URI=""
EGIT_REPO_URI="http://swift.im/git/swift"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

# S="${WORKDIR}/swift/Swiften"

DEPEND="dev-libs/boost"
RDEPEND="dev-libs/boost"

src_configure() {
	myesconsargs=(
		swiften_dll=1		# build dynamic
	)
}

src_compile() {
	pwd
	escons Swiften
}

src_install() {
	escons SWIFTEN_INSTALLDIR="${D}/usr" Swiften "${D}/usr"
}
