New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82779


Ignore:
Timestamp:
08/19/11 17:51:05 (4 years ago)
Author:
ryandesign@…
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'")
Location:
trunk/dports/graphics/MyPaint
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/MyPaint/Portfile

    r76664 r82779  
    33 
    44PortSystem                  1.0 
     5PortGroup                   app 1.0 
    56 
    67name                        MyPaint 
    78set my_name                 mypaint 
    89version                     0.9.1 
     10revision                    1 
    911homepage                    http://mypaint.info/ 
    1012categories                  graphics 
     
    6365        README \ 
    6466        ${docdir} 
    65      
    66     set appdir ${destroot}${applications_dir}/${name}.app/Contents/MacOS 
    67     xinstall -d ${appdir} 
    68     xinstall -m 755 ${filespath}/${name}.in ${appdir}/${name} 
    69     reinplace "s|@PREFIX@|${prefix}|g" ${appdir}/${name} 
     67} 
     68 
     69app.executable              ${workpath}/${name} 
     70app.icon                    pixmaps/mypaint_logo.png 
     71 
     72platform macosx { 
     73    post-extract { 
     74        xinstall -m 755 ${filespath}/${name}.in ${workpath}/${name} 
     75    } 
     76    post-build { 
     77        reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/${name} 
     78    } 
    7079} 
    7180 
  • trunk/dports/graphics/MyPaint/files/patch-SConstruct.diff

    r76664 r82779  
    11--- SConstruct.orig     2011-03-04 08:44:59.000000000 -0600 
    2 +++ SConstruct  2011-03-04 16:04:30.000000000 -0600 
     2+++ SConstruct  2011-08-19 08:33:51.000000000 -0500 
     3@@ -5,7 +5,7 @@ 
     4  
     5 # FIXME: sometimes it would be good to build for a different python 
     6 # version than the one running scons. (But how to find all paths then?) 
     7-python = 'python%d.%d' % (sys.version_info[0], sys.version_info[1]) 
     8+python = 'python2.6' 
     9 print 'Building for', python 
     10  
     11 if sys.platform == "win32": 
    312@@ -20,10 +20,7 @@ 
    413  
     
    2332     # some distros use python2.5-config, others python-config2.5 
    2433     try: 
     34@@ -78,7 +75,7 @@ 
     35  
     36 def burn_python_version(target, source, env): 
     37     # make sure we run the python version that we built the extension modules for 
     38-    s =  '#!/usr/bin/env ' + python + '\n' 
     39+    s =  '#!@PREFIX@/bin/' + python + '\n' 
     40     s += 5*'#\n' 
     41     s += '# DO NOT EDIT - edit %s instead\n' % source[0] 
     42     s += 5*'#\n' 
Note: See TracChangeset for help on using the changeset viewer.