diff options
| author | Brian Conway | 2014-10-15 14:48:01 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-07 18:48:20 +0000 |
| commit | 5c8ae99283ac5e3eede915946ff8b2cd13a131cf (patch) | |
| tree | 56fc56b009e7411897ce80c243b74404335938f5 | |
| parent | 23f85dc1d238e4f59d159f1f95a8c177e7a4a345 (diff) | |
| download | homebrew-5c8ae99283ac5e3eede915946ff8b2cd13a131cf.tar.bz2 | |
libhdhomerun 20141210
- Makefile patching no longer necessary with this version (ppc is out).
- Headers for install are named as hdhomerun*.h explicitly.
- test hdhomerun_config for either presence or lack of devices (differing return codes)
Closes #33193.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/libhdhomerun.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/libhdhomerun.rb b/Library/Formula/libhdhomerun.rb new file mode 100644 index 000000000..c86dad365 --- /dev/null +++ b/Library/Formula/libhdhomerun.rb @@ -0,0 +1,21 @@ +require "formula" + +class Libhdhomerun < Formula + homepage "https://www.silicondust.com/support/downloads/linux/" + url "http://download.silicondust.com/hdhomerun/libhdhomerun_20141210.tgz" + sha1 "4f6827e17f8f79401f272f62089352fe01eae740" + + def install + system "make" + bin.install "hdhomerun_config" + lib.install "libhdhomerun.dylib" + include.install Dir["hdhomerun*.h"] + end + + test do + # Devices may be found or not found, with differing return codes + discover = pipe_output("#{bin}/hdhomerun_config discover") + outputs = ["no devices found", "hdhomerun device", "found at"] + assert outputs.any? { |x| discover.include? x } + end +end |
