aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-01-02 20:16:06 +0800
committerMike McQuaid2015-01-02 14:27:49 +0000
commit450b62ff85c8b246a6ae4e8235a9942216ce912b (patch)
tree5922ea68ccf200b558a3eb3e4f96ea3a9907f062 /Library
parent6c4cbe59d6f0a7928c110f5b1403eb0903f92518 (diff)
downloadhomebrew-450b62ff85c8b246a6ae4e8235a9942216ce912b.tar.bz2
yasm: modernize
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/yasm.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/Library/Formula/yasm.rb b/Library/Formula/yasm.rb
index 75c910da7..d6fccaf52 100644
--- a/Library/Formula/yasm.rb
+++ b/Library/Formula/yasm.rb
@@ -1,7 +1,5 @@
-require 'formula'
-
class Yasm < Formula
- homepage 'http://yasm.tortall.net/'
+ homepage "http://yasm.tortall.net/"
url "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz"
sha256 "3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f"
@@ -14,7 +12,7 @@ class Yasm < Formula
end
head do
- url 'https://github.com/yasm/yasm.git'
+ url "https://github.com/yasm/yasm.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
@@ -40,15 +38,15 @@ class Yasm < Formula
system "python", "setup.py", "build", "install", "--prefix=#{buildpath}"
end
- args << '--enable-python'
- args << '--enable-python-bindings'
+ 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'
+ system "./autogen.sh" if build.head?
+ system "./configure", *args
+ system "make", "install"
end
end