diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2013-05-08 10:25:48 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2013-05-08 10:25:48 +0000 |
commit | 1797d6b11c88b0cfa91855f810e9e787cef69c20 (patch) | |
tree | 3b0b24eb7cde9e31bb962722994dae4e5c6c555c /eclass/leechcraft.eclass | |
parent | Version bump. (diff) | |
download | historical-1797d6b11c88b0cfa91855f810e9e787cef69c20.tar.gz historical-1797d6b11c88b0cfa91855f810e9e787cef69c20.tar.bz2 historical-1797d6b11c88b0cfa91855f810e9e787cef69c20.zip |
Restict supported EAPIs(due to pkg_pretend), some logic cleanup
Diffstat (limited to 'eclass/leechcraft.eclass')
-rw-r--r-- | eclass/leechcraft.eclass | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/eclass/leechcraft.eclass b/eclass/leechcraft.eclass index 1f535dfca2f2..cad3f3047295 100644 --- a/eclass/leechcraft.eclass +++ b/eclass/leechcraft.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.9 2013/04/30 07:51:24 pinkbyte Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.10 2013/05/08 10:25:48 pinkbyte Exp $ # # @ECLASS: leechcraft.eclass # @MAINTAINER: @@ -22,8 +22,8 @@ # Only EAPI >1 supported case ${EAPI:-0} in - 2|3|4|5) ;; - 0|1) die "EAPI not supported, bug ebuild mantainer" ;; + 4|5) ;; + 0|1|2|3) die "EAPI not supported, bug ebuild mantainer" ;; *) die "Unknown EAPI, bug eclass maintainers" ;; esac @@ -35,14 +35,8 @@ if [[ ${PV} == 9999 ]]; then inherit git-2 else - local suffix - if version_is_at_least 0.4.95; then - DEPEND="app-arch/xz-utils" - suffix="xz" - else - suffix="bz2" - fi - SRC_URI="mirror://sourceforge/leechcraft/leechcraft-${PV}.tar.${suffix}" + DEPEND="app-arch/xz-utils" + SRC_URI="mirror://sourceforge/leechcraft/leechcraft-${PV}.tar.xz" S="${WORKDIR}/leechcraft-${PV}" fi |