/[gentoo-x86]/eclass/leechcraft.eclass
Gentoo

Diff of /eclass/leechcraft.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.5
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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.2 2011/08/22 18:20:34 maksbotan Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.5 2012/07/17 04:29:05 vapier Exp $
4# 4#
5# @ECLASS: leechcraft.eclass 5# @ECLASS: leechcraft.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# leechcraft@gentoo.org 7# leechcraft@gentoo.org
8# @BLURB: Common functions and setup utilities for the LeechCraft app
9# @AUTHOR: 8# @AUTHOR:
10# 0xd34df00d@gmail.com 9# 0xd34df00d@gmail.com
11# NightNord@niifaq.ru 10# NightNord@niifaq.ru
11# @BLURB: Common functions and setup utilities for the LeechCraft app
12# @DESCRIPTION: 12# @DESCRIPTION:
13# The leechcraft eclass contains a common set of functions and steps 13# The leechcraft eclass contains a common set of functions and steps
14# needed to build LeechCraft core or its plugins. 14# needed to build LeechCraft core or its plugins.
15# 15#
16# Though this eclass seems to be small at the moment, it seems like a 16# Though this eclass seems to be small at the moment, it seems like a
25 4|3|2) ;; 25 4|3|2) ;;
26 0|1) die "EAPI not supported, bug ebuild mantainer" ;; 26 0|1) die "EAPI not supported, bug ebuild mantainer" ;;
27 *) die "Unknown EAPI, bug eclass maintainers" ;; 27 *) die "Unknown EAPI, bug eclass maintainers" ;;
28esac 28esac
29 29
30inherit cmake-utils 30inherit cmake-utils versionator
31 31
32if [[ ${PV} == 9999 ]]; then 32if [[ ${PV} == 9999 ]]; then
33 EGIT_REPO_URI="git://github.com/0xd34df00d/leechcraft.git" 33 EGIT_REPO_URI="git://github.com/0xd34df00d/leechcraft.git"
34 EGIT_PROJECT="leechcraft" 34 EGIT_PROJECT="leechcraft"
35 35
36 inherit git-2 36 inherit git-2
37else 37else
38 local suffix
39 if version_is_at_least 0.4.95; then
40 DEPEND="app-arch/xz-utils"
41 suffix="xz"
42 else
43 suffix="bz2"
44 fi
38 SRC_URI="mirror://sourceforge/leechcraft/leechcraft-${PV}.tar.bz2" 45 SRC_URI="mirror://sourceforge/leechcraft/leechcraft-${PV}.tar.${suffix}"
39 S="${WORKDIR}/leechcraft-${PV}" 46 S="${WORKDIR}/leechcraft-${PV}"
40fi 47fi
41 48
42HOMEPAGE="http://leechcraft.org/" 49HOMEPAGE="http://leechcraft.org/"
43LICENSE="GPL-3" 50LICENSE="GPL-3"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20