On 11/6/07, Trans <[EMAIL PROTECTED]> wrote: > One last question (hopefully). In the gemspec it says: > > extensions > > Type: Array; Optional > Description > > The paths to extconf.rb-style files used to compile extensions. > Usage > > spec.extensions << 'ext/rmagic/extconf.rb' > > Notes > > These files will be run when the gem is installed, causing the C (or > whatever) code to be compiled on the user's machine. > > > But does this have to be extconf.rb scripts? Or can it be any script > in the package? And does gems run 'make' on its own, or does the > extconf.rb (or other) scripts need to do that? >
The files will be run... with ruby. So it's expecting a ruby script. Also after the call to ruby extconf.rb will follow a call to make and copy the resulting .so file to lib folder of the gem. If extensions is empty, no build process will be launched. You should create a test gem and check the whole scenario for your own understanding of the workflow. I did and make my life more easy :-) -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi _______________________________________________ Rubygems-developers mailing list [email protected] http://rubyforge.org/mailman/listinfo/rubygems-developers
