detroit-extconf 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2406dd4bd99bf4ede123280d70e5dd895e9b41ee
4
+ data.tar.gz: 648c3b0c40f67c5eaac585f758e4c18b99fc385c
5
+ SHA512:
6
+ metadata.gz: 0926f8964e466a96b2896fbf58b544605ab8207d369123e383b3121212f32de4336c206387f93d7b862d35f28c2f705029991ef110c4a3c671a47eccbebca5a3
7
+ data.tar.gz: 741f8ba9008a6e8374f57bd31a24ce4a8157204ceac002d12d7fcd22f7ab20eaf03bf5d5dd4eb7185b2dd92533b8e7e9c1fbe4ad682d5bcbedb877eea12a63d3
data/.index ADDED
@@ -0,0 +1,45 @@
1
+ ---
2
+ revision: 2013
3
+ type: ruby
4
+ sources:
5
+ - var
6
+ authors:
7
+ - name: T. Sawyer
8
+ email: transfire@gmail.com
9
+ organizations:
10
+ - name: Rubyworks
11
+ requirements:
12
+ - version: 0.4.0+
13
+ name: detroit
14
+ - name: detroit-standard
15
+ conflicts: []
16
+ alternatives: []
17
+ resources:
18
+ - type: home
19
+ uri: http://detroit.github.com/
20
+ label: Homepage
21
+ - type: code
22
+ uri: http://github.com/detroit/detroit-extconf
23
+ label: Source Code
24
+ - type: mail
25
+ uri: http://groups.google.com/group/rubyworks-mailinglist
26
+ label: Mailing List
27
+ repositories: []
28
+ categories: []
29
+ copyrights:
30
+ - holder: Rubyworks
31
+ year: '2011'
32
+ license: GPL-3.0
33
+ customs: []
34
+ paths:
35
+ lib:
36
+ - lib
37
+ name: detroit-extconf
38
+ title: Detroit ExtConf
39
+ summary: ExtConf plugin for Detroit
40
+ created: '2011-10-16'
41
+ description: ExtConf plugin for Detroit build system. The plugin compiles Ruby C extensions
42
+ during the compile phase.
43
+ suite: detroit
44
+ version: 0.4.0
45
+ date: '2014-01-13'
@@ -0,0 +1,46 @@
1
+ # Detroit ExtConf Tool
2
+
3
+ [Website](http://rubyworks.github.com/detroit-extconf) /
4
+ [Report Issue](http://github.com/rubyworks/detroit-extconf/issues) /
5
+ [Development](http://github.com/rubyworks/detroit-extconf)
6
+
7
+ [![Build Status](https://secure.travis-ci.org/rubyworks/detroit-extconf.png)](http://travis-ci.org/rubyworks/detroit-extconf)
8
+ [![Gem Version](https://badge.fury.io/rb/detroit-extconf.png)](http://badge.fury.io/rb/detroit-extconf)    
9
+ [![Flattr Me](http://api.flattr.com/button/flattr-badge-large.png)](http://flattr.com/thing/324911/Rubyworks-Ruby-Development-Fund)
10
+
11
+
12
+ ## About
13
+
14
+ The ExtConf tool utilizes extconf.rb script and Autotools standard
15
+ Makefile to compile native extensions.
16
+
17
+ NOTE: By neccessity this tool shells out to the command line.
18
+
19
+
20
+ ## Install
21
+
22
+ ### With RubyGems
23
+
24
+ $ gem install detroit-extconf
25
+
26
+
27
+ ## Legal
28
+
29
+ Detroit ExtConf
30
+
31
+ Copyright (c) 2011 Rubyworks
32
+
33
+ (GPL-3.0 License)
34
+
35
+ This program is free software: you can redistribute it and/or modify
36
+ it under the terms of the GNU General Public License as published by
37
+ the Free Software Foundation, either version 3 of the License, or
38
+ (at your option) any later version.
39
+
40
+ This program is distributed in the hope that it will be useful,
41
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
42
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43
+ GNU General Public License for more details.
44
+
45
+ See LICENSE.txt file for details.
46
+
@@ -1,55 +1,48 @@
1
- require 'detroit/tool'
1
+ require 'detroit-standard'
2
2
 
3
3
  module Detroit
4
4
 
5
- #
6
- def ExtConf(options={})
7
- ExtConf.new(options)
8
- end
9
-
5
+ ##
10
6
  # The ExtConf tool utilizes extconf.rb script and Autotools standard Makefile
11
7
  # to compile native extensions.
12
8
  #
13
- # NOTE: By neccessity this tool shells out to the command line.
9
+ # Targets the following standard toolchain stations:
10
+ #
11
+ # * compile
12
+ # * clean
13
+ # * purge
14
+ #
15
+ # @note By neccessity this tool shells out to the command line.
14
16
  #
15
- #--
16
- # TODO: win32 cross-compile ?
17
- # TODO: current? method
18
- #++
17
+ # @todo Can we implement a win32 cross-compile?
19
18
  class ExtConf < Tool
20
19
 
21
- #def self.available?
22
- # #... check for make tools ...
23
- #end
24
-
20
+ # Works with the Standard assembly.
25
21
  #
26
- MAKE_COMMAND = ENV['make'] || (RUBY_PLATFORM =~ /(win|w)32$/ ? 'nmake' : 'make')
27
-
28
- # Compile statically? Applies only to compile method. (false)
29
- attr_accessor :static
30
-
22
+ # @!parse
23
+ # include Standard
24
+ #
25
+ assembly Standard
31
26
 
32
- # A S S E M B L Y
27
+ # Location of manpage for tool.
28
+ MANPAGE = File.dirname(__FILE__) + '/../man/detroit-dnote.5'
33
29
 
34
- def assemble?(station, options={})
35
- case station
36
- when :compile, :clean, :purge
37
- compiles?
38
- end
39
- end
30
+ # Platform specific make command.
31
+ MAKE_COMMAND = ENV['make'] || (RUBY_PLATFORM =~ /(win|w)32$/ ? 'nmake' : 'make')
40
32
 
41
- def assemble(station, options={})
42
- case station
43
- when :compile then compile
44
- when :clean then clean
45
- when :purge then purge
46
- end
33
+ # Set attribute defaults.
34
+ #
35
+ # @return [void]
36
+ def prerequisite
37
+ @static = false
47
38
  end
48
39
 
49
-
50
- # S E R V I C E M E T H O D S
40
+ # Compile statically? Applies only to compile method. (false)
41
+ attr_accessor :static
51
42
 
52
43
  # Create Makefile(s).
44
+ #
45
+ # @return [void]
53
46
  def configure
54
47
  extensions.each do |directory|
55
48
  next if File.exist?(File.join(directory, 'Makefile'))
@@ -84,13 +77,17 @@ module Detroit
84
77
  end
85
78
  end
86
79
 
87
- alias_method :purge, :distclean
80
+ alias purge distclean
88
81
 
89
82
  # Check to see if this project has extensions that need to be compiled.
90
83
  def compiles?
91
84
  !extensions.empty?
92
85
  end
93
86
 
87
+ alias compile? compiles?
88
+ alias clean? compiles?
89
+ alias purge? compiles?
90
+
94
91
  # Extension directories. Often this will simply be 'ext'.
95
92
  # but sometimes more then one extension is needed and are kept
96
93
  # in separate directories. This works by looking for ext/**/*.c
@@ -99,13 +96,24 @@ module Detroit
99
96
  @extensions ||= Dir['ext/**/*.c'].collect{ |file| File.dirname(file) }.uniq
100
97
  end
101
98
 
102
- private
99
+ # @todo
100
+ # def current?
101
+ # end
103
102
 
103
+ # This tool ties into the `compile`, `clean` and `purge` stations of the
104
+ # standard assembly.
104
105
  #
105
- def initialize_defaults
106
- @static = false
106
+ # @return [Boolean]
107
+ def assemble?(station, options={})
108
+ return true if station == :compile
109
+ return true if station == :clean
110
+ return true if station == :purge
111
+ return false
107
112
  end
108
113
 
114
+ private
115
+
116
+ #
109
117
  def make(target='')
110
118
  extensions.each do |directory|
111
119
  report "compiling #{directory}"
@@ -135,12 +143,6 @@ module Detroit
135
143
  # abort "NOT YET IMPLEMENTED"
136
144
  #end
137
145
 
138
- public
139
-
140
- def self.man_page
141
- File.dirname(__FILE__)+'/../man/detroit-dnote.5'
142
- end
143
-
144
146
  end
145
147
 
146
148
  end
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "DETROIT\-EXTCONF" "5" "October 2011" "" ""
4
+ .TH "DETROIT\-EXTCONF" "5" "January 2014" "" ""
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBdetroit\-extconf\fR \- compile ruby extensions
@@ -51,10 +51,10 @@ Development Site \fIhttp://github\.com/detroit/detroit\-extconf\fR
51
51
  .IP "" 0
52
52
  .
53
53
  .SH "COPYRIGHT"
54
- Copyright (c) 2010 Thomas Sawyer, Rubyworks
54
+ Copyright (c) 2010 Rubyworks
55
55
  .
56
56
  .P
57
57
  Detroit ExtConf is distributable in accordance with the GPLv3 license\.
58
58
  .
59
59
  .SH "SEE ALSO"
60
- dnote(1)
60
+ detroit(1)
@@ -60,7 +60,7 @@
60
60
  <a href="#RESOURCES">RESOURCES</a>
61
61
  <a href="#COPYRIGHT">COPYRIGHT</a>
62
62
  <a href="#SEE-ALSO">SEE ALSO</a>
63
- </div>
63
+ </div>
64
64
 
65
65
  <ol class='man-decor man-head man head'>
66
66
  <li class='tl'>detroit-extconf(5)</li>
@@ -115,18 +115,18 @@ and defaults to <code>false</code>.</li>
115
115
 
116
116
  <h2 id="COPYRIGHT">COPYRIGHT</h2>
117
117
 
118
- <p>Copyright (c) 2010 Thomas Sawyer, Rubyworks</p>
118
+ <p>Copyright (c) 2010 Rubyworks</p>
119
119
 
120
120
  <p>Detroit ExtConf is distributable in accordance with the GPLv3 license.</p>
121
121
 
122
122
  <h2 id="SEE-ALSO">SEE ALSO</h2>
123
123
 
124
- <p><span class="man-ref">dnote<span class="s">(1)</span></span></p>
124
+ <p><span class="man-ref">detroit<span class="s">(1)</span></span></p>
125
125
 
126
126
 
127
127
  <ol class='man-decor man-foot man foot'>
128
128
  <li class='tl'></li>
129
- <li class='tc'>October 2011</li>
129
+ <li class='tc'>January 2014</li>
130
130
  <li class='tr'>detroit-extconf(5)</li>
131
131
  </ol>
132
132
 
@@ -41,7 +41,7 @@ For more information:
41
41
 
42
42
  ## COPYRIGHT
43
43
 
44
- Copyright (c) 2010 Thomas Sawyer, Rubyworks
44
+ Copyright (c) 2010 Rubyworks
45
45
 
46
46
  Detroit ExtConf is distributable in accordance with the GPLv3 license.
47
47
 
metadata CHANGED
@@ -1,27 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: detroit-extconf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - T. Sawyer
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-04-02 00:00:00.000000000 Z
11
+ date: 2014-01-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: detroit
16
- requirement: &28398320 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 0.3.0
19
+ version: 0.4.0
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *28398320
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.4.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: detroit-standard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
25
41
  description: ExtConf plugin for Detroit build system. The plugin compiles Ruby C extensions
26
42
  during the compile phase.
27
43
  email:
@@ -30,40 +46,38 @@ executables: []
30
46
  extensions: []
31
47
  extra_rdoc_files:
32
48
  - LICENSE.txt
33
- - README.rdoc
34
- - COPYING.rdoc
49
+ - README.md
35
50
  files:
36
- - .ruby
51
+ - .index
37
52
  - lib/detroit-extconf.rb
38
53
  - man/detroit-extconf.5
39
54
  - man/detroit-extconf.5.html
40
55
  - man/detroit-extconf.5.ronn
56
+ - README.md
41
57
  - LICENSE.txt
42
- - README.rdoc
43
- - COPYING.rdoc
44
58
  homepage: http://detroit.github.com/
45
59
  licenses:
46
- - GPL3
60
+ - GPL-3.0
61
+ metadata: {}
47
62
  post_install_message:
48
63
  rdoc_options: []
49
64
  require_paths:
50
65
  - lib
51
66
  required_ruby_version: !ruby/object:Gem::Requirement
52
- none: false
53
67
  requirements:
54
- - - ! '>='
68
+ - - '>='
55
69
  - !ruby/object:Gem::Version
56
70
  version: '0'
57
71
  required_rubygems_version: !ruby/object:Gem::Requirement
58
- none: false
59
72
  requirements:
60
- - - ! '>='
73
+ - - '>='
61
74
  - !ruby/object:Gem::Version
62
75
  version: '0'
63
76
  requirements: []
64
77
  rubyforge_project:
65
- rubygems_version: 1.8.11
78
+ rubygems_version: 2.0.3
66
79
  signing_key:
67
- specification_version: 3
80
+ specification_version: 4
68
81
  summary: ExtConf plugin for Detroit
69
82
  test_files: []
83
+ has_rdoc:
data/.ruby DELETED
@@ -1,35 +0,0 @@
1
- ---
2
- source:
3
- - meta
4
- authors:
5
- - name: T. Sawyer
6
- email: transfire@gmail.com
7
- copyrights:
8
- - holder: Thomas Sawyer
9
- year: '2011'
10
- license: GPL3
11
- requirements:
12
- - name: detroit
13
- version: 0.3.0+
14
- dependencies: []
15
- alternatives: []
16
- conflicts: []
17
- repositories: []
18
- resources:
19
- home: http://detroit.github.com/
20
- code: http://github.com/detroit/detroit-extconf
21
- mail: http://groups.google.com/group/rubyworks-mailinglist
22
- extra: {}
23
- load_path:
24
- - lib
25
- revision: 0
26
- created: '2011-10-16'
27
- summary: ExtConf plugin for Detroit
28
- title: Detroit ExtConf
29
- version: 0.2.0
30
- name: detroit-extconf
31
- suite: detroit
32
- description: ExtConf plugin for Detroit build system. The plugin compiles Ruby C extensions
33
- during the compile phase.
34
- organization: rubyworks
35
- date: '2012-04-01'
@@ -1,21 +0,0 @@
1
- = COPYRIGHT NOTICES
2
-
3
- == Detroit ExtConf
4
-
5
- Copyright (c) 2011 Thomas Sawyer
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see <http://www.gnu.org/licenses/>.
19
-
20
- (http://detroit.github.com)
21
-
@@ -1,29 +0,0 @@
1
- = Detroit ExtConf Tool
2
-
3
- {Website}[http://rubyworks.github.com/detroit-extconf] /
4
- {Report Issue}[http://github.com/rubyworks/detroit-extconf/issues] /
5
- {Repository}[http://github.com/rubyworks/detroit-extconf]
6
-
7
-
8
- == DESCRIPTION
9
-
10
- The ExtConf tool utilizes extconf.rb script and Autotools standard
11
- Makefile to compile native extensions.
12
-
13
- NOTE: By neccessity this tool shells out to the command line.
14
-
15
-
16
- == INSTALL
17
-
18
- $ gem install detroit-extconf
19
-
20
-
21
- == COPYRIGHT
22
-
23
- Copyright (c) 2011 Thomas Sawyer
24
-
25
- Detroit ExtConf is distributable under the GNU General Public License version 3
26
- or greater (GPL-3.0+).
27
-
28
- See COPYING.rdoc and LICENSE.txt file for details.
29
-