--- Portfile.orig 2010-01-10 03:25:22.000000000 -0800 +++ Portfile 2010-01-10 03:25:22.000000000 -0800 @@ -23,6 +23,8 @@ gimp.app.skel.tar.gz md5 66ad4912a3c71056c479c8eeef11fd43 worksrcdir ScriptExec +patchfiles patch-main.c.diff + pre-patch { foreach f {Info.plist PkgInfo} { delete ${workpath}/Gimp.app/Contents/$f @@ -33,7 +35,7 @@ reinplace "s|__VERSION__|${version}|g" ${workpath}/Gimp.app/Contents/Info.plist } -patch { +post-patch { reinplace "s|`dirname \\\\\"\$0\\\\\"`|${prefix}|g" \ ${workpath}/Gimp.app/Contents/Resources/openDoc \ ${workpath}/Gimp.app/Contents/Resources/script @@ -67,10 +69,10 @@ post-install { ui_msg " If you are having problems viewing the help files when using Gimp.app, - 1- Make sure you have the user manual installed (port gimp-user-manual) - 2- Add the following line to ~/.gimp-2.6/gimprc : - (help-locales \"LANG\") - where LANG is your two-letters locale (fr, en, jp, ...) + 1- Make sure you have the user manual installed (port gimp-user-manual) + 2- Add the following line to ~/.gimp-2.6/gimprc : + (help-locales \"LANG\") + where LANG is your two-letters locale (fr, en, jp, ...) " }