diff options
| author | Hannu Hartikainen | 2014-12-23 14:59:07 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-27 22:49:08 +0000 |
| commit | 1bf81f9f5d547a3f998bf761708b1ca957d0d4f0 (patch) | |
| tree | 28d241fb58047cd6f9ca1796ba90271dd6ca291c /Library | |
| parent | 0fcf852ea442b11f9585e6244eb2a29e85bc698f (diff) | |
| download | homebrew-1bf81f9f5d547a3f998bf761708b1ca957d0d4f0.tar.bz2 | |
yle-dl: install AdobeHDS.php when HEAD.
See https://github.com/aajanki/yle-dl#installation . Note that due to an
upstream bug, the installation happens only for HEAD, for now.
Closes #35212.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/yle-dl.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Formula/yle-dl.rb b/Library/Formula/yle-dl.rb index 39c67f962..7805328c3 100644 --- a/Library/Formula/yle-dl.rb +++ b/Library/Formula/yle-dl.rb @@ -13,10 +13,18 @@ class YleDl < Formula def install system "make", "install", "SYS=darwin", "prefix=#{prefix}", "mandir=#{man}" + + # yle-dl installed AdobeHDS.php in $PREFIX/bin before 2014-12-26, + # so only install it for more recent versions. + # https://github.com/aajanki/yle-dl/commit/ad9ef7fa40b39ec315bb51fc509af7416278966c + if build.head? then + # TODO: when 2.3.2 is released, remove the surrounding if + system "make", "install-adobehds", "SYS=darwin", "prefix=#{prefix}", "mandir=#{man}" + end end test do - assert_match /rtmpdump: This program dumps the media content streamed over RTMP/, - shell_output("#{bin}/yle-dl --help 2>&1") + assert_equal "3 minuuttia-2012-05-30T10:51:00\n", + shell_output("#{bin}/yle-dl --showtitle http://areena.yle.fi/tv/1570236") end end |
