commit: 2ce98a1d441f9d60cc2be967c94926743155a8e6
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 8 05:07:54 2014 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Mon Dec 8 05:07:58 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=2ce98a1d
setup.py: Adds support for sync-plugin-portage USE flag
Due to portage soon being able to support layman's sync plugin,
changes have been added to the package's setup.py to support the
installation of the sync plugin if the proper USE flag has been
given.
---
setup.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/setup.py b/setup.py
index d57316c..8a815eb 100755
--- a/setup.py
+++ b/setup.py
@@ -26,6 +26,10 @@ SELECTABLE = {
use_defaults = ' '.join(list(SELECTABLE))
+SYNC_PLUGINS = {
+ 'sync-plugin-portage': 'layman.laymanator',
+}
+
# get the USE from the environment, default to all selectable modules
# split them so we don't get substring matches
USE = os.environ.get("USE", use_defaults).split()
@@ -40,6 +44,9 @@ for mod in sorted(SELECTABLE):
if mod in USE:
modules.append('layman.overlays.modules.%s' % SELECTABLE[mod])
+for plugin in sorted(SYNC_PLUGINS):
+ if plugin in USE:
+ modules.append(SYNC_PLUGIN)
setup(name = 'layman',
version = VERSION,