Sha256: 09da545503970c57c37512f46022c73e9967b091b6f2528bcfe568f577c4b088
Contents?: true
Size: 859 Bytes
Versions: 1
Compression:
Stored size: 859 Bytes
Contents
#!/usr/bin/ruby require 'mkmf' Config::CONFIG['CC'] = 'g++' Config::CONFIG['CPP'] = 'g++' $CFLAGS = '-fPIC -Os' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swift-0.4.3 | ext/extconf.rb |