| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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/kde4-functions.eclass,v 1.55 2011/07/08 11:35:01 ssuominen Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.56 2011/08/22 04:46:32 vapier Exp $ |
| 4 | |
4 | |
| 5 | inherit versionator |
5 | inherit versionator |
| 6 | |
6 | |
| 7 | # @ECLASS: kde4-functions.eclass |
7 | # @ECLASS: kde4-functions.eclass |
| 8 | # @MAINTAINER: |
8 | # @MAINTAINER: |
| … | |
… | |
| 470 | |
470 | |
| 471 | popd > /dev/null |
471 | popd > /dev/null |
| 472 | } |
472 | } |
| 473 | |
473 | |
| 474 | # @FUNCTION: get_kde_version |
474 | # @FUNCTION: get_kde_version |
|
|
475 | # @DESCRIPTION: |
| 475 | # Translates an ebuild version into a major.minor KDE SC |
476 | # Translates an ebuild version into a major.minor KDE SC |
| 476 | # release version. If no version is specified, ${PV} is used. |
477 | # release version. If no version is specified, ${PV} is used. |
| 477 | get_kde_version() { |
478 | get_kde_version() { |
| 478 | local ver=${1:-${PV}} |
479 | local ver=${1:-${PV}} |
| 479 | local major=$(get_major_version ${ver}) |
480 | local major=$(get_major_version ${ver}) |