summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2014-05-03 21:25:46 +0000
committerSergey Popov <pinkbyte@gentoo.org>2014-05-03 21:25:46 +0000
commit7714a5b5d69c9494a64f915f3a110f458f9758c1 (patch)
tree052803fb17ae47bbcbef16fe7e0c795a550bb82d /eclass/leechcraft.eclass
parentppc64 stable wrt bug #502362 (diff)
downloadhistorical-7714a5b5d69c9494a64f915f3a110f458f9758c1.tar.gz
historical-7714a5b5d69c9494a64f915f3a110f458f9758c1.tar.bz2
historical-7714a5b5d69c9494a64f915f3a110f458f9758c1.zip
Omit some obsolete version checks
Diffstat (limited to 'eclass/leechcraft.eclass')
-rw-r--r--eclass/leechcraft.eclass20
1 files changed, 7 insertions, 13 deletions
diff --git a/eclass/leechcraft.eclass b/eclass/leechcraft.eclass
index 55508f82eaed..829dc0c7717d 100644
--- a/eclass/leechcraft.eclass
+++ b/eclass/leechcraft.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.14 2014/04/15 16:06:56 maksbotan Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.15 2014/05/03 21:25:46 pinkbyte Exp $
#
# @ECLASS: leechcraft.eclass
# @MAINTAINER:
@@ -42,11 +42,7 @@ else
fi
HOMEPAGE="http://leechcraft.org/"
-if version_is_at_least 0.5.95; then
- LICENSE="Boost-1.0"
-else
- LICENSE="GPL-3"
-fi
+LICENSE="Boost-1.0"
# @ECLASS-VARIABLE: LEECHCRAFT_PLUGIN_CATEGORY
# @DEFAULT_UNSET
@@ -72,13 +68,11 @@ EXPORT_FUNCTIONS "pkg_pretend"
leechcraft_pkg_pretend() {
debug-print-function ${FUNCNAME} "$@"
- if version_is_at_least 0.5.85; then
- # 0.5.85 and later requires at least gcc 4.6
- if [[ ${MERGE_TYPE} != binary ]]; then
- [[ $(gcc-major-version) -lt 4 ]] || \
- ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
- && die "Sorry, but gcc 4.6 or higher is required."
- fi
+ # 0.5.85 and later requires at least gcc 4.6
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ [[ $(gcc-major-version) -lt 4 ]] || \
+ ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
+ && die "Sorry, but gcc 4.6 or higher is required."
fi
if version_is_at_least 0.6.66 || ( [[ ${PN} == lc-monocle ]] && version_is_at_least 0.6.65 ); then
# 0.6.65 monocle and all later plugins require at least gcc 4.8