xezat 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb4e15ff6a5eab549ec2a89d711b6d81ec7a4e05656ecf59524cc472746dfe6c
4
- data.tar.gz: 3f2c68eee2a3699adb2c2796bac9a988708bd8395b3e83f4ecd449b09e768c1b
3
+ metadata.gz: 631c0baddcd33f64246b3f98a73a979d523c1c8115803baf3006a70346779b71
4
+ data.tar.gz: 930b2a86f48ddad910120670ebbc4b75c9e34acddff350dd99023d3c6838b003
5
5
  SHA512:
6
- metadata.gz: 1750d00392ebe3232b98098803aee8ea6d45f661de0c754e63b3ee4ee149fe9fd9e6309015c7645f2e4936a26c09110139a84da41f46d9416c25c8b5978c8497
7
- data.tar.gz: 508ef5825975aa6bbaa48c58d9b7f957215f190c4747f73ccdec88f6d93d09bf0fca26c24049910d14cf505aae99e4f16472c5f313eb5f8b3b2d59dbf908184c
6
+ metadata.gz: e536d5924cb08642b47743742c314c595887a212e87927ca9d080f1aa52997d5c25dcbb930202e031fe2289f08a24fdfb39cfe71d2e4253d6d97933f75ad9108
7
+ data.tar.gz: 9aae07b58ecfc7e87dc4e274ceadf9772d8c0a06161448bd2e74173c72fcc4fef103e02d4ed83c3073c5b17db15aec86e290daad7b5719ddd01b49ad7f82be4f
@@ -27,7 +27,7 @@ module Xezat
27
27
  def resolve_pseudo(pkg, pkgs)
28
28
  case pkg
29
29
  when /^python3\s*/
30
- pkgs[:python39]
30
+ pkgs[:python3]
31
31
  when /^perl5_0\d{2}$/
32
32
  pkgs[:perl_base]
33
33
  when /^ruby_\d{2}$/
@@ -4,7 +4,7 @@ require 'find'
4
4
 
5
5
  module Xezat
6
6
  module Detector
7
- class Python39Docutils
7
+ class Python3Docutils
8
8
  def detect?(variables)
9
9
  Find.find(variables[:S]) do |file|
10
10
  next unless file.end_with?("#{File::SEPARATOR}configure.ac", "#{File::SEPARATOR}configure.in")
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'find'
4
+
5
+ module Xezat
6
+ module Detector
7
+ class Python3
8
+ def detect?(variables)
9
+ return true if Dir.glob(File.join(variables[:D], 'usr', 'lib', 'python3.*')).any? { |dir| File.directory?(dir) }
10
+
11
+ Find.find(variables[:D]) do |file|
12
+ next unless file.end_with?('.py')
13
+
14
+ first_line = File.readlines(file).first
15
+ return true if %r{^#!\s*/usr/bin/env\s*python(3(\.\d+)?)?\s*$}.match?(first_line)
16
+ return true if %r{^#!\s*/usr/bin/python(3(\.\d+)?)?\s*$}.match?(first_line)
17
+ end
18
+ false
19
+ end
20
+ end
21
+ end
22
+ end
@@ -27,10 +27,6 @@ module Xezat
27
27
  Xezat.logger.debug(" #{name} ... no")
28
28
  end
29
29
  end
30
- if tools.include?(:python27) && (tools.include?(:python36) || tools.include?(:python37))
31
- Xezat.logger.debug(' Remove python27 because of detecting python3x')
32
- tools.delete(:python27)
33
- end
34
30
  if tools.include?(:libtool) && tools.include?(:cmake)
35
31
  Xezat.logger.debug(' Remove libtool because of detecting cmake')
36
32
  tools.delete(:libtool)
data/lib/xezat/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xezat
4
- VERSION = '0.5.0'
4
+ VERSION = '0.6.0'
5
5
  end
@@ -22,8 +22,8 @@ Fortran Free Form:
22
22
  - gcc-core
23
23
  Lex:
24
24
  package: flex
25
- Lua:
26
- package: lua
25
+ #Lua:
26
+ # package: lua
27
27
  #Objective-C:
28
28
  # package: gcc-objc
29
29
  # dependencies:
@@ -34,11 +34,11 @@ Lua:
34
34
  # dependencies:
35
35
  # - binutils
36
36
  # - gcc-core
37
- Protocol Buffer:
38
- package: libprotobuf-devel
39
- Ragel:
40
- package: ragel
41
- Vala:
42
- package: vala
37
+ #Protocol Buffer:
38
+ # package: libprotobuf-devel
39
+ #Ragel:
40
+ # package: ragel
41
+ #Vala:
42
+ # package: vala
43
43
  Yacc:
44
44
  package: bison
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xezat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daisuke Fujimura (fd0)
@@ -295,12 +295,8 @@ files:
295
295
  - lib/xezat/detector/meson.rb
296
296
  - lib/xezat/detector/nasm.rb
297
297
  - lib/xezat/detector/ninja.rb
298
- - lib/xezat/detector/python27.rb
299
- - lib/xezat/detector/python36.rb
300
- - lib/xezat/detector/python37.rb
301
- - lib/xezat/detector/python38.rb
302
- - lib/xezat/detector/python39-docutils.rb
303
- - lib/xezat/detector/python39.rb
298
+ - lib/xezat/detector/python3-docutils.rb
299
+ - lib/xezat/detector/python3.rb
304
300
  - lib/xezat/detector/roundup.rb
305
301
  - lib/xezat/detector/waf.rb
306
302
  - lib/xezat/detector/xorg-util-macros.rb
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'find'
4
-
5
- module Xezat
6
- module Detector
7
- class Python27
8
- def detect?(variables)
9
- return true if File.directory?(File.join(variables[:D], 'usr', 'lib', 'python2.7'))
10
-
11
- Find.find(variables[:D]) do |file|
12
- next unless file.end_with?('.py')
13
-
14
- first_line = File.readlines(file).first
15
- return true if %r{^#!\s*/usr/bin/env\s*python2\s*$}.match?(first_line)
16
- return true if %r{^#!\s*/usr/bin/env\s*python2.7\s*$}.match?(first_line)
17
- return true if %r{^#!\s*/usr/bin/python2\s*$}.match?(first_line)
18
- return true if %r{^#!\s*/usr/bin/python2.7\s*$}.match?(first_line)
19
- end
20
- false
21
- end
22
- end
23
- end
24
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'find'
4
-
5
- module Xezat
6
- module Detector
7
- class Python36
8
- def detect?(variables)
9
- return true if File.directory?(File.join(variables[:D], 'usr', 'lib', 'python3.6'))
10
-
11
- Find.find(variables[:D]) do |file|
12
- next unless file.end_with?('.py')
13
-
14
- first_line = File.readlines(file).first
15
- return true if %r{^#!\s*/usr/bin/env\s*python3.6\s*$}.match?(first_line)
16
- return true if %r{^#!\s*/usr/bin/python3.6\s*$}.match?(first_line)
17
- end
18
- false
19
- end
20
- end
21
- end
22
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'find'
4
-
5
- module Xezat
6
- module Detector
7
- class Python37
8
- def detect?(variables)
9
- return true if File.directory?(File.join(variables[:D], 'usr', 'lib', 'python3.7'))
10
-
11
- Find.find(variables[:D]) do |file|
12
- next unless file.end_with?('.py')
13
-
14
- first_line = File.readlines(file).first
15
- return true if %r{^#!\s*/usr/bin/env\s*python3.7\s*$}.match?(first_line)
16
- return true if %r{^#!\s*/usr/bin/python3.7\s*$}.match?(first_line)
17
- end
18
- false
19
- end
20
- end
21
- end
22
- end
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'find'
4
-
5
- module Xezat
6
- module Detector
7
- class Python38
8
- def detect?(variables)
9
- return true if File.directory?(File.join(variables[:D], 'usr', 'lib', 'python3.8'))
10
-
11
- Find.find(variables[:D]) do |file|
12
- next unless file.end_with?('.py')
13
-
14
- first_line = File.readlines(file).first
15
- return true if %r{^#!\s*/usr/bin/env\s*python3.8\s*$}.match?(first_line)
16
- return true if %r{^#!\s*/usr/bin/python3.8\s*$}.match?(first_line)
17
- end
18
- false
19
- end
20
- end
21
- end
22
- end
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'find'
4
-
5
- module Xezat
6
- module Detector
7
- class Python39
8
- def detect?(variables)
9
- return true if File.directory?(File.join(variables[:D], 'usr', 'lib', 'python3.9'))
10
-
11
- Find.find(variables[:D]) do |file|
12
- next unless file.end_with?('.py')
13
-
14
- first_line = File.readlines(file).first
15
- return true if %r{^#!\s*/usr/bin/env\s*python\s*$}.match?(first_line)
16
- return true if %r{^#!\s*/usr/bin/env\s*python3\s*$}.match?(first_line)
17
- return true if %r{^#!\s*/usr/bin/env\s*python3.9\s*$}.match?(first_line)
18
- return true if %r{^#!\s*/usr/bin/python\s*$}.match?(first_line)
19
- return true if %r{^#!\s*/usr/bin/python3\s*$}.match?(first_line)
20
- return true if %r{^#!\s*/usr/bin/python3.9\s*$}.match?(first_line)
21
- end
22
- false
23
- end
24
- end
25
- end
26
- end