name "pycurl"
default_version "7.43.0"

dependency "python"
dependency "pip"
dependency "curl"
dependency "gdbm" if (ohai['platform'] == "mac_os_x" or ohai['platform'] == "freebsd" or ohai['platform'] == "aix")
dependency "libgcc" if (ohai['platform'] == "solaris2" and Omnibus.config.solaris_compiler == "gcc")

build do
  ship_license "https://raw.githubusercontent.com/pycurl/pycurl/master/COPYING-MIT"
  build_env = {
    "PATH" => "/#{install_dir}/embedded/bin:#{ENV['PATH']}",
    "ARCHFLAGS" => "-arch x86_64"
  }
  command "#{install_dir}/embedded/bin/pip install #{name}==#{version}", :env => build_env
end
