d20c2c0ca2
Cython is no longer distributed via cython.org – q.v. download directions therein at http://cython.org/#download – and official release source tarballs may be had through PyPI. This update points the Cython resource at a valid PyPI link for Cython 0.24.1 (the current stable version) and updates the `sha256` value accordingly; `brew install libplist --with-python` will work thereafter with these changes.
57 lines
2 KiB
Ruby
57 lines
2 KiB
Ruby
class Libplist < Formula
|
|
desc "Library for Apple Binary- and XML-Property Lists"
|
|
homepage "http://www.libimobiledevice.org"
|
|
url "http://www.libimobiledevice.org/downloads/libplist-1.12.tar.bz2"
|
|
sha256 "0effdedcb3de128c4930d8c03a3854c74c426c16728b8ab5f0a5b6bdc0b644be"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "44d4da500ed4448656ce335d43ff89c8df8bfc7fd7d78515e9e111e32673e645" => :el_capitan
|
|
sha256 "c6f8dbc8fc0431d41e73c8f7da6a1292ec7d26358208540d99f775ad9af900ca" => :yosemite
|
|
sha256 "5bfb26555e67a5a8b144ea187e32ba4b287901e4b7358e9b617aad2ddc82f9eb" => :mavericks
|
|
sha256 "251e34405ba2111cb2f30e0857b81072b92563ebd9efa77e240214daf106560f" => :mountain_lion
|
|
end
|
|
|
|
head do
|
|
url "http://git.sukimashita.com/libplist.git"
|
|
|
|
depends_on "automake" => :build
|
|
depends_on "autoconf" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
option "with-python", "Enable Cython Python bindings"
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libxml2"
|
|
depends_on :python => :optional
|
|
|
|
resource "cython" do
|
|
url "https://pypi.python.org/packages/c6/fe/97319581905de40f1be7015a0ea1bd336a756f6249914b148a17eefa75dc/Cython-0.24.1.tar.gz#md5=890b494a12951f1d6228c416a5789554"
|
|
sha256 "84808fda00508757928e1feadcf41c9f78e9a9b7167b6649ab0933b76f75e7b9"
|
|
end
|
|
|
|
def install
|
|
ENV.deparallelize
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--disable-silent-rules
|
|
--prefix=#{prefix}
|
|
]
|
|
|
|
if build.with? "python"
|
|
resource("cython").stage do
|
|
ENV.prepend_create_path "PYTHONPATH", buildpath+"lib/python2.7/site-packages"
|
|
system "python", "setup.py", "build", "install", "--prefix=#{buildpath}",
|
|
"--single-version-externally-managed", "--record=installed.txt"
|
|
end
|
|
ENV.prepend_path "PATH", "#{buildpath}/bin"
|
|
else
|
|
args << "--without-cython"
|
|
end
|
|
|
|
system "./autogen.sh" if build.head?
|
|
system "./configure", *args
|
|
system "make", "install", "PYTHON_LDFLAGS=-undefined dynamic_lookup"
|
|
end
|
|
end
|