Sha256: 86ebc7a5619c4dba0e11296590aa0e2d0332bbec64e73f5ec5357892a498a9eb
Contents?: true
Size: 859 Bytes
Versions: 2
Compression:
Stored size: 859 Bytes
Contents
#!/usr/bin/ruby require 'mkmf' Config::CONFIG['CC'] = 'g++' Config::CONFIG['CPP'] = 'g++' $CFLAGS = '-fPIC -O3' def apt_install_hint pkg "sudo apt-get install #{pkg}" end def library_installed? name, hint if have_library(name) true else $stderr.puts <<-ERROR Unable to find required library: #{name}. On debian systems, it can be installed as, #{hint} You may have to add the following ppa to your sources, sudo add-apt-repository ppa:deepfryed to install dbic++-dev and associated drivers dbic++-mysql or dbic++-pg ERROR false end end exit 1 unless library_installed? 'pcrecpp', apt_install_hint('libpcre3-dev') exit 1 unless library_installed? 'uuid', apt_install_hint('uuid-dev') exit 1 unless library_installed? 'dbic++', apt_install_hint('dbic++-dev') create_makefile 'swift'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
swift-0.4.2 | ext/extconf.rb |
swift-0.4.1 | ext/extconf.rb |