[30317] trunk/dports/aqua/gimp-app/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 24 08:27:06 PDT 2007


Revision: 30317
          http://trac.macosforge.org/projects/macports/changeset/30317
Author:   yves at macports.org
Date:     2007-10-24 08:27:06 -0700 (Wed, 24 Oct 2007)

Log Message:
-----------
2.4.0 release

Modified Paths:
--------------
    trunk/dports/aqua/gimp-app/Portfile

Modified: trunk/dports/aqua/gimp-app/Portfile
===================================================================
--- trunk/dports/aqua/gimp-app/Portfile	2007-10-24 15:26:14 UTC (rev 30316)
+++ trunk/dports/aqua/gimp-app/Portfile	2007-10-24 15:27:06 UTC (rev 30317)
@@ -4,7 +4,7 @@
 PortGroup  xcode 1.0
 
 name            gimp-app
-version         2.4.0-rc1
+version         2.4.0
 maintainers     yves openmaintainer
 description     Gimp.app application bundle
 long_description ${description}
@@ -21,36 +21,57 @@
                 gimp.app.skel.tar.gz md5 66ad4912a3c71056c479c8eeef11fd43
 worksrcdir      ScriptExec
 
+pre-patch {
+    foreach f {Info.plist PkgInfo} {
+        delete ${workpath}/Gimp.app/Contents/$f
+        xinstall -m 644 ${filespath}/$f ${workpath}/Gimp.app/Contents
+    }
+    reinplace "s|__VERSION__|${version}|g" ${workpath}/Gimp.app/Contents/Info.plist
+}
 patch {
-    cd ${workpath}/Gimp.app/Contents
-    delete Info.plist PkgInfo
-    xinstall -m 644 ${filespath}/Info.plist ${filespath}/PkgInfo .
-    reinplace "s|__VERSION__|${version}|g" Info.plist
     reinplace "s|`dirname \\\\\"\$0\\\\\"`|${prefix}|g" \
-        Resources/openDoc Resources/script
+        ${workpath}/Gimp.app/Contents/Resources/openDoc \
+        ${workpath}/Gimp.app/Contents/Resources/script
 }
 
 destroot {
     xinstall -m 755 \
+        ${workpath}/Gimp.app/Contents/Resources/bin/getdisplay.sh \
+        ${destroot}${prefix}/bin
+}
+post-destroot {
+    foreach f {Gimp.icns bin etc lib share} {
+        delete ${workpath}/Gimp.app/Contents/Resources/$f
+    }
+    xinstall -m 644 -W ${filespath} Gimp.icns xcf.icns \
+        ${workpath}/Gimp.app/Contents/Resources
+
+    xinstall -m 755 \
         ${worksrcpath}/build/Deployment/ScriptExec.app/Contents/MacOS/ScriptExec \
-            ${workpath}/Gimp.app/Contents/MacOS/Gimp
+        ${workpath}/Gimp.app/Contents/MacOS/Gimp
 
-    cd ${workpath}/Gimp.app/Contents/Resources
-    xinstall -m 755 bin/getdisplay.sh ${destroot}${prefix}/bin
-    delete Gimp.icns bin etc lib share
-    xinstall -m 644 ${filespath}/Gimp.icns .
-    xinstall -m 644 ${filespath}/xcf.icns .
-
     xinstall -d ${destroot}/Applications/MacPorts
     copy ${workpath}/Gimp.app ${destroot}/Applications/MacPorts
 }
 
 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.4/gimprc :
-			(help-locales \"LANG\")
-				where LANG is your two-letters locale (fr, en, jp, ...)
-	"
+    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.4/gimprc :
+	    	(help-locales \"LANG\")
+	    		where LANG is your two-letters locale (fr, en, jp, ...)
+    "
 }
+
+variant quartz {
+    patch {}
+    destroot {
+        foreach f {openDoc script} {
+            delete ${workpath}/Gimp.app/Contents/Resources/$f
+            ln -s ${prefix}/bin/gimp \
+                ${workpath}/Gimp.app/Contents/Resources/$f
+        }
+    }
+}
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071024/df4fefb0/attachment.html


More information about the macports-changes mailing list