Ticket #21718: patch-Portfile.2.diff

File patch-Portfile.2.diff, 859 bytes (added by jagerman@…, 14 years ago)

Updated version of royliu's Portfile patch to also work for the +quartz variant

  • Portfile

    old new  
    2323                gimp.app.skel.tar.gz md5 66ad4912a3c71056c479c8eeef11fd43
    2424worksrcdir      ScriptExec
    2525
     26patchfiles      patch-main.c.diff
     27
    2628pre-patch {
    2729    foreach f {Info.plist PkgInfo} {
    2830        delete ${workpath}/Gimp.app/Contents/$f
     
    3335    reinplace "s|__VERSION__|${version}|g" ${workpath}/Gimp.app/Contents/Info.plist
    3436}
    3537
    36 patch {
     38post-patch {
    3739    reinplace "s|`dirname \\\\\"\$0\\\\\"`|${prefix}|g" \
    3840        ${workpath}/Gimp.app/Contents/Resources/openDoc \
    3941        ${workpath}/Gimp.app/Contents/Resources/script
     
    7577}
    7678
    7779variant quartz {
    78     patch {}
     80    post-patch {}
    7981    destroot {
    8082        foreach f {openDoc script} {
    8183            delete ${workpath}/Gimp.app/Contents/Resources/$f