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 +4 -4
- data/lib/xezat/command/bump/runtime_package.rb +1 -1
- data/lib/xezat/detector/{python39-docutils.rb → python3-docutils.rb} +1 -1
- data/lib/xezat/detector/python3.rb +22 -0
- data/lib/xezat/detectors.rb +0 -4
- data/lib/xezat/version.rb +1 -1
- data/share/xezat/compilers.yaml +8 -8
- metadata +3 -7
- data/lib/xezat/detector/python27.rb +0 -24
- data/lib/xezat/detector/python36.rb +0 -22
- data/lib/xezat/detector/python37.rb +0 -22
- data/lib/xezat/detector/python38.rb +0 -22
- data/lib/xezat/detector/python39.rb +0 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 631c0baddcd33f64246b3f98a73a979d523c1c8115803baf3006a70346779b71
|
|
4
|
+
data.tar.gz: 930b2a86f48ddad910120670ebbc4b75c9e34acddff350dd99023d3c6838b003
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e536d5924cb08642b47743742c314c595887a212e87927ca9d080f1aa52997d5c25dcbb930202e031fe2289f08a24fdfb39cfe71d2e4253d6d97933f75ad9108
|
|
7
|
+
data.tar.gz: 9aae07b58ecfc7e87dc4e274ceadf9772d8c0a06161448bd2e74173c72fcc4fef103e02d4ed83c3073c5b17db15aec86e290daad7b5719ddd01b49ad7f82be4f
|
|
@@ -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
|
data/lib/xezat/detectors.rb
CHANGED
|
@@ -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
data/share/xezat/compilers.yaml
CHANGED
|
@@ -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.
|
|
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/
|
|
299
|
-
- lib/xezat/detector/
|
|
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
|