From: Fabian Groffen Date: Sat, 27 Oct 2007 20:35:38 +0000 (-0000) Subject: Add --with-eapi to be used by prefix for setting it to "prefix", X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4cee486904087f85b7886e3e5d71e7807d259c41;p=portage.git Add --with-eapi to be used by prefix for setting it to "prefix", defaulting to 1, the current value the trunk uses. svn path=/main/branches/prefix/; revision=8322 --- diff --git a/configure.in b/configure.in index cca0e438d..6311c7b0e 100644 --- a/configure.in +++ b/configure.in @@ -199,6 +199,11 @@ AC_HELP_STRING([--with-offset-prefix], [DOMAIN_PREFIX=$withval], [DOMAIN_PREFIX='']) +AC_ARG_WITH(eapi, +AC_HELP_STRING([--with-eapi], [specify what eapi to use (default 1)]), +[SUPPORTED_EAPI=$withval], +[SUPPORTED_EAPI=1]) + DEFAULT_PATH="${DOMAIN_PREFIX}/usr/bin:${DOMAIN_PREFIX}/usr/sbin:${DOMAIN_PREFIX}/bin:${DOMAIN_PREFIX}/sbin:${prefix}/bin" AC_ARG_WITH(default-path, AC_HELP_STRING([--with-default-path], [specify additional PATHs available to the portage build environment ]), @@ -220,6 +225,7 @@ AC_SUBST(rootuser) AC_SUBST(rootuid) AC_SUBST(rootgid) AC_SUBST(DOMAIN_PREFIX) +AC_SUBST(SUPPORTED_EAPI) AC_SUBST(DEFAULT_PATH) AC_SUBST(PORTAGE_BASE,['${exec_prefix}/lib/portage']) AM_CONDITIONAL(INSTALL_PYTHON_SOURCES, test x$enable_py_sources = xtrue) diff --git a/pym/portage/const.py b/pym/portage/const.py index 708eb7177..306d47122 100644 --- a/pym/portage/const.py +++ b/pym/portage/const.py @@ -67,7 +67,7 @@ INCREMENTALS = ["USE", "USE_EXPAND", "USE_EXPAND_HIDDEN", "FEATURES", EBUILD_PHASES = ["setup", "unpack", "compile", "test", "install", "preinst", "postinst", "prerm", "postrm", "other"] -EAPI = "prefix" +EAPI = @SUPPORTED_EAPI@ HASHING_BLOCKSIZE = 32768 MANIFEST1_HASH_FUNCTIONS = ["MD5","SHA256","RMD160"]