summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <fauli@gentoo.org>2010-04-15 09:01:03 +0000
committerChristian Faulhammer <fauli@gentoo.org>2010-04-15 09:01:03 +0000
commite4c2b8a1f5b40ce0518d07774f35bf66fc958596 (patch)
tree620d8a38e6977a4bd96222714b1ebde9ae26b57d /app-mobilephone/gammu
parentx86 stable, security bug 313003 (diff)
downloadgentoo-2-e4c2b8a1f5b40ce0518d07774f35bf66fc958596.tar.gz
gentoo-2-e4c2b8a1f5b40ce0518d07774f35bf66fc958596.tar.bz2
gentoo-2-e4c2b8a1f5b40ce0518d07774f35bf66fc958596.zip
make use of new python.eclass functions as filed in bug 311663
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'app-mobilephone/gammu')
-rw-r--r--app-mobilephone/gammu/ChangeLog5
-rw-r--r--app-mobilephone/gammu/gammu-1.27.0.ebuild11
2 files changed, 12 insertions, 4 deletions
diff --git a/app-mobilephone/gammu/ChangeLog b/app-mobilephone/gammu/ChangeLog
index a3d4b5f43616..44674309c867 100644
--- a/app-mobilephone/gammu/ChangeLog
+++ b/app-mobilephone/gammu/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-mobilephone/gammu
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/ChangeLog,v 1.80 2010/02/08 09:03:15 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/ChangeLog,v 1.81 2010/04/15 09:01:03 fauli Exp $
+
+ 15 Apr 2010; Christian Faulhammer <fauli@gentoo.org> gammu-1.27.0.ebuild:
+ make use of new python.eclass functions as filed in bug 311663
08 Feb 2010; Peter Volkov <pva@gentoo.org> gammu-1.25.0-r1.ebuild,
gammu-1.26.1-r1.ebuild, gammu-1.27.0.ebuild:
diff --git a/app-mobilephone/gammu/gammu-1.27.0.ebuild b/app-mobilephone/gammu/gammu-1.27.0.ebuild
index e0d973e634ce..47cfb25795df 100644
--- a/app-mobilephone/gammu/gammu-1.27.0.ebuild
+++ b/app-mobilephone/gammu/gammu-1.27.0.ebuild
@@ -1,9 +1,11 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/gammu-1.27.0.ebuild,v 1.2 2010/02/08 09:03:15 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/gammu-1.27.0.ebuild,v 1.3 2010/04/15 09:01:03 fauli Exp $
EAPI="2"
+PYTHON_DEPEND="python? 2"
+
inherit eutils cmake-utils distutils
DESCRIPTION="a fork of the gnokii project, a tool to handle your cellular phone"
@@ -22,7 +24,6 @@ RDEPEND="bluetooth? ( || ( net-wireless/bluez net-wireless/bluez-libs ) )
postgres? ( virtual/postgresql-server )
dbi? ( >=dev-db/libdbi-0.8.3 )
dev-util/dialog
- dev-lang/python
!dev-python/python-gammu" # needs to be removed from the tree
DEPEND="${RDEPEND}
irda? ( virtual/os-headers )
@@ -35,6 +36,10 @@ DEPEND="${RDEPEND}
MY_AVAILABLE_LINGUAS=" af bg ca cs da de el es et fi fr gl he hu id it ko nl pl pt_BR ru sk sv sw zh_CN zh_TW"
IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
+pkg_setup() {
+ python_set_active_version 2
+}
+
src_prepare() {
epatch "${FILESDIR}"/${PN}-skip-locktest.patch
@@ -69,7 +74,7 @@ src_configure() {
$(cmake-utils_use_with nls Iconv) \
-DBUILD_SHARED_LIBS=ON -DINSTALL_DOC_DIR=share/doc/${PF}"
if use python; then
- mycmakeargs="${mycmakeargs} -DBUILD_PYTHON=/usr/bin/python"
+ mycmakeargs="${mycmakeargs} -DBUILD_PYTHON=$(PYTHON -a)"
fi
cmake-utils_src_configure
}