xezat 0.3.1 → 0.4.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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -16
  3. data/lib/xezat/bashvar.rb +15 -0
  4. data/lib/xezat/command/generate.rb +9 -0
  5. data/lib/xezat/command/validate.rb +4 -2
  6. data/lib/xezat/detector/asciidoc.rb +1 -1
  7. data/lib/xezat/detector/autoconf-archive.rb +27 -0
  8. data/lib/xezat/detector/autoconf.rb +1 -1
  9. data/lib/xezat/detector/automake.rb +1 -1
  10. data/lib/xezat/detector/boost.m4.rb +1 -1
  11. data/lib/xezat/detector/cmake.rb +1 -1
  12. data/lib/xezat/detector/docbook2X.rb +1 -1
  13. data/lib/xezat/detector/font-util.rb +20 -0
  14. data/lib/xezat/detector/gengetopt.rb +1 -1
  15. data/lib/xezat/detector/gettext-devel.rb +2 -2
  16. data/lib/xezat/detector/gnulib.rb +1 -1
  17. data/lib/xezat/detector/gobject-introspection.rb +1 -1
  18. data/lib/xezat/detector/halibut.rb +1 -1
  19. data/lib/xezat/detector/libQt5Core-devel.rb +1 -1
  20. data/lib/xezat/detector/libtool.rb +1 -1
  21. data/lib/xezat/detector/make.rb +1 -1
  22. data/lib/xezat/detector/meson.rb +1 -1
  23. data/lib/xezat/detector/nasm.rb +1 -1
  24. data/lib/xezat/detector/ninja.rb +1 -1
  25. data/lib/xezat/detector/python27.rb +1 -1
  26. data/lib/xezat/detector/python36.rb +1 -1
  27. data/lib/xezat/detector/python37.rb +1 -1
  28. data/lib/xezat/detector/python38.rb +1 -1
  29. data/lib/xezat/detector/python39-docutils.rb +2 -2
  30. data/lib/xezat/detector/python39.rb +1 -1
  31. data/lib/xezat/detector/roundup.rb +1 -1
  32. data/lib/xezat/detector/waf.rb +1 -1
  33. data/lib/xezat/detector/xorg-util-macros.rb +20 -0
  34. data/lib/xezat/detectors.rb +1 -1
  35. data/lib/xezat/generator/cmake.rb +44 -0
  36. data/lib/xezat/generator/pkgconfig.rb +5 -7
  37. data/lib/xezat/generator.rb +6 -0
  38. data/lib/xezat/main.rb +1 -0
  39. data/lib/xezat/variables.rb +4 -29
  40. data/lib/xezat/version.rb +1 -1
  41. data/lib/xezat.rb +10 -1
  42. data/share/xezat/autoconf-archive.yml +583 -0
  43. data/share/xezat/bashvar.sh +8 -0
  44. data/share/xezat/template/README.erb +1 -0
  45. data/share/xezat/template/cmake/cmake.erb +22 -0
  46. data/xezat.gemspec +32 -11
  47. metadata +57 -35
  48. data/.fasterer.yml +0 -6
  49. data/.github/workflows/ruby.yml +0 -45
  50. data/.gitignore +0 -11
  51. data/.gitmodules +0 -3
  52. data/.rspec +0 -2
  53. data/.rubocop.yml +0 -36
  54. data/.ruby-version +0 -1
  55. data/Gemfile +0 -8
  56. data/Rakefile +0 -8
  57. data/bin/console +0 -15
  58. data/bin/setup +0 -8
  59. data/share/xezat/var2yaml.sh +0 -32
  60. /data/share/xezat/template/{Makefile.am → pkgconfig/Makefile.am} +0 -0
  61. /data/share/xezat/template/{cmake.erb → pkgconfig/cmake.erb} +0 -0
  62. /data/share/xezat/template/{pkgconfig.erb → pkgconfig/pkgconfig.erb} +0 -0
metadata CHANGED
@@ -1,15 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xezat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daisuke Fujimura (fd0)
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2023-12-27 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: bashvar
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 0.1.1
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: 0.1.1
26
+ - !ruby/object:Gem::Dependency
27
+ name: colorize
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.1.0
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 1.1.0
13
40
  - !ruby/object:Gem::Dependency
14
41
  name: facets
15
42
  requirement: !ruby/object:Gem::Requirement
@@ -30,42 +57,42 @@ dependencies:
30
57
  requirements:
31
58
  - - ">="
32
59
  - !ruby/object:Gem::Version
33
- version: 7.28.0
60
+ version: 9.1.0
34
61
  type: :runtime
35
62
  prerelease: false
36
63
  version_requirements: !ruby/object:Gem::Requirement
37
64
  requirements:
38
65
  - - ">="
39
66
  - !ruby/object:Gem::Version
40
- version: 7.28.0
67
+ version: 9.1.0
41
68
  - !ruby/object:Gem::Dependency
42
69
  name: pkg-config
43
70
  requirement: !ruby/object:Gem::Requirement
44
71
  requirements:
45
72
  - - ">="
46
73
  - !ruby/object:Gem::Version
47
- version: 1.5.6
74
+ version: 1.6.1
48
75
  type: :runtime
49
76
  prerelease: false
50
77
  version_requirements: !ruby/object:Gem::Requirement
51
78
  requirements:
52
79
  - - ">="
53
80
  - !ruby/object:Gem::Version
54
- version: 1.5.6
81
+ version: 1.6.1
55
82
  - !ruby/object:Gem::Dependency
56
83
  name: spdx
57
84
  requirement: !ruby/object:Gem::Requirement
58
85
  requirements:
59
86
  - - ">="
60
87
  - !ruby/object:Gem::Version
61
- version: 4.1.3
88
+ version: 4.1.5
62
89
  type: :runtime
63
90
  prerelease: false
64
91
  version_requirements: !ruby/object:Gem::Requirement
65
92
  requirements:
66
93
  - - ">="
67
94
  - !ruby/object:Gem::Version
68
- version: 4.1.3
95
+ version: 4.1.5
69
96
  - !ruby/object:Gem::Dependency
70
97
  name: thor
71
98
  requirement: !ruby/object:Gem::Requirement
@@ -142,56 +169,56 @@ dependencies:
142
169
  requirements:
143
170
  - - ">="
144
171
  - !ruby/object:Gem::Version
145
- version: 3.12.0
172
+ version: 3.13.1
146
173
  type: :development
147
174
  prerelease: false
148
175
  version_requirements: !ruby/object:Gem::Requirement
149
176
  requirements:
150
177
  - - ">="
151
178
  - !ruby/object:Gem::Version
152
- version: 3.12.0
179
+ version: 3.13.1
153
180
  - !ruby/object:Gem::Dependency
154
181
  name: rubocop
155
182
  requirement: !ruby/object:Gem::Requirement
156
183
  requirements:
157
184
  - - ">="
158
185
  - !ruby/object:Gem::Version
159
- version: 1.59.0
186
+ version: 1.79.1
160
187
  type: :development
161
188
  prerelease: false
162
189
  version_requirements: !ruby/object:Gem::Requirement
163
190
  requirements:
164
191
  - - ">="
165
192
  - !ruby/object:Gem::Version
166
- version: 1.59.0
193
+ version: 1.79.1
167
194
  - !ruby/object:Gem::Dependency
168
195
  name: rubocop-performance
169
196
  requirement: !ruby/object:Gem::Requirement
170
197
  requirements:
171
198
  - - ">="
172
199
  - !ruby/object:Gem::Version
173
- version: 1.20.1
200
+ version: 1.25.0
174
201
  type: :development
175
202
  prerelease: false
176
203
  version_requirements: !ruby/object:Gem::Requirement
177
204
  requirements:
178
205
  - - ">="
179
206
  - !ruby/object:Gem::Version
180
- version: 1.20.1
207
+ version: 1.25.0
181
208
  - !ruby/object:Gem::Dependency
182
209
  name: simplecov-cobertura
183
210
  requirement: !ruby/object:Gem::Requirement
184
211
  requirements:
185
212
  - - ">="
186
213
  - !ruby/object:Gem::Version
187
- version: 2.1.0
214
+ version: 3.0.0
188
215
  type: :development
189
216
  prerelease: false
190
217
  version_requirements: !ruby/object:Gem::Requirement
191
218
  requirements:
192
219
  - - ">="
193
220
  - !ruby/object:Gem::Version
194
- version: 2.1.0
221
+ version: 3.0.0
195
222
  description: xezat helps you win at cygport.
196
223
  email:
197
224
  - booleanlabel@gmail.com
@@ -200,21 +227,11 @@ executables:
200
227
  extensions: []
201
228
  extra_rdoc_files: []
202
229
  files:
203
- - ".fasterer.yml"
204
- - ".github/workflows/ruby.yml"
205
- - ".gitignore"
206
- - ".gitmodules"
207
- - ".rspec"
208
- - ".rubocop.yml"
209
- - ".ruby-version"
210
- - Gemfile
211
230
  - LICENSE.txt
212
231
  - README.md
213
- - Rakefile
214
- - bin/console
215
- - bin/setup
216
232
  - exe/xezat
217
233
  - lib/xezat.rb
234
+ - lib/xezat/bashvar.rb
218
235
  - lib/xezat/command/announce.rb
219
236
  - lib/xezat/command/bump.rb
220
237
  - lib/xezat/command/bump/changelog.rb
@@ -242,11 +259,13 @@ files:
242
259
  - lib/xezat/debugger/linguist.rb
243
260
  - lib/xezat/debugger/variable.rb
244
261
  - lib/xezat/detector/asciidoc.rb
262
+ - lib/xezat/detector/autoconf-archive.rb
245
263
  - lib/xezat/detector/autoconf.rb
246
264
  - lib/xezat/detector/automake.rb
247
265
  - lib/xezat/detector/boost.m4.rb
248
266
  - lib/xezat/detector/cmake.rb
249
267
  - lib/xezat/detector/docbook2X.rb
268
+ - lib/xezat/detector/font-util.rb
250
269
  - lib/xezat/detector/gengetopt.rb
251
270
  - lib/xezat/detector/gettext-devel.rb
252
271
  - lib/xezat/detector/gnulib.rb
@@ -266,14 +285,19 @@ files:
266
285
  - lib/xezat/detector/python39.rb
267
286
  - lib/xezat/detector/roundup.rb
268
287
  - lib/xezat/detector/waf.rb
288
+ - lib/xezat/detector/xorg-util-macros.rb
269
289
  - lib/xezat/detectors.rb
270
290
  - lib/xezat/ext/linguist/file_blob.rb
271
291
  - lib/xezat/ext/string.rb
292
+ - lib/xezat/generator.rb
293
+ - lib/xezat/generator/cmake.rb
272
294
  - lib/xezat/generator/pkgconfig.rb
273
295
  - lib/xezat/main.rb
274
296
  - lib/xezat/packages.rb
275
297
  - lib/xezat/variables.rb
276
298
  - lib/xezat/version.rb
299
+ - share/xezat/autoconf-archive.yml
300
+ - share/xezat/bashvar.sh
277
301
  - share/xezat/categories.yaml
278
302
  - share/xezat/compilers.yaml
279
303
  - share/xezat/cygport_dep.sh
@@ -283,20 +307,19 @@ files:
283
307
  - share/xezat/repository/gnu.yaml
284
308
  - share/xezat/repository/savannah.yaml
285
309
  - share/xezat/repository/sourceforge.yaml
286
- - share/xezat/template/Makefile.am
287
310
  - share/xezat/template/README.erb
288
311
  - share/xezat/template/announce.erb
289
- - share/xezat/template/cmake.erb
312
+ - share/xezat/template/cmake/cmake.erb
290
313
  - share/xezat/template/cygport.erb
291
- - share/xezat/template/pkgconfig.erb
292
- - share/xezat/var2yaml.sh
314
+ - share/xezat/template/pkgconfig/Makefile.am
315
+ - share/xezat/template/pkgconfig/cmake.erb
316
+ - share/xezat/template/pkgconfig/pkgconfig.erb
293
317
  - xezat.gemspec
294
318
  homepage: https://github.com/fd00/xezat
295
319
  licenses:
296
320
  - MIT
297
321
  metadata:
298
322
  rubygems_mfa_required: 'true'
299
- post_install_message:
300
323
  rdoc_options: []
301
324
  require_paths:
302
325
  - lib
@@ -311,8 +334,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
334
  - !ruby/object:Gem::Version
312
335
  version: '0'
313
336
  requirements: []
314
- rubygems_version: 3.4.10
315
- signing_key:
337
+ rubygems_version: 3.6.9
316
338
  specification_version: 4
317
339
  summary: xezat helps you win at cygport.
318
340
  test_files: []
data/.fasterer.yml DELETED
@@ -1,6 +0,0 @@
1
- speedups:
2
- sort_vs_sort_by: false
3
-
4
- exclude_paths:
5
- - 'spec/**/*.rb'
6
- - 'vendor/**/*.rb'
@@ -1,45 +0,0 @@
1
- # This workflow uses actions that are not certified by GitHub.
2
- # They are provided by a third-party and are governed by
3
- # separate terms of service, privacy policy, and support
4
- # documentation.
5
- # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
- # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
-
8
- name: Ruby
9
-
10
- on:
11
- push:
12
- branches: [ "master" ]
13
- pull_request:
14
- branches: [ "master" ]
15
-
16
- jobs:
17
- test:
18
- runs-on: ubuntu-latest
19
- steps:
20
- - uses: actions/checkout@v3
21
- with:
22
- submodules: true
23
- - name: Install native libraries
24
- run: sudo apt-get install cmake libicu-dev
25
- - name: Set up Ruby
26
- uses: ruby/setup-ruby@v1
27
- with:
28
- ruby-version: '3.2.2' # Not needed with a .ruby-version file
29
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
30
- - name: Run rubocop
31
- run: bundle exec rubocop --format simple
32
- - name: Run fasterer
33
- run: bundle exec fasterer
34
- - name: Run tests
35
- run: bundle exec rspec
36
- - name: Formatting coverage results
37
- uses: 5monkeys/cobertura-action@master
38
- with:
39
- path: tmp/coverage/coverage.xml
40
- minimum_coverage: 75
41
- show_branch: true
42
- show_missing: true
43
- show_class_names: true
44
- link_missing_lines: true
45
- report_name: code coverage results
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /Gemfile.lock
3
- /coverage/
4
- /doc/
5
- /pkg/
6
- /spec/reports/
7
- /tmp/
8
- /vendor/
9
-
10
- # rspec failure tracking
11
- # .rspec_status
data/.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "spec/cygport"]
2
- path = spec/cygport
3
- url = https://github.com/cygwinports/cygport.git
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.rubocop.yml DELETED
@@ -1,36 +0,0 @@
1
- require: rubocop-performance
2
-
3
- AllCops:
4
- NewCops: enable
5
- SuggestExtensions: false
6
- TargetRubyVersion: 3.2
7
- Exclude:
8
- - 'spec/cygport/**/*'
9
- - 'vendor/**/*'
10
-
11
- Gemspec/DevelopmentDependencies:
12
- EnforcedStyle: gemspec
13
-
14
- Layout/LineLength:
15
- Max: 160
16
-
17
- Metrics/AbcSize:
18
- Max: 45
19
- Metrics/BlockLength:
20
- Exclude:
21
- - '*.gemspec'
22
- - 'spec/**/*'
23
- Metrics/CyclomaticComplexity:
24
- Max: 10
25
- Metrics/MethodLength:
26
- Max: 35
27
- Metrics/ParameterLists:
28
- Max: 8
29
- Metrics/PerceivedComplexity:
30
- Max: 12
31
-
32
- Naming/FileName:
33
- Enabled: false
34
-
35
- Style/Documentation:
36
- Enabled: false
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.2.2
data/Gemfile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
-
7
- # Specify your gem's dependencies in xezat.gemspec
8
- gemspec
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'xezat'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,32 +0,0 @@
1
- #!/bin/bash
2
-
3
- var2yaml()
4
- {
5
- for var in `compgen -A variable`
6
- do
7
- [ $var = 'BASH_COMMAND' ] && continue
8
- [ $var = 'COMP_WORDBREAKS' ] && continue
9
- [ $var = 'HOMEPATH' ] && continue
10
- [ $var = 'PERL_MB_OPT' ] && continue
11
- [ $var = 'PSModulePath' ] && continue
12
- [[ ${!var} =~ ^[A-Za-z]:.* ]] && continue
13
-
14
- echo -n :$var:
15
- if [[ `declare -p $var` =~ "declare -a" ]]
16
- then
17
- echo
18
- x=`printf '${!%s[@]}' $var`
19
- eval "keys=$x"
20
- for key in $keys
21
- do
22
- x=`printf '${%s[%s]}' $var $key`
23
- eval "value=$x"
24
- echo " -" '"'$value'"'
25
- done
26
- else
27
- echo ' "'`echo "${!var}" | sed -e "s/\\n/ /g"`'"'
28
- fi
29
- done
30
- }
31
-
32
- source ${CYGPORT:-/usr/bin/cygport} $* var2yaml