diff options
| author | Adam Vandenberg | 2012-02-20 22:04:21 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-24 21:35:50 -0800 |
| commit | d3f35542992c4978525b1eaaa0255c92f1e830e0 (patch) | |
| tree | 499df60efe14b16e641247313cdd07416af1290a /Library/Formula/media-info.rb | |
| parent | 9c77e1cefce38f2a3001ce398ad0b4dc2f668243 (diff) | |
| download | homebrew-d3f35542992c4978525b1eaaa0255c92f1e830e0.tar.bz2 | |
Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
Diffstat (limited to 'Library/Formula/media-info.rb')
| -rw-r--r-- | Library/Formula/media-info.rb | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/Library/Formula/media-info.rb b/Library/Formula/media-info.rb index ee9bbdeab..d49336d18 100644 --- a/Library/Formula/media-info.rb +++ b/Library/Formula/media-info.rb @@ -5,8 +5,8 @@ def libcurl? end class MediaInfo < Formula - url 'http://downloads.sourceforge.net/mediainfo/MediaInfo_CLI_0.7.52_GNU_FromSource.tar.bz2' homepage 'http://mediainfo.sourceforge.net' + url 'http://downloads.sourceforge.net/mediainfo/MediaInfo_CLI_0.7.52_GNU_FromSource.tar.bz2' md5 '088e62c8f2992c776a881fd6813f150f' def options @@ -16,22 +16,25 @@ class MediaInfo < Formula depends_on 'pkg-config' => :build def install - root_dir = Dir.pwd - - Dir.chdir root_dir + '/ZenLib/Project/GNU/Library' - system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" - system "make" - - Dir.chdir root_dir + "/MediaInfoLib/Project/GNU/Library" - args = ["--disable-debug", - "--disable-dependency-tracking", - "--prefix=#{prefix}"] - args << "--with-libcurl" if libcurl? - system "./configure", *args - system "make install" - - Dir.chdir root_dir + "/MediaInfo/Project/GNU/CLI" - system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" - system "make install" + cd 'ZenLib/Project/GNU/Library' do + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make" + end + + cd "MediaInfoLib/Project/GNU/Library" do + args = ["--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}"] + args << "--with-libcurl" if libcurl? + system "./configure", *args + system "make install" + end + + cd "MediaInfo/Project/GNU/CLI" do + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make install" + end end end |
