1 | # Copyright 1999-2014 Gentoo Foundation |
1 | # Copyright 1999-2014 Gentoo Foundation |
2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.13 2014/04/14 15:45:16 maksbotan Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.15 2014/05/03 21:25:46 pinkbyte Exp $ |
4 | # |
4 | # |
5 | # @ECLASS: leechcraft.eclass |
5 | # @ECLASS: leechcraft.eclass |
6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
7 | # leechcraft@gentoo.org |
7 | # leechcraft@gentoo.org |
8 | # @AUTHOR: |
8 | # @AUTHOR: |
… | |
… | |
40 | http://dist.leechcraft.org/LeechCraft/${PV}/leechcraft-${PV}.tar.xz" |
40 | http://dist.leechcraft.org/LeechCraft/${PV}/leechcraft-${PV}.tar.xz" |
41 | S="${WORKDIR}/leechcraft-${PV}" |
41 | S="${WORKDIR}/leechcraft-${PV}" |
42 | fi |
42 | fi |
43 | |
43 | |
44 | HOMEPAGE="http://leechcraft.org/" |
44 | HOMEPAGE="http://leechcraft.org/" |
45 | if version_is_at_least 0.5.95; then |
|
|
46 | LICENSE="Boost-1.0" |
45 | LICENSE="Boost-1.0" |
47 | else |
|
|
48 | LICENSE="GPL-3" |
|
|
49 | fi |
|
|
50 | |
46 | |
51 | # @ECLASS-VARIABLE: LEECHCRAFT_PLUGIN_CATEGORY |
47 | # @ECLASS-VARIABLE: LEECHCRAFT_PLUGIN_CATEGORY |
52 | # @DEFAULT_UNSET |
48 | # @DEFAULT_UNSET |
53 | # @DESCRIPTION: |
49 | # @DESCRIPTION: |
54 | # Set this to the category of the plugin, if any. |
50 | # Set this to the category of the plugin, if any. |
… | |
… | |
70 | # if it is not satisfied at least to minimal version, |
66 | # if it is not satisfied at least to minimal version, |
71 | # supported by upstream developers |
67 | # supported by upstream developers |
72 | leechcraft_pkg_pretend() { |
68 | leechcraft_pkg_pretend() { |
73 | debug-print-function ${FUNCNAME} "$@" |
69 | debug-print-function ${FUNCNAME} "$@" |
74 | |
70 | |
75 | if version_is_at_least 0.5.85; then |
|
|
76 | # 0.5.85 and later requires at least gcc 4.6 |
71 | # 0.5.85 and later requires at least gcc 4.6 |
77 | if [[ ${MERGE_TYPE} != binary ]]; then |
72 | if [[ ${MERGE_TYPE} != binary ]]; then |
78 | [[ $(gcc-major-version) -lt 4 ]] || \ |
73 | [[ $(gcc-major-version) -lt 4 ]] || \ |
79 | ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \ |
74 | ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \ |
80 | && die "Sorry, but gcc 4.6 or higher is required." |
75 | && die "Sorry, but gcc 4.6 or higher is required." |
81 | fi |
|
|
82 | fi |
76 | fi |
83 | if version_is_at_least 0.6.66 || ( [[ ${PN} == lc-monocle ]] && version_is_at_least 0.6.65 ); then |
77 | if version_is_at_least 0.6.66 || ( [[ ${PN} == lc-monocle ]] && version_is_at_least 0.6.65 ); then |
84 | echo "lalalalala" |
|
|
85 | # 0.6.65 monocle and all later plugins require at least gcc 4.8 |
78 | # 0.6.65 monocle and all later plugins require at least gcc 4.8 |
86 | if [[ ${MERGE_TYPE} != binary ]]; then |
79 | if [[ ${MERGE_TYPE} != binary ]]; then |
87 | [[ $(gcc-major-version) -lt 4 ]] || \ |
80 | [[ $(gcc-major-version) -lt 4 ]] || \ |
88 | ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]] ) \ |
81 | ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]] ) \ |
89 | && die "Sorry, but gcc 4.8 or higher is required." |
82 | && die "Sorry, but gcc 4.8 or higher is required." |