# ChangeLog for dev-libs/libmacaroons
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmacaroons/ChangeLog,v 1.1 2014/11/23 13:10:21 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmacaroons/ChangeLog,v 1.2 2014/11/23 13:30:44 patrick Exp $
+
+ 23 Nov 2014; Patrick Lauer <patrick@gentoo.org> libmacaroons-0.2.0.ebuild:
+ Add python bindings and test phase
*libmacaroons-0.2.0 (23 Nov 2014)
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmacaroons/libmacaroons-0.2.0.ebuild,v 1.1 2014/11/23 13:10:21 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmacaroons/libmacaroons-0.2.0.ebuild,v 1.2 2014/11/23 13:30:44 patrick Exp $
EAPI=5
-# depends on python bindings
-RESTRICT="test"
+PYTHON_COMPAT="python2_7"
-inherit eutils
+inherit eutils python-r1
DESCRIPTION="Hyperdex macaroons support library"
SLOT="0"
KEYWORDS="~amd64"
-IUSE=""
+IUSE="test +python"
RDEPEND="dev-libs/libsodium
dev-libs/json-c"
DEPEND="${RDEPEND}
virtual/pkgconfig"
+
+REQUIRED_USE="test? ( python )"
+
+src_configure() {
+ econf $(use_enable python python-bindings)
+}