Sha256: 63318e625d53972bb78700e8d07cac34384af303ebc8c26beacd9c2d2ebc57c2
Contents?: true
Size: 614 Bytes
Versions: 6
Compression:
Stored size: 614 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 # sh is required to run configure on Windows sys("sh -c \"./configure --prefix=#{LIBSODIUM_DIR}/dist\"") sys(MAKE) sys("#{MAKE} install") end File.open("Makefile", "w") do |f| f.write(mkfl) end
Version data entries
6 entries across 6 versions & 1 rubygems