diff options
| author | Dominyk Tiller | 2014-09-30 21:43:55 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-01 23:29:15 -0700 |
| commit | e678ba9b76cba837f6d7d7b94233ce8a961b18b4 (patch) | |
| tree | 8b38a11ba25c1b1b918b810b09c38b4ad3d6a717 /Library/Formula | |
| parent | 05f8b8758a106887c4da19ce616ae74845dab457 (diff) | |
| download | homebrew-e678ba9b76cba837f6d7d7b94233ce8a961b18b4.tar.bz2 | |
eye-d3 0.7.5
Closes #32770.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/eye-d3.rb | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/Library/Formula/eye-d3.rb b/Library/Formula/eye-d3.rb index ce0ebf4ee..4b5c2224e 100644 --- a/Library/Formula/eye-d3.rb +++ b/Library/Formula/eye-d3.rb @@ -1,22 +1,28 @@ -require 'formula' +require "formula" class EyeD3 < Formula - homepage 'http://eyed3.nicfit.net/' - url 'http://eyed3.nicfit.net/releases/eyeD3-0.6.18.tar.gz' - sha1 'd8887f7b75306bd293e0b0d46a977e73225ae7b5' + homepage "http://eyed3.nicfit.net/" + url "http://eyed3.nicfit.net/releases/eyeD3-0.7.5.tgz" + sha1 "bcfd0fe14f5fa40f29ca7e7133138a5112f3c270" + + depends_on :python if MacOS.version <= :snow_leopard + + # Looking for documentation? Please submit a PR to build some! + # See https://github.com/Homebrew/homebrew/issues/32770 for previous attempt. def install - man1.install "doc/eyeD3.1.in" => "eyeD3.1" + # Install in our prefix, not the first-in-the-path python site-packages dir. + ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages" - # Manually process this file - inreplace "src/eyeD3/__init__.py.in" do |s| - s.change_make_var! "eyeD3Version", "\"#{version}\"" - s.change_make_var! "eyeD3Maintainer", "\"Packaged by Homebrew\"" - end - mv "src/eyeD3/__init__.py.in", "src/eyeD3/__init__.py" + system "python", "setup.py", "install", "--prefix=#{libexec}" + share.install "docs/plugins", "docs/api", "docs/cli.rst" + + bin.install Dir[libexec/"bin/*"] + bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"]) + end - libexec.install "src/eyeD3" - libexec.install "bin/eyeD3" => "eyeD3_script" - bin.install_symlink libexec+"eyeD3_script" => "eyeD3" + test do + touch "temp.mp3" + system "#{bin}/eyeD3", "-a", "HomebrewYo", "-n", "37", "temp.mp3" end end |
