changeset 39074:1618b48d6bd1

config: gnumake option support
author Dmitry Selyutin <ghostmansd@gmail.com>
date Sun, 03 Dec 2017 18:04:58 +0300
parents 2ed39bfde476
children 06477a8dfa45
files pygnulib/config.py
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pygnulib/config.py	Sun Dec 03 17:34:56 2017 +0300
+++ b/pygnulib/config.py	Sun Dec 03 18:04:58 2017 +0300
@@ -85,7 +85,8 @@
         Privileged = (1 << 4)
         Unportable = (1 << 5)
         Copyrights = (1 << 6)
-        AllTests = (Obsolete | Tests | CXX | Longrunning | Privileged | Unportable)
+        GNUMake = (1 << 7)
+        AllTests = (Obsolete | Tests | CXX | Longrunning | Privileged | Unportable | GNUMake)
 
 
     def __init__(self, **kwargs):
@@ -524,6 +525,20 @@
 
 
     @property
+    def gnumake(self):
+        """update the license copyright text"""
+        return bool(self.__table["options"] & Base._Option.GNUMake)
+
+    @gnumake.setter
+    def gnumake(self, value):
+        _type_assert("gnumake", value, bool)
+        if value:
+            self.__table["options"] |= Base._Option.GNUMake
+        else:
+            self.__table["options"] &= ~Base._Option.GNUMake
+
+
+    @property
     def copyrights(self):
         """update the license copyright text"""
         return bool(self.__table["options"] & Base._Option.Copyrights)