Commits

Moises Henriquez committed 76e7f59

Added support for automake (no configure builds) from the GUI

  • Participants
  • Parent commits 36112bc

Comments (0)

Files changed (2)

src/vpackager/guitools.py

 
         lSrcType = gtk.Label('Source Type')
         types = gtk.ListStore(str)
-        for _type in ('Auto','Autotools','Python','CMake','Perl','Waf'):
+        for _type in ('Auto','Autotools', 'Automake (no configure)',
+                      'Python','CMake','Perl','Waf'):
             types.append([_type])
         cbsrcsel = gtk.ComboBox(types)
         self.srcTypeSel = cbsrcsel
         selected = widget.get_model()[widget.get_active()][0].lower()
         if selected in ('auto', 'autotools'):
             self.srctype = 'default'
+        elif selected == 'automake (no configure)':
+            self.srctype = 'default --no-configure'
         else:
             self.srctype = selected
 

src/vpackager/viewcontrollers.py

         _type = cur_details['type']
         if _type == 'autotools':
             _typeid = 1
+        elif _type == 'default --no-configure':
+            _typeid = 2
         elif _type == 'python':
-            _typeid = 2
+            _typeid = 3
         elif _type == 'cmake':
-            _typeid = 3
+            _typeid = 4
         elif _type == 'perl':
-            _typeid = 4
+            _typeid = 5
         elif _type == 'waf':
-            _typeid = 5
+            _typeid = 6
         else:
             _typeid = 0
         # Set the dropbox value to the determined source type
         _type = info['type']
         if _type == 'autotools':
             _typeid = 1
+        elif _type == 'default --no-configure':
+            _typeid = 2
         elif _type == 'python':
-            _typeid = 2
+            _typeid = 3
         elif _type == 'cmake':
-            _typeid = 3
+            _typeid = 4
         elif _type == 'perl':
-            _typeid = 4
+            _typeid = 5
         elif _type == 'waf':
-            _typeid = 5
+            _typeid = 6
         else:
             _typeid = 0
         # Set the dropbox value to the determined source type
                 release = dia.release,
                 _type = dia.srctype,
                 install = dia.install,
-		doinstURI = dia.doinstURI,
-		config_options = dia.config_options,
+                doinstURI = dia.doinstURI,
+                config_options = dia.config_options,
                 patches = ','.join(dia.patches))
         else:
             ret = None