diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2005-04-21 08:25:18 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2005-04-21 08:25:18 +0000 |
commit | a77d2a8d106e39791df49c1687ef252d3cc2883a (patch) | |
tree | c1ff5437fdb675644252ca4f06a49222dabcf252 /eclass/myth.eclass | |
parent | freee!!!!!!!! (tigger is the maintainer now) (diff) | |
download | gentoo-2-a77d2a8d106e39791df49c1687ef252d3cc2883a.tar.gz gentoo-2-a77d2a8d106e39791df49c1687ef252d3cc2883a.tar.bz2 gentoo-2-a77d2a8d106e39791df49c1687ef252d3cc2883a.zip |
version_is_at_least is buggy.
Diffstat (limited to 'eclass/myth.eclass')
-rw-r--r-- | eclass/myth.eclass | 14 |
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 |