aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-08-11 10:11:58 +0200
committerZac Medico <zmedico@gentoo.org>2010-08-11 01:19:35 -0700
commitca288e594b1160157c9743250422973d30587f0a (patch)
treec45c3fbceb7fa6a77b91151abcdc2862cf44f5eb /pym/portage/eapi.py
parentportage/dbapi/{bintree.py,porttree.py}: Remove deprecated stuff in all places (diff)
downloadportage-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.py41
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")