sprinkle-tool / sprinkle

Sprinkle is a software provisioning tool you can use to build remote servers with. eg. to install a Rails, or Sinatra stack on a brand new slice directly after its been created
https://github.com/sprinkle-tool/sprinkle
MIT License
1.15k stars 138 forks source link

Use cmake instead of configure #67

Closed manuelmeurer closed 11 years ago

manuelmeurer commented 12 years ago

I would like to install MySQL from source with Sprinkle. MySQL uses cmake instead of configure. Is it possible to change just the configure instruction but still use make and make install to build and install? AFAICS using custom_install overwrites all of these.

joshgoebel commented 11 years ago

Right. It's just ruby though so you can always create the object manually and hack it however you want:

installer = source 'http://magicbeansland.com/latest-1.1.1.tar.gz'
def installer.configure_commands
   ["cmake"]
end

I doubt it's QUITE that simple, but you get the idea? Really we should allow source to take blocks maybe... like:

source 'http://magicbeansland.com/latest-1.1.1.tar.gz' do
  configure do
     ["cmake"]
  end
end

Where just by specifying a configure block you'd be replacing the default behavior. Care to take a crack at a patch and tests? :)

manuelmeurer commented 11 years ago

Will do!

manuelmeurer commented 11 years ago

Better late than never! :smile:

joshgoebel commented 11 years ago

Merge.d