Add python bindings and test phase
authorPatrick Lauer <patrick@gentoo.org>
Sun, 23 Nov 2014 13:30:44 +0000 (13:30 +0000)
committerPatrick Lauer <patrick@gentoo.org>
Sun, 23 Nov 2014 13:30:44 +0000 (13:30 +0000)
Package-Manager: portage-2.2.14/cvs/Linux x86_64

dev-libs/libmacaroons/ChangeLog
dev-libs/libmacaroons/libmacaroons-0.2.0.ebuild

index 452cfcc31a3b40b451a379e74b36154fe6d06073..203694cc33e2c57eb4ab6acae701dfeb616b1a7a 100644 (file)
@@ -1,6 +1,9 @@
 # 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)
 
index 421083f6159959a473ec511091ea7723199b1d23..0e0783dea2e70edd34e9b0afabba07f2c248b697 100644 (file)
@@ -1,13 +1,12 @@
 # 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"
 
@@ -17,9 +16,15 @@ LICENSE="BSD"
 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)
+}