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

Contents of /eclass/leechcraft.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Thu Sep 27 16:35:41 2012 UTC (2 years ago) by axs
Branch: MAIN
Changes since 1.5: +2 -2 lines
naive bump of all EAPI-specific checks in eclasses to permit EAPI=5 where EAPI=4 was previously allowed

1 vapier 1.5 # Copyright 1999-2012 Gentoo Foundation
2 maksbotan 1.1 # Distributed under the terms of the GNU General Public License v2
3 axs 1.6 # $Header: /var/cvsroot/gentoo-x86/eclass/leechcraft.eclass,v 1.5 2012/07/17 04:29:05 vapier Exp $
4 maksbotan 1.1 #
5     # @ECLASS: leechcraft.eclass
6     # @MAINTAINER:
7 maksbotan 1.2 # leechcraft@gentoo.org
8 maksbotan 1.1 # @AUTHOR:
9     # 0xd34df00d@gmail.com
10     # NightNord@niifaq.ru
11 vapier 1.5 # @BLURB: Common functions and setup utilities for the LeechCraft app
12 maksbotan 1.1 # @DESCRIPTION:
13     # The leechcraft eclass contains a common set of functions and steps
14     # needed to build LeechCraft core or its plugins.
15     #
16     # Though this eclass seems to be small at the moment, it seems like a
17     # good idea to make all plugins inherit from it, since all plugins
18     # have mostly the same configuring/build process.
19     #
20     # Thanks for original eclass to Andrian Nord <NightNord@niifaq.ru>.
21     #
22     # Only EAPI >1 supported
23    
24     case ${EAPI:-0} in
25 axs 1.6 2|3|4|5) ;;
26 maksbotan 1.1 0|1) die "EAPI not supported, bug ebuild mantainer" ;;
27     *) die "Unknown EAPI, bug eclass maintainers" ;;
28     esac
29    
30 maksbotan 1.3 inherit cmake-utils versionator
31 maksbotan 1.1
32     if [[ ${PV} == 9999 ]]; then
33     EGIT_REPO_URI="git://github.com/0xd34df00d/leechcraft.git"
34     EGIT_PROJECT="leechcraft"
35    
36     inherit git-2
37     else
38 maksbotan 1.3 local suffix
39     if version_is_at_least 0.4.95; then
40 maksbotan 1.4 DEPEND="app-arch/xz-utils"
41 maksbotan 1.3 suffix="xz"
42     else
43     suffix="bz2"
44     fi
45     SRC_URI="mirror://sourceforge/leechcraft/leechcraft-${PV}.tar.${suffix}"
46 maksbotan 1.1 S="${WORKDIR}/leechcraft-${PV}"
47     fi
48    
49     HOMEPAGE="http://leechcraft.org/"
50     LICENSE="GPL-3"
51    
52     # @ECLASS-VARIABLE: LEECHCRAFT_PLUGIN_CATEGORY
53     # @DEFAULT_UNSET
54     # @DESCRIPTION:
55     # Set this to the category of the plugin, if any.
56     : ${LEECHCRAFT_PLUGIN_CATEGORY:=}
57    
58     if [[ "${LEECHCRAFT_PLUGIN_CATEGORY}" ]]; then
59     CMAKE_USE_DIR="${S}"/src/plugins/${LEECHCRAFT_PLUGIN_CATEGORY}/${PN#leechcraft-}
60     elif [[ ${PN} != leechcraft-core ]]; then
61     CMAKE_USE_DIR="${S}"/src/plugins/${PN#leechcraft-}
62     else
63     CMAKE_USE_DIR="${S}"/src
64     fi

  ViewVC Help
Powered by ViewVC 1.1.20