aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDavid Holm2014-08-14 12:02:15 +0200
committerJack Nagel2014-08-18 00:06:03 -0500
commit98507103c9d47ddbc6aedb1bc724fceaaa744c98 (patch)
treeb41097857a3b832be4e8e6221bc58b72c9914b52 /Library
parenta72526d7a5989522171cce8d661ce65576ecad77 (diff)
downloadhomebrew-98507103c9d47ddbc6aedb1bc724fceaaa744c98.tar.bz2
yasm 1.3.0
Closes #31592. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/yasm.rb26
1 files changed, 16 insertions, 10 deletions
diff --git a/Library/Formula/yasm.rb b/Library/Formula/yasm.rb
index 280c59147..cd2ca9051 100644
--- a/Library/Formula/yasm.rb
+++ b/Library/Formula/yasm.rb
@@ -2,14 +2,10 @@ require 'formula'
class Yasm < Formula
homepage 'http://yasm.tortall.net/'
- url 'http://tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz'
- sha256 '768ffab457b90a20a6d895c39749adb547c1b7cb5c108e84b151a838a23ccf31'
+ url "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz"
+ sha256 "3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f"
bottle do
- cellar :any
- sha1 "cd4b87a7ab1a80b4461b6b21f4a51e98186a225e" => :mavericks
- sha1 "adf3e0d26dbb17a37c310d7bdf8821d54a4f5914" => :mountain_lion
- sha1 "b5f60c20bd5e5b475d982f994f3754f07e63674f" => :lion
end
head do
@@ -20,22 +16,32 @@ class Yasm < Formula
depends_on "gettext"
end
+ resource "cython" do
+ url "http://cython.org/release/Cython-0.20.2.tar.gz"
+ sha1 "e3fd4c32bdfa4a388cce9538417237172c656d55"
+ end
+
depends_on :python => :optional
- depends_on 'Cython' => :python if build.with? 'python'
def install
- # https://github.com/Homebrew/homebrew/pull/19593
- ENV.deparallelize
args = %W[
--disable-debug
--prefix=#{prefix}
]
- if build.with? 'python'
+ if build.with? "python"
+ ENV.prepend_create_path "PYTHONPATH", buildpath+"lib/python2.7/site-packages"
+ resource("cython").stage do
+ system "python", "setup.py", "build", "install", "--prefix=#{buildpath}"
+ end
+
args << '--enable-python'
args << '--enable-python-bindings'
end
+ # https://github.com/Homebrew/homebrew/pull/19593
+ ENV.deparallelize
+
system './autogen.sh' if build.head?
system './configure', *args
system 'make install'