blob: d6fbf6d0de7973982cf4165e3a30cb71ffd41861 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'formula'
class YleDl < Formula
homepage 'http://aajanki.github.io/yle-dl/'
url 'https://github.com/aajanki/yle-dl/archive/2.2.1.tar.gz'
sha1 '1622f12e159279e073f1a65bac751206e88e4d57'
head 'https://github.com/aajanki/yle-dl.git'
depends_on 'rtmpdump'
depends_on :python
depends_on "pycrypto" => [:python, "Crypto"]
def install
system "make", "install", "SYS=darwin", "prefix=#{prefix}", "mandir=#{man}"
end
test do
assert_match /rtmpdump: This program dumps the media content streamed over RTMP/,
`#{bin}/yle-dl --help 2>&1`.strip
end
end
|