[82779] trunk/dports/graphics/MyPaint

ryandesign at macports.org ryandesign at macports.org
Fri Aug 19 17:51:07 PDT 2011


Revision: 82779
          http://trac.macports.org/changeset/82779
Author:   ryandesign at macports.org
Date:     2011-08-19 17:51:05 -0700 (Fri, 19 Aug 2011)
Log Message:
-----------
MyPaint:

 * use app portgroup
 * add app icon;
 * fix build by forcing use of python26 (by default it used the python scons uses, and now that that's python27, it failed saying "Implicit dependency '_PyMac_Error' not found, needed by target 'lib/_mypaintlib'")

Modified Paths:
--------------
    trunk/dports/graphics/MyPaint/Portfile
    trunk/dports/graphics/MyPaint/files/patch-SConstruct.diff

Modified: trunk/dports/graphics/MyPaint/Portfile
===================================================================
--- trunk/dports/graphics/MyPaint/Portfile	2011-08-20 00:45:32 UTC (rev 82778)
+++ trunk/dports/graphics/MyPaint/Portfile	2011-08-20 00:51:05 UTC (rev 82779)
@@ -2,10 +2,12 @@
 # $Id$
 
 PortSystem                  1.0
+PortGroup                   app 1.0
 
 name                        MyPaint
 set my_name                 mypaint
 version                     0.9.1
+revision                    1
 homepage                    http://mypaint.info/
 categories                  graphics
 maintainers                 ryandesign
@@ -62,13 +64,20 @@
         LICENSE \
         README \
         ${docdir}
-    
-    set appdir ${destroot}${applications_dir}/${name}.app/Contents/MacOS
-    xinstall -d ${appdir}
-    xinstall -m 755 ${filespath}/${name}.in ${appdir}/${name}
-    reinplace "s|@PREFIX@|${prefix}|g" ${appdir}/${name}
 }
 
+app.executable              ${workpath}/${name}
+app.icon                    pixmaps/mypaint_logo.png
+
+platform macosx {
+    post-extract {
+        xinstall -m 755 ${filespath}/${name}.in ${workpath}/${name}
+    }
+    post-build {
+        reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${name}
+    }
+}
+
 livecheck.type              regex
 livecheck.url               [lindex ${master_sites} 0]
 livecheck.regex             ${my_name}-(\[0-9.\]+)\\.tar

Modified: trunk/dports/graphics/MyPaint/files/patch-SConstruct.diff
===================================================================
--- trunk/dports/graphics/MyPaint/files/patch-SConstruct.diff	2011-08-20 00:45:32 UTC (rev 82778)
+++ trunk/dports/graphics/MyPaint/files/patch-SConstruct.diff	2011-08-20 00:51:05 UTC (rev 82779)
@@ -1,5 +1,14 @@
 --- SConstruct.orig	2011-03-04 08:44:59.000000000 -0600
-+++ SConstruct	2011-03-04 16:04:30.000000000 -0600
++++ SConstruct	2011-08-19 08:33:51.000000000 -0500
+@@ -5,7 +5,7 @@
+ 
+ # FIXME: sometimes it would be good to build for a different python
+ # version than the one running scons. (But how to find all paths then?)
+-python = 'python%d.%d' % (sys.version_info[0], sys.version_info[1])
++python = 'python2.6'
+ print 'Building for', python
+ 
+ if sys.platform == "win32":
 @@ -20,10 +20,7 @@
  
  SConsignFile() # no .scsonsign into $PREFIX please
@@ -22,3 +31,12 @@
  else:
      # some distros use python2.5-config, others python-config2.5
      try:
+@@ -78,7 +75,7 @@
+ 
+ def burn_python_version(target, source, env):
+     # make sure we run the python version that we built the extension modules for
+-    s =  '#!/usr/bin/env ' + python + '\n'
++    s =  '#!@PREFIX@/bin/' + python + '\n'
+     s += 5*'#\n'
+     s += '# DO NOT EDIT - edit %s instead\n' % source[0]
+     s += 5*'#\n'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110819/eb80ec3b/attachment-0001.html>


More information about the macports-changes mailing list