Using hoe to create gems with C extensions

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?

···

--
普通じゃないのが当然なら答える私は何ができる?
普通でも普通じゃなくて感じるまま感じることだけをするよ!
http://stormwyrm.blogspot.com

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

···

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?