summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-04-21 08:25:18 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-04-21 08:25:18 +0000
commit759dc2c60444fe09cc9d81250466d578a4669430 (patch)
treed17d63e806fbcd527aac8abeca0be01ef2529e14 /eclass/myth.eclass
parentfreee!!!!!!!! (tigger is the maintainer now) (diff)
downloadhistorical-759dc2c60444fe09cc9d81250466d578a4669430.tar.gz
historical-759dc2c60444fe09cc9d81250466d578a4669430.tar.bz2
historical-759dc2c60444fe09cc9d81250466d578a4669430.zip
version_is_at_least is buggy.
Diffstat (limited to 'eclass/myth.eclass')
-rw-r--r--eclass/myth.eclass14
1 files changed, 9 insertions, 5 deletions
diff --git a/eclass/myth.eclass b/eclass/myth.eclass
index a50a1bce7e00..70cc7b1b7b58 100644
--- a/eclass/myth.eclass
+++ b/eclass/myth.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/myth.eclass,v 1.10 2005/04/18 07:37:39 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/myth.eclass,v 1.11 2005/04/21 08:25:18 eradicator Exp $
#
# Author: Daniel Ahlberg <aliz@gentoo.org>
#
@@ -15,12 +15,16 @@ EXPORT_FUNCTIONS src_unpack src_compile src_install
MYTHPLUGINS="mythbrowser mythdvd mythgallery mythgame mythmusic mythnews mythphone mythvideo mythweather mythweb"
-if version_is_at_least 0.18 && hasq ${PN} ${MYTHPLUGINS} ; then
+atleast_0.18() {
+ [[ $(get_version_component_range 1) > 0 || $(get_version_component_range 2) > 17 ]]
+}
+
+if atleast_0.18 && hasq ${PN} ${MYTHPLUGINS} ; then
S="${WORKDIR}/mythplugins-${PV}"
fi
myth_src_unpack() {
- if version_is_at_least 0.18 && hasq ${PN} ${MYTHPLUGINS} ; then
+ if atleast_0.18 && hasq ${PN} ${MYTHPLUGINS} ; then
pkg_pro="mythplugins.pro"
elif [ "${PN}" == "mythfrontend" ]; then
pkg_pro="mythtv.pro"
@@ -58,7 +62,7 @@ myth_src_unpack() {
myth_src_compile() {
export QMAKESPEC="linux-g++"
- if version_is_at_least 0.18 ; then
+ if atleast_0.18 ; then
if hasq ${PN} ${MYTHPLUGINS} ; then
for x in ${MYTHPLUGINS} ; do
if [[ ${PN} == ${x} ]] ; then
@@ -77,7 +81,7 @@ myth_src_compile() {
}
myth_src_install() {
- if version_is_at_least 0.18 && hasq ${PN} ${MYTHPLUGINS} ; then
+ if atleast_0.18 && hasq ${PN} ${MYTHPLUGINS} ; then
cd ${S}/${PN}
fi