57 lines
2.2 KiB
Ruby
57 lines
2.2 KiB
Ruby
class EyeD3 < Formula
|
|
desc "Work with ID3 metadata in .mp3 files"
|
|
homepage "http://eyed3.nicfit.net/"
|
|
url "http://eyed3.nicfit.net/releases/eyeD3-0.8.6.tar.gz"
|
|
sha256 "c04a5537ca2d4bc40267143f08db49372b358760fe0f28a8fa35cdf1fd09651a"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "1f74b91b8708e90077308b1dba25225cbd61cf7425c2fef0e3787982de6fff16" => :high_sierra
|
|
sha256 "1f74b91b8708e90077308b1dba25225cbd61cf7425c2fef0e3787982de6fff16" => :sierra
|
|
sha256 "1f74b91b8708e90077308b1dba25225cbd61cf7425c2fef0e3787982de6fff16" => :el_capitan
|
|
end
|
|
|
|
depends_on "python@2"
|
|
depends_on "libmagic"
|
|
|
|
# Looking for documentation? Please submit a PR to build some!
|
|
# See https://github.com/Homebrew/homebrew/issues/32770 for previous attempt.
|
|
|
|
resource "pathlib" do
|
|
url "https://files.pythonhosted.org/packages/ac/aa/9b065a76b9af472437a0059f77e8f962fe350438b927cb80184c32f075eb/pathlib-1.0.1.tar.gz"
|
|
sha256 "6940718dfc3eff4258203ad5021090933e5c04707d5ca8cc9e73c94a7894ea9f"
|
|
end
|
|
|
|
resource "python-magic" do
|
|
url "https://files.pythonhosted.org/packages/84/30/80932401906eaf787f2e9bd86dc458f1d2e75b064b4c187341f29516945c/python-magic-0.4.15.tar.gz"
|
|
sha256 "f3765c0f582d2dfc72c15f3b5a82aecfae9498bd29ca840d72f37d7bd38bfcd5"
|
|
end
|
|
|
|
resource "six" do
|
|
url "https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz"
|
|
sha256 "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
|
|
end
|
|
|
|
def install
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
|
resources.each do |r|
|
|
r.stage do
|
|
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
|
end
|
|
end
|
|
|
|
# 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"
|
|
|
|
system "python", "setup.py", "install", "--prefix=#{libexec}"
|
|
share.install "docs/plugins", "docs/cli.rst"
|
|
|
|
bin.install Dir[libexec/"bin/*"]
|
|
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
end
|
|
|
|
test do
|
|
touch "temp.mp3"
|
|
system "#{bin}/eyeD3", "-a", "HomebrewYo", "-n", "37", "temp.mp3"
|
|
end
|
|
end
|