diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-08-11 10:11:58 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-11 01:19:35 -0700 |
commit | ca288e594b1160157c9743250422973d30587f0a (patch) | |
tree | c45c3fbceb7fa6a77b91151abcdc2862cf44f5eb /pym/portage/eapi.py | |
parent | ddd207ef7fd6b57f464bd9f2d8890eb7dbd9f0d4 (diff) | |
download | portage-ca288e594b1160157c9743250422973d30587f0a.tar.gz portage-ca288e594b1160157c9743250422973d30587f0a.tar.bz2 portage-ca288e594b1160157c9743250422973d30587f0a.zip |
Introduce portage.eapi. Use it everywhere.
Diffstat (limited to 'pym/portage/eapi.py')
-rw-r--r-- | pym/portage/eapi.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pym/portage/eapi.py b/pym/portage/eapi.py new file mode 100644 index 000000000..9f3394379 --- /dev/null +++ b/pym/portage/eapi.py @@ -0,0 +1,41 @@ +# Copyright 2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +def eapi_has_iuse_defaults(eapi): + return eapi != "0" + +def eapi_has_slot_deps(eapi): + return eapi != "0" + +def eapi_has_src_uri_arrows(eapi): + return eapi not in ("0", "1") + +def eapi_has_use_deps(eapi): + return eapi not in ("0", "1") + +def eapi_has_strong_blocks(eapi): + return eapi not in ("0", "1") + +def eapi_has_src_prepare_and_src_configure(eapi): + return eapi not in ("0", "1") + +def eapi_supports_prefix(eapi): + return eapi not in ("0", "1", "2") + +def eapi_exports_AA(eapi): + return eapi in ("0", "1", "2", "3") + +def eapi_exports_KV(eapi): + return eapi in ("0", "1", "2", "3") + +def eapi_exports_replace_vars(eapi): + return eapi not in ("0", "1", "2", "3") + +def eapi_has_pkg_pretend(eapi): + return eapi not in ("0", "1", "2", "3") + +def eapi_has_implicit_rdepend(eapi): + return eapi in ("0", "1", "2", "3") + +def eapi_has_dosed_dohard(eapi): + return eapi in ("0", "1", "2", "3") |