2013-03-25 07:29:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class YleDl < Formula
|
2013-04-07 02:34:41 +00:00
|
|
|
homepage 'http://aajanki.github.io/yle-dl/'
|
2014-03-27 10:52:35 +00:00
|
|
|
url 'https://github.com/aajanki/yle-dl/archive/2.2.1.tar.gz'
|
|
|
|
sha1 '1622f12e159279e073f1a65bac751206e88e4d57'
|
2013-03-25 07:29:02 +00:00
|
|
|
|
|
|
|
head 'https://github.com/aajanki/yle-dl.git'
|
|
|
|
|
|
|
|
depends_on 'rtmpdump'
|
2014-01-04 13:09:58 +00:00
|
|
|
depends_on :python
|
2014-03-12 13:28:36 +00:00
|
|
|
depends_on "pycrypto" => [:python, "Crypto"]
|
2013-03-25 07:29:02 +00:00
|
|
|
|
|
|
|
def install
|
2013-03-26 18:29:47 +00:00
|
|
|
system "make", "install", "SYS=darwin", "prefix=#{prefix}", "mandir=#{man}"
|
2013-03-25 07:29:02 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2013-06-09 02:26:26 +00:00
|
|
|
assert_match /rtmpdump: This program dumps the media content streamed over RTMP/,
|
|
|
|
`#{bin}/yle-dl --help 2>&1`.strip
|
2013-03-25 07:29:02 +00:00
|
|
|
end
|
|
|
|
end
|