2016-03-15 08:16:21 +00:00
|
|
|
class Conan < Formula
|
2016-09-22 15:43:54 +00:00
|
|
|
include Language::Python::Virtualenv
|
|
|
|
|
2016-03-15 08:16:21 +00:00
|
|
|
desc "Distributed, open source, package manager for C/C++"
|
2016-03-15 16:43:46 +00:00
|
|
|
homepage "https://github.com/conan-io/conan"
|
2017-01-11 15:15:07 +00:00
|
|
|
url "https://github.com/conan-io/conan/archive/0.18.1.tar.gz"
|
|
|
|
sha256 "cec4e3f6c4817d3cfea9ccfcecdf6aaa366d642b5de9c2ab59499a9f386b2075"
|
2016-10-15 06:57:12 +00:00
|
|
|
head "https://github.com/conan-io/conan.git"
|
2016-03-15 08:16:21 +00:00
|
|
|
|
2016-03-15 08:59:28 +00:00
|
|
|
bottle do
|
2016-06-27 05:57:49 +00:00
|
|
|
cellar :any
|
2017-01-11 15:36:36 +00:00
|
|
|
sha256 "358f60ab559c07ec28caff01c208172e3bd2131c30b27c627ddc57add5b31015" => :sierra
|
|
|
|
sha256 "3d8200f7c7b4a50428b56a57d2e7d165704b27399aaa704bbfed56b7b715bd58" => :el_capitan
|
|
|
|
sha256 "63c2ab8d9088b81005761e747c8b3e4c4ec62317a1e6364c8319b719705b7f9c" => :yosemite
|
2016-03-15 08:59:28 +00:00
|
|
|
end
|
|
|
|
|
2016-10-15 06:57:12 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2016-10-07 07:39:45 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2016-10-15 06:57:12 +00:00
|
|
|
depends_on "libffi"
|
2016-06-27 05:42:10 +00:00
|
|
|
depends_on "openssl"
|
|
|
|
|
2016-03-15 08:16:21 +00:00
|
|
|
def install
|
2016-10-15 06:57:12 +00:00
|
|
|
venv = virtualenv_create(libexec)
|
|
|
|
system libexec/"bin/pip", "install", "-v", "--no-binary", ":all:",
|
|
|
|
"--ignore-installed", buildpath
|
|
|
|
system libexec/"bin/pip", "uninstall", "-y", name
|
|
|
|
venv.pip_install_and_link buildpath
|
2016-03-15 08:16:21 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-09-22 16:02:27 +00:00
|
|
|
system bin/"conan", "install", "zlib/1.2.8@lasote/stable", "--build"
|
|
|
|
assert_predicate testpath/".conan/data/zlib/1.2.8", :exist?
|
2016-03-15 08:16:21 +00:00
|
|
|
end
|
|
|
|
end
|