Skip to content

Instantly share code, notes, and snippets.

@bryanwb
Created November 1, 2012 13:31
Show Gist options
  • Save bryanwb/3993645 to your computer and use it in GitHub Desktop.
Save bryanwb/3993645 to your computer and use it in GitHub Desktop.
wacky dsl idea for ark
build "collectd"
ark do
url "http://..."
checksum "asdfads"
end
configure do # creates defaults to "config.status"
flags [ "--enable-python", "--enable-jvm" ]
prefix "/opt"
end
make do
flags [ "OS=linux" ]
creates 'bin/collectd'
end
make "install" { creates "/usr/bin/collect" }
end
# python example
build "carbon"
ark do
url "http://"
checksum "asdfas080998"
version "3.1"
end
python do
setup_py [ "build", "install" ]
creates "/usr/sbin/carbon-cache"
end
end
# ant example
build "zookeeper" do
ark do
url 'http://....'
checksum 'asdf09808'
version "1.0"
ant do
flags [ "-DSuperFunkyJVMOption=99m"]
creates "bin/zk"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment