From 197ac3fdcca03837ed77451b1b8b2e2b29c22eb4 Mon Sep 17 00:00:00 2001 From: Maxim Koltsov Date: Thu, 15 Dec 2011 20:04:03 +0000 Subject: Update leechcraft eclass to new filename suffix --- eclass/ChangeLog | 5 ++++- eclass/leechcraft.eclass | 12 +++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/eclass/ChangeLog b/eclass/ChangeLog index d6f1ab4d84cb..b2e76bbd607e 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.43 2011/12/14 19:57:20 tetromino Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.44 2011/12/15 20:04:03 maksbotan Exp $ + + 15 Dec 2011; Maxim Koltsov leechcraft.eclass: + Update leechcraft eclass to new filename suffix 14 Dec 2011; Alexandre Rostovtsev gnome2-utils.eclass, gnome2.eclass: diff --git a/eclass/leechcraft.eclass b/eclass/leechcraft.eclass index 8567105cc8f0..c4e83a281486 100644 --- a/eclass/leechcraft.eclass +++ b/eclass/leechcraft.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.2 2011/08/22 18:20:34 maksbotan Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.3 2011/12/15 20:04:03 maksbotan Exp $ # # @ECLASS: leechcraft.eclass # @MAINTAINER: @@ -27,7 +27,7 @@ case ${EAPI:-0} in *) die "Unknown EAPI, bug eclass maintainers" ;; esac -inherit cmake-utils +inherit cmake-utils versionator if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="git://github.com/0xd34df00d/leechcraft.git" @@ -35,7 +35,13 @@ if [[ ${PV} == 9999 ]]; then inherit git-2 else - SRC_URI="mirror://sourceforge/leechcraft/leechcraft-${PV}.tar.bz2" + local suffix + if version_is_at_least 0.4.95; then + suffix="xz" + else + suffix="bz2" + fi + SRC_URI="mirror://sourceforge/leechcraft/leechcraft-${PV}.tar.${suffix}" S="${WORKDIR}/leechcraft-${PV}" fi -- cgit v1.2.3-65-gdbad