Add --with-eapi to be used by prefix for setting it to "prefix",
authorFabian Groffen <grobian@gentoo.org>
Sat, 27 Oct 2007 20:35:38 +0000 (20:35 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sat, 27 Oct 2007 20:35:38 +0000 (20:35 -0000)
defaulting to 1, the current value the trunk uses.

svn path=/main/branches/prefix/; revision=8322

configure.in
pym/portage/const.py

index cca0e438d5e5674c973d1a069edb28a6bdfd8fea..6311c7b0e2f5aeecef014850edd1b78275163459 100644 (file)
@@ -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)
index 708eb71773d9eb740e6830c0b88491417130866e..306d471222703a52a9829f32267099a7f3564a02 100644 (file)
@@ -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"]