Ryan Davis
12/28/2007 9:52:00 AM
On Dec 28, 2007, at 00:09 , Dido Sevilla wrote:
> As far as I can tell, Hoe by itself doesn't have anything available to
> facilitate the creation of gems that contain C extensions. Of the gems
> that I have installed which do have extensions, none of them seem to
> also use hoe, so I don't really have any examples to go by. Any
> suggestions for best practice when doing this sort of thing?
Hoe just sits on top of rake and generates your gemspec (and a bunch
of tasks). There isn't really anything for hoe to do for extensions
(tho suggestions are welcome). So, almost the same way you'd do it via
a plain gem:
Hoe.new('blah', Blah::VERSION) do |p|
p.spec_extras[:extensions] = ["extconf.rb"] # or whatever style
extension
end