Sha256: 6e8900d2e8f891524d9738f318df3c424884ab620ec2ecd831a9a73d9d3b89eb
Contents?: true
Size: 579 Bytes
Versions: 3
Compression:
Stored size: 579 Bytes
Contents
def sys(cmd) puts " -- #{cmd}" unless ret = system(cmd) raise "ERROR: '#{cmd}' failed" end ret end mkfl = <<MAKEFILE install: \t@echo "Nothing to do" clean: \t@echo "Nothing to do" MAKEFILE CWD = File.expand_path(File.dirname(__FILE__)) LIBSODIUM_DIR = File.expand_path(File.join(CWD, '..', '..', 'vendor', 'libsodium')) MAKE = ENV['MAKE'] || ENV['make'] || "make" Dir.chdir(LIBSODIUM_DIR) do sys("./autogen.sh") sys("./configure --prefix=#{LIBSODIUM_DIR}/dist") sys(MAKE) sys("#{MAKE} install") end File.open("Makefile", "w") do |f| f.write(mkfl) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rbnacl-libsodium-0.5.0 | ext/rbnacl/extconf.rb |
rbnacl-libsodium-0.4.5 | ext/rbnacl/extconf.rb |
rbnacl-libsodium-0.4.5a | ext/rbnacl/extconf.rb |