Ticket #42592: patch-hdhomerun_gui_2014Feb22_01.diff
File patch-hdhomerun_gui_2014Feb22_01.diff, 3.1 KB (added by ctreleaven (Craig Treleaven), 11 years ago) |
---|
-
Portfile
old new 2 2 # $Id: Portfile 98191 2012-09-28 02:03:19Z ecronin@macports.org $ 3 3 4 4 PortSystem 1.0 5 PortGroup app 1.0 5 6 6 7 name hdhomerun_gui 7 version 201 204058 version 20140121 8 9 categories multimedia 9 10 platforms darwin 10 11 license GPL-3 11 12 maintainers nomaintainer 12 description HDHomeRun GTK GUI 13 long_description ${description} 13 description HDHomeRun configuration utility, GTK GUI 14 long_description Provides a utility program to access, configure and test \ 15 HDHomeRun network tuner devices from SiliconDust including viewing \ 16 live television. May also be used to upgrade firmware. Uses GTK \ 17 graphical environment. 14 18 homepage http://www.silicondust.com/ 15 19 16 20 master_sites http://download.silicondust.com/hdhomerun … … 21 25 patch.args -p1 22 26 extract.suffix .tgz 23 27 worksrcdir hdhomerun_config_gui 24 checksums rmd160 e0d1b748878a93b569482c685071ed1706aa09ad \ 25 sha256 a2a9bee89d2911dd15024da53329bccf7cc5f14f801af12f32e50e0b54529ed2 28 checksums rmd160 1647563fee263f150cc52018c26c33199818946c \ 29 sha256 56575484578ce5a116a20e342969e41d60ad7db1212eb8c21ed134f14b6efd99 30 26 31 livecheck.type regex 27 32 livecheck.url http://www.silicondust.com/support/hdhomerun/downloads/ 28 33 livecheck.regex Current release: (\[0-9\]+) 29 34 30 35 depends_build port:pkgconfig 31 36 depends_lib port:hdhomerun port:gtk2 32 # VLC-devel would also be acceptable. VLC09 is not. Patch to handle 33 # this welcome 34 depends_run port:VLC 37 depends_run port:VLC \ 38 path:bin/Xquartz:xorg-server 35 39 36 40 post-patch { 37 41 reinplace "s|@FIRMWARE_DIR@|${prefix}/share/hdhomerun/|g" \ … … 42 46 ${worksrcpath}/OSX/Info.plist 43 47 } 44 48 45 post-destroot { 46 set app_contents \ 47 "${destroot}${applications_dir}/HDHomeRun Config.app/Contents" 49 post-build { 50 # no execute permission, will refuse to run with "Error 126", Permission denied 51 file attributes ${worksrcpath}/install-sh -permissions +x 52 } 48 53 49 xinstall -d -m 0755 ${app_contents}/Resources 50 xinstall -d -m 0755 ${app_contents}/MacOS 54 app.name HDHomerun 55 app.executable hdhomerun_config_gui 56 app.icon ${worksrcpath}/OSX/hdhr.icns 51 57 52 xinstall -m 0644 ${filespath}/PkgInfo ${app_contents} 53 xinstall -m 0644 ${worksrcpath}/OSX/Info.plist ${app_contents} 54 xinstall -m 0644 ${worksrcpath}/OSX/hdhr.icns \ 55 ${app_contents}/Resources56 ln -s ${prefix}/bin/hdhomerun_config_gui ${app_contents}/MacOS/58 post-destroot { 59 # Stop icon from bouncing on dock 60 # see https://trac.macports.org/ticket/40110 61 reinplace -E {s|(<string>APPL</string>)|\1 <key>LSUIElement</key><string>1</string>|} \ 62 "${destroot}${applications_dir}/HDHomerun.app/Contents/Info.plist" 57 63 }