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"
|
2016-10-21 03:29:33 +00:00
|
|
|
url "https://github.com/conan-io/conan/archive/0.14.1.tar.gz"
|
|
|
|
sha256 "8e66f774389d9e6c0dc2c61b07dab0071d654ba8583b05e1b2a59282d2fa409f"
|
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
|
2016-10-21 03:34:14 +00:00
|
|
|
sha256 "0d18c886c756b67b6a613291927a4c0e49f2b82d7119cd4647e834d64c70d4ae" => :sierra
|
|
|
|
sha256 "ff0390091e41baedbfeafd3fb5e2c2a9d8f1f44c64f241c81629b83c4653f8cc" => :el_capitan
|
|
|
|
sha256 "0e5aa82c1acfa458a934aabd6d09ad2579c64789a91d7267006e7844cc36b91d" => :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
|