homebrew-core/Formula/yle-dl.rb

23 lines
642 B
Ruby
Raw Normal View History

require 'formula'
class YleDl < Formula
2013-04-07 02:34:41 +00:00
homepage 'http://aajanki.github.io/yle-dl/'
url 'https://github.com/aajanki/yle-dl/archive/2.3.1.tar.gz'
sha1 '5ec3516db2a5ecd793223636e27ed0c23657b575'
head 'https://github.com/aajanki/yle-dl.git'
depends_on 'rtmpdump'
2014-06-17 13:12:03 +00:00
depends_on :python if MacOS.version <= :snow_leopard
2014-03-12 13:28:36 +00:00
depends_on "pycrypto" => [:python, "Crypto"]
def install
system "make", "install", "SYS=darwin", "prefix=#{prefix}", "mandir=#{man}"
end
test do
2013-06-09 02:26:26 +00:00
assert_match /rtmpdump: This program dumps the media content streamed over RTMP/,
2014-05-04 19:12:41 +00:00
shell_output("#{bin}/yle-dl --help 2>&1")
end
end