xezat 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -5
  3. data/.gitmodules +3 -3
  4. data/.rspec +2 -0
  5. data/.travis.yml +5 -3
  6. data/Gemfile +3 -1
  7. data/LICENSE.txt +17 -18
  8. data/README.md +9 -236
  9. data/Rakefile +4 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/exe/xezat +16 -0
  13. data/lib/xezat.rb +9 -5
  14. data/lib/xezat/command/bump.rb +89 -110
  15. data/lib/xezat/command/debug.rb +13 -20
  16. data/lib/xezat/command/doctor.rb +9 -19
  17. data/lib/xezat/command/generate.rb +7 -111
  18. data/lib/xezat/command/init.rb +77 -0
  19. data/lib/xezat/command/port.rb +25 -44
  20. data/lib/xezat/config.rb +14 -0
  21. data/lib/xezat/cygchangelog.rb +7 -6
  22. data/lib/xezat/cygclasses.rb +10 -15
  23. data/lib/xezat/cygversion.rb +2 -3
  24. data/lib/xezat/debugger/linguist.rb +31 -0
  25. data/lib/xezat/debugger/variable.rb +18 -0
  26. data/lib/xezat/detector/autoconf.rb +1 -4
  27. data/lib/xezat/detector/automake.rb +1 -4
  28. data/lib/xezat/detector/boost.m4.rb +4 -8
  29. data/lib/xezat/detector/cmake.rb +2 -5
  30. data/lib/xezat/detector/gengetopt.rb +1 -4
  31. data/lib/xezat/detector/gnulib.rb +14 -0
  32. data/lib/xezat/detector/gobject-introspection.rb +2 -12
  33. data/lib/xezat/detector/halibut.rb +1 -4
  34. data/lib/xezat/detector/libQt5Core-devel.rb +1 -12
  35. data/lib/xezat/detector/libtool.rb +1 -4
  36. data/lib/xezat/detector/make.rb +4 -6
  37. data/lib/xezat/detector/meson.rb +9 -0
  38. data/lib/xezat/detector/ninja.rb +14 -0
  39. data/lib/xezat/detector/python-docutils.rb +4 -8
  40. data/lib/xezat/detector/roundup.rb +14 -0
  41. data/lib/xezat/detector/waf.rb +9 -0
  42. data/lib/xezat/detectors.rb +6 -23
  43. data/lib/xezat/ext/linguist/file_blob.rb +13 -0
  44. data/lib/xezat/generator/pkgconfig.rb +90 -0
  45. data/lib/xezat/main.rb +59 -9
  46. data/lib/xezat/packages.rb +8 -17
  47. data/lib/xezat/variables.rb +10 -37
  48. data/lib/xezat/version.rb +1 -1
  49. data/share/xezat/compilers.json +13 -1
  50. data/share/xezat/languages.json +12 -0
  51. data/share/xezat/repository/bitbucket.json +3 -3
  52. data/share/xezat/repository/github.json +3 -3
  53. data/share/xezat/repository/savannah.json +1 -1
  54. data/share/xezat/repository/sourceforge.json +1 -1
  55. data/share/xezat/template/cmake.erb +7 -0
  56. data/share/xezat/template/cygport.erb +12 -12
  57. data/share/xezat/template/pkgconfig.erb +1 -1
  58. data/xezat.gemspec +25 -21
  59. metadata +70 -171
  60. data/bin/xezat +0 -14
  61. data/lib/xezat/command/create.rb +0 -105
  62. data/lib/xezat/command/validate.rb +0 -43
  63. data/lib/xezat/commands.rb +0 -32
  64. data/lib/xezat/refine/linguist/file_blob.rb +0 -14
  65. data/lib/xezat/validator/m4.rb +0 -31
  66. data/lib/xezat/validator/pkgconfig.rb +0 -36
  67. data/lib/xezat/validators.rb +0 -38
  68. data/share/xezat/repository/google.json +0 -7
  69. data/share/xezat/show_cygport_description.sh +0 -8
  70. data/share/xezat/template/pkgconfig.cmake +0 -8
  71. data/share/xezat/template/setup.erb +0 -17
  72. data/test/test.rb +0 -25
  73. data/test/xezat/command/fixture/doctor/a.lst.gz +0 -0
  74. data/test/xezat/command/fixture/doctor/b1.lst.gz +0 -0
  75. data/test/xezat/command/fixture/doctor/b2.lst.gz +0 -0
  76. data/test/xezat/command/test_bump.rb +0 -25
  77. data/test/xezat/command/test_create.rb +0 -48
  78. data/test/xezat/command/test_doctor.rb +0 -17
  79. data/test/xezat/detector/fixture/autoconf/no/configure.scan +0 -1
  80. data/test/xezat/detector/fixture/autoconf/yes_root/configure.ac +0 -1
  81. data/test/xezat/detector/fixture/autoconf/yes_subdir/subdir/configure.ac +0 -1
  82. data/test/xezat/detector/fixture/automake/no/Makefile.in +0 -1
  83. data/test/xezat/detector/fixture/automake/yes_root/Makefile.am +0 -1
  84. data/test/xezat/detector/fixture/automake/yes_subdir/subdir/Makefile.am +0 -1
  85. data/test/xezat/detector/fixture/boost.m4/no/configure.ac +0 -1
  86. data/test/xezat/detector/fixture/boost.m4/yes/configure.ac +0 -1
  87. data/test/xezat/detector/fixture/cmake/no/CMakeList.txt +0 -1
  88. data/test/xezat/detector/fixture/cmake/yes_root/CMakeLists.txt +0 -1
  89. data/test/xezat/detector/fixture/cmake/yes_subdir/subdir/CMakeLists.txt +0 -1
  90. data/test/xezat/detector/fixture/gengetopt/no/xezat.log +0 -1
  91. data/test/xezat/detector/fixture/gengetopt/yes_root/xezat.ggo +0 -1
  92. data/test/xezat/detector/fixture/gengetopt/yes_subdir/subdir/xezat.ggo +0 -1
  93. data/test/xezat/detector/fixture/gobject-introspection/no/configure.ac +0 -1
  94. data/test/xezat/detector/fixture/gobject-introspection/yes/configure.ac +0 -1
  95. data/test/xezat/detector/fixture/halibut/no/halibut.txt +0 -1
  96. data/test/xezat/detector/fixture/halibut/yes_root/halibut.but +0 -1
  97. data/test/xezat/detector/fixture/halibut/yes_subdir/subdir/halibut.but +0 -1
  98. data/test/xezat/detector/fixture/libQt5Core-devel/no/foo.cygport +0 -1
  99. data/test/xezat/detector/fixture/libQt5Core-devel/yes_cygport/foo.cygport +0 -1
  100. data/test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.cygport +0 -1
  101. data/test/xezat/detector/fixture/libQt5Core-devel/yes_dir/foo.pro +0 -1
  102. data/test/xezat/detector/fixture/python-docutils/no/configure.ac +0 -1
  103. data/test/xezat/detector/fixture/python-docutils/yes/configure.ac +0 -1
  104. data/test/xezat/detector/test_autoconf.rb +0 -24
  105. data/test/xezat/detector/test_automake.rb +0 -24
  106. data/test/xezat/detector/test_boost.m4.rb +0 -20
  107. data/test/xezat/detector/test_cmake.rb +0 -24
  108. data/test/xezat/detector/test_gengetopt.rb +0 -24
  109. data/test/xezat/detector/test_gobject-introspection.rb +0 -20
  110. data/test/xezat/detector/test_halibut.rb +0 -24
  111. data/test/xezat/detector/test_libQt5Core-devel.rb +0 -30
  112. data/test/xezat/detector/test_python-docutils.rb +0 -20
  113. data/test/xezat/test_cygchangelog.rb +0 -26
  114. data/test/xezat/test_cygclasses.rb +0 -32
  115. data/test/xezat/test_cygversion.rb +0 -47
  116. data/test/xezat/test_variables.rb +0 -16
  117. data/test/xezat/validator/fixture/m4/no/usr/share/aclocal/.gitkeep +0 -0
  118. data/test/xezat/validator/fixture/m4/yes/usr/share/aclocal/test.m4 +0 -1
  119. data/test/xezat/validator/fixture/pkgconfig/no_at/usr/lib/pkgconfig/xezat.pc +0 -11
  120. data/test/xezat/validator/fixture/pkgconfig/no_link/usr/lib/pkgconfig/xezat.pc +0 -11
  121. data/test/xezat/validator/fixture/pkgconfig/skip/usr/lib/pkgconfig/.gitkeep +0 -0
  122. data/test/xezat/validator/fixture/pkgconfig/yes/usr/lib/pkgconfig/xezat.pc +0 -10
  123. data/test/xezat/validator/test_m4.rb +0 -24
  124. data/test/xezat/validator/test_pkgconfig.rb +0 -31
@@ -1,11 +0,0 @@
1
- prefix=@prefix@
2
- exec_prefix=@exec_prefix@
3
- libdir=@libdir@
4
- includedir=@includedir@
5
-
6
- Name: xezat
7
- Description: Complement of cygport
8
- Version: @VERSION@
9
- Libs: -L${libdir} -lxezat
10
- Cflags: -I${includedir}
11
-
@@ -1,11 +0,0 @@
1
- prefix=/usr
2
- exec_prefix=/usr
3
- libdir=/usr/lib
4
- includedir=/usr/include
5
-
6
- Name: xezat
7
- Description: Complement of cygport
8
- Version: 0.0.1
9
- Libs: -L${libdir}
10
- Cflags: -I${includedir}
11
-
@@ -1,10 +0,0 @@
1
- prefix=/usr
2
- exec_prefix=/usr
3
- libdir=/usr/lib
4
- includedir=/usr/include
5
-
6
- Name: xezat
7
- Description: Complement of cygport
8
- Version: 0.0.1
9
- Libs: -L${libdir} -lxezat
10
- Cflags: -I${includedir}
@@ -1,24 +0,0 @@
1
- require 'xezat/validator/m4'
2
-
3
- module Xezat::Test::Validator
4
- class M4Test < Test::Unit::TestCase
5
- include Xezat::Validator
6
- include Xezat
7
-
8
- def setup
9
- @validator = ValidatorManager[:m4]
10
- end
11
-
12
- def test_skip
13
- variables = {D: Dir.tmpdir, T: Dir.tmpdir}
14
- result, detail = @validator.validate(variables)
15
- assert_nil(result)
16
- end
17
-
18
- def test_yes
19
- variables = {D: File::join(File.dirname(__FILE__), 'fixture', 'm4', 'yes'), T: Dir::tmpdir}
20
- result, detail = @validator.validate(variables)
21
- assert_true(result)
22
- end
23
- end
24
- end
@@ -1,31 +0,0 @@
1
- require 'xezat/validator/pkgconfig'
2
-
3
- module Xezat::Test::Validator
4
- class PkgconfigTest < Test::Unit::TestCase
5
- include Xezat
6
-
7
- def setup
8
- @validator = ValidatorManager[:pkgconfig]
9
- end
10
-
11
- def test_skip
12
- variables = {D: Dir.tmpdir}
13
- assert_equal([nil, nil], @validator.validate(variables))
14
- end
15
-
16
- def test_no_at
17
- variables = {D: File::join(File.dirname(__FILE__), 'fixture', 'pkgconfig', 'no_at')}
18
- assert_equal([false, '/usr/lib/pkgconfig/xezat.pc: contains @'], @validator.validate(variables))
19
- end
20
-
21
- def test_no_link
22
- variables = {D: File::join(File.dirname(__FILE__), 'fixture', 'pkgconfig', 'no_link')}
23
- assert_equal([false, '/usr/lib/pkgconfig/xezat.pc: no library flags found'], @validator.validate(variables))
24
- end
25
-
26
- def test_yes
27
- variables = {D: File::join(File.dirname(__FILE__), 'fixture', 'pkgconfig', 'yes')}
28
- assert_equal([true, nil], @validator.validate(variables))
29
- end
30
- end
31
- end