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/'
|
2013-03-25 07:29:02 +00:00
|
|
|
url 'https://github.com/downloads/aajanki/yle-dl/yle-dl-2.0.2.tar.gz'
|
|
|
|
sha1 'c48866daf24e9f427184c8bc51a018d250a003cf'
|
|
|
|
|
|
|
|
head 'https://github.com/aajanki/yle-dl.git'
|
|
|
|
|
|
|
|
depends_on 'rtmpdump'
|
2013-06-06 14:51:07 +00:00
|
|
|
depends_on :python # use python because of pycrypto
|
2013-03-25 07:29:02 +00:00
|
|
|
depends_on LanguageModuleDependency.new :python, 'pycrypto', 'Crypto'
|
|
|
|
|
|
|
|
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-03-26 18:29:47 +00:00
|
|
|
raise if (`#{bin}/yle-dl --help 2>&1` =~ /rtmpdump: This program dumps the media content streamed over RTMP/).nil?
|
2013-03-25 07:29:02 +00:00
|
|
|
end
|
|
|
|
end
|