diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-09-09 06:44:23 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-09-09 06:44:23 +0000 |
commit | a620d0fada988a14a3f1954d30f190d1f54800c4 (patch) | |
tree | d1422af368867abc6c44df33dd56003613a96671 /app-mobilephone | |
parent | Added ~ppc/~ppc64 for bug #189692. (diff) | |
download | gentoo-2-a620d0fada988a14a3f1954d30f190d1f54800c4.tar.gz gentoo-2-a620d0fada988a14a3f1954d30f190d1f54800c4.tar.bz2 gentoo-2-a620d0fada988a14a3f1954d30f190d1f54800c4.zip |
Fix bluetooth dependencies (#191670). Allow usage of all suitable wxpython versions.
(Portage version: 2.1.2.12)
Diffstat (limited to 'app-mobilephone')
-rw-r--r-- | app-mobilephone/wammu/ChangeLog | 10 | ||||
-rw-r--r-- | app-mobilephone/wammu/files/digest-wammu-0.21-r2 (renamed from app-mobilephone/wammu/files/digest-wammu-0.21-r1) | 0 | ||||
-rw-r--r-- | app-mobilephone/wammu/files/wammu-wxversion.patch (renamed from app-mobilephone/wammu/files/wammu-wxversion-2.6.patch) | 2 | ||||
-rw-r--r-- | app-mobilephone/wammu/wammu-0.21-r2.ebuild (renamed from app-mobilephone/wammu/wammu-0.21-r1.ebuild) | 35 |
4 files changed, 38 insertions, 9 deletions
diff --git a/app-mobilephone/wammu/ChangeLog b/app-mobilephone/wammu/ChangeLog index 70889f9a2bb7..458f7de5ed13 100644 --- a/app-mobilephone/wammu/ChangeLog +++ b/app-mobilephone/wammu/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-mobilephone/wammu # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/wammu/ChangeLog,v 1.23 2007/09/06 10:28:04 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/wammu/ChangeLog,v 1.24 2007/09/09 06:44:22 mrness Exp $ + +*wammu-0.21-r2 (09 Sep 2007) + + 09 Sep 2007; Alin Năstac <mrness@gentoo.org> + -files/wammu-wxversion-2.6.patch, +files/wammu-wxversion.patch, + -wammu-0.21-r1.ebuild, +wammu-0.21-r2.ebuild: + Fix bluetooth dependencies (#191670). Allow usage of all suitable wxpython + versions. *wammu-0.21-r1 (06 Sep 2007) diff --git a/app-mobilephone/wammu/files/digest-wammu-0.21-r1 b/app-mobilephone/wammu/files/digest-wammu-0.21-r2 index 50804bdebaef..50804bdebaef 100644 --- a/app-mobilephone/wammu/files/digest-wammu-0.21-r1 +++ b/app-mobilephone/wammu/files/digest-wammu-0.21-r2 diff --git a/app-mobilephone/wammu/files/wammu-wxversion-2.6.patch b/app-mobilephone/wammu/files/wammu-wxversion.patch index 6c3f4057fb87..3f9265e9234c 100644 --- a/app-mobilephone/wammu/files/wammu-wxversion-2.6.patch +++ b/app-mobilephone/wammu/files/wammu-wxversion.patch @@ -5,7 +5,7 @@ ''' +import wxversion -+wxversion.select("2.6") ++wxversion.select([WXPYTHON_VER]) import os import sys import getopt diff --git a/app-mobilephone/wammu/wammu-0.21-r1.ebuild b/app-mobilephone/wammu/wammu-0.21-r2.ebuild index 2c55aeeabe80..6503af264cdf 100644 --- a/app-mobilephone/wammu/wammu-0.21-r1.ebuild +++ b/app-mobilephone/wammu/wammu-0.21-r2.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/wammu/wammu-0.21-r1.ebuild,v 1.1 2007/09/06 10:28:04 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/wammu/wammu-0.21-r2.ebuild,v 1.1 2007/09/09 06:44:22 mrness Exp $ -inherit distutils eutils +inherit distutils eutils versionator DESCRIPTION="front-end for gammu (Nokia and other mobiles)" HOMEPAGE="http://www.cihar.com/gammu/wammu/" @@ -13,12 +13,13 @@ SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="bluetooth" -#gnome-bluetooth is used for additional functionality - see bug #101067 RDEPEND=">=dev-python/wxpython-2.6.3.3 >=dev-python/python-gammu-0.22 bluetooth? ( - dev-python/pybluez - net-wireless/gnome-bluetooth + || ( + dev-python/pybluez + net-wireless/gnome-bluetooth + ) )" DEPEND="${RDEPEND}" @@ -30,9 +31,29 @@ IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" src_unpack() { unpack ${A} - # Select wxpython 2.6 in case there are others available + # Select the suitable wxpython versions + local wxpy_pkg wxpy_slot MY_WXPYTHON_SLOTS + for wxpy_pkg in $(portageq match ${ROOT} '>=dev-python/wxpython-2.6.3.3'); do + if built_with_use --hidden --missing false =${wxpy_pkg} unicode ; then + wxpy_slot=$(get_version_component_range 1-2 ${wxpy_pkg#*/*-}) + if [ -z "${MY_WXPYTHON_SLOTS}" ]; then + MY_WXPYTHON_SLOTS="'${wxpy_slot}'" + else + MY_WXPYTHON_SLOTS="${MY_WXPYTHON_SLOTS}, '${wxpy_slot}'" + fi + fi + done + if [ -z "${MY_WXPYTHON_SLOTS}" ]; then + eerror "None of the dev-python/wxpython installed versions have been built with Unicode support." + eerror "Install wxpython with unicode USE flag enabled and try again." + die "dev-python/wxpython is missing Unicode support" + fi + cd "${S}" - epatch "${FILESDIR}"/${PN}-wxversion-2.6.patch + sed -e "s/WXPYTHON_VER/${MY_WXPYTHON_SLOTS}/" \ + "${FILESDIR}"/${PN}-wxversion.patch \ + > "${T}"/${PN}-wxversion.patch + epatch "${T}"/${PN}-wxversion.patch cd locale || die "locale directory not found" local lang |