From 3082162095b944388a5b6942135a8d6326cb89d9 Mon Sep 17 00:00:00 2001 From: André Erdmann Date: Sat, 23 Aug 2014 19:50:46 +0200 Subject: set default EAPI=5 and make it configurable SLOTted dependency rules allow to use EAPI 5 features, so default to 5. --- roverlay/config/const.py | 2 +- roverlay/config/defconfig.py | 4 ++++ roverlay/config/entrymap.py | 11 +++++------ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/roverlay/config/const.py b/roverlay/config/const.py index 0933689..046268b 100644 --- a/roverlay/config/const.py +++ b/roverlay/config/const.py @@ -49,7 +49,7 @@ _CONSTANTS = dict ( '# $Header: $\n' ).format ( year=time.gmtime()[0] ), # EAPI=N and inherit are no longer part of the default header - eapi = 4, + eapi = 5, # number of workers used by OverlayCreator # when 0 => dont use threads diff --git a/roverlay/config/defconfig.py b/roverlay/config/defconfig.py index 383bb96..145905f 100644 --- a/roverlay/config/defconfig.py +++ b/roverlay/config/defconfig.py @@ -425,6 +425,10 @@ class RoverlayConfigCreation ( object ): 'NOSYNC', 'yes', required=False, comment_default=True, defaults_to="no", ), + ConfigOption ( + 'EBUILD_EAPI', '5', required=False, comment_default=True, + defaults_to="5", + ), ConfigOption ( 'MANIFEST_IMPLEMENTATION', 'ebuild', required=False, use_default_desc=False, comment_default=True, defaults_to="next", diff --git a/roverlay/config/entrymap.py b/roverlay/config/entrymap.py index 46c2f7f..3e188b3 100644 --- a/roverlay/config/entrymap.py +++ b/roverlay/config/entrymap.py @@ -366,11 +366,10 @@ CONFIG_ENTRY_MAP = dict ( # == ebuild == - ebuild_eapi = None, -# ebuild_eapi = dict ( -# description = "EAPI of the created ebuilds", -# value_type = str, -# ), + ebuild_eapi = dict ( + description = "EAPI of the created ebuilds", + value_type = str, + ), ebuild_use_expand_desc = dict ( path = [ 'EBUILD', 'USE_EXPAND', 'desc_file', ], @@ -394,7 +393,7 @@ CONFIG_ENTRY_MAP = dict ( ), # * alias - #eapi = 'ebuild_eapi', + eapi = 'ebuild_eapi', use_expand_desc = 'ebuild_use_expand_desc', use_expand_name = 'ebuild_use_expand_name', use_expand_rename = 'ebuild_use_expand_rename', -- cgit v1.2.3-65-gdbad