From 50f1339e0736aef1db54893912ba19eb0b53cd37 Mon Sep 17 00:00:00 2001 From: Hannu Hartikainen Date: Tue, 23 Dec 2014 14:59:07 +0200 Subject: [PATCH] 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 Homebrew/homebrew#35212. Signed-off-by: Mike McQuaid --- Formula/yle-dl.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Formula/yle-dl.rb b/Formula/yle-dl.rb index 39c67f962c..7805328c33 100644 --- a/Formula/yle-dl.rb +++ b/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