Ticket #42592: patch-hdhomerun_gui_2014Feb22_01.diff

File patch-hdhomerun_gui_2014Feb22_01.diff, 3.1 KB (added by ctreleaven (Craig Treleaven), 10 years ago)
  • Portfile

    old new  
    22# $Id: Portfile 98191 2012-09-28 02:03:19Z ecronin@macports.org $
    33
    44PortSystem          1.0
     5PortGroup           app 1.0
    56
    67name                hdhomerun_gui
    7 version             20120405
     8version             20140121
    89categories          multimedia
    910platforms           darwin
    1011license             GPL-3
    1112maintainers         nomaintainer
    12 description         HDHomeRun GTK GUI
    13 long_description    ${description}
     13description         HDHomeRun configuration utility, GTK GUI
     14long_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.
    1418homepage            http://www.silicondust.com/
    1519
    1620master_sites        http://download.silicondust.com/hdhomerun
     
    2125patch.args          -p1
    2226extract.suffix      .tgz
    2327worksrcdir          hdhomerun_config_gui
    24 checksums           rmd160 e0d1b748878a93b569482c685071ed1706aa09ad \
    25                     sha256 a2a9bee89d2911dd15024da53329bccf7cc5f14f801af12f32e50e0b54529ed2
     28checksums           rmd160  1647563fee263f150cc52018c26c33199818946c \
     29                    sha256  56575484578ce5a116a20e342969e41d60ad7db1212eb8c21ed134f14b6efd99
     30
    2631livecheck.type      regex
    2732livecheck.url       http://www.silicondust.com/support/hdhomerun/downloads/
    2833livecheck.regex     Current release: (\[0-9\]+)
    2934
    3035depends_build       port:pkgconfig
    3136depends_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
     37depends_run         port:VLC \
     38                    path:bin/Xquartz:xorg-server
    3539
    3640post-patch {
    3741    reinplace "s|@FIRMWARE_DIR@|${prefix}/share/hdhomerun/|g" \
     
    4246        ${worksrcpath}/OSX/Info.plist
    4347}
    4448
    45 post-destroot {
    46     set app_contents \
    47         "${destroot}${applications_dir}/HDHomeRun Config.app/Contents"
     49post-build {
     50# no execute permission, will refuse to run with "Error 126", Permission denied
     51    file attributes ${worksrcpath}/install-sh -permissions +x
     52}
    4853
    49     xinstall -d -m 0755 ${app_contents}/Resources
    50     xinstall -d -m 0755 ${app_contents}/MacOS
     54app.name            HDHomerun
     55app.executable      hdhomerun_config_gui
     56app.icon            ${worksrcpath}/OSX/hdhr.icns
    5157
    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}/Resources
    56     ln -s ${prefix}/bin/hdhomerun_config_gui ${app_contents}/MacOS/
     58post-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"
    5763}