Ticket #29624: tortoisehg-applications_dir.diff

File tortoisehg-applications_dir.diff, 1.3 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

proposed patch

  • files/TortoiseHG.in

     
     1#!/bin/bash
     2
     3exec "@PREFIX@/bin/thg"
  • Portfile

    Property changes on: files/TortoiseHG.in
    ___________________________________________________________________
    Added: svn:executable
       + *
    Added: svn:eol-style
       + native
    
     
    66
    77name                tortoisehg
    88version             2.0.4
     9revision            1
    910categories          devel python
    1011platforms           darwin
    1112license             GPL-2
     
    4950
    5051    xinstall -m 644 -W ${worksrcpath} COPYING.txt ${destroot}${prefix}/share/doc/${name}
    5152}
     53
     54platform darwin {
     55    set appname {TortoiseHG}
     56    post-extract {
     57        copy ${filespath}/${appname}.in ${workpath}/${appname}
     58    }
     59    post-patch {
     60        reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${appname}
     61    }
     62    post-destroot {
     63        xinstall -d ${destroot}${applications_dir}/${appname}.app/Contents/MacOS
     64        xinstall ${workpath}/${appname} ${destroot}${applications_dir}/${appname}.app/Contents/MacOS
     65    }
     66}