Changeset 68792 for trunk/dports


Ignore:
Timestamp:
Jun 13, 2010, 8:49:38 PM (14 years ago)
Author:
blb@…
Message:

lang/python26 - do not link in X11 when tk is installed with +quartz, ticket #25221

Location:
trunk/dports/lang/python26
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/python26/Portfile

    r68165 r68792  
    66name                    python26
    77version                 2.6.5
    8 revision                1
     8revision                2
    99set major               [lindex [split $version .] 0]
    1010set branch              [join [lrange [split ${version} .] 0 1] .]
     
    7979      system "cd ${worksrcpath} && ed - Modules/posixmodule.c < ${filespath}/posixmodule.c.ed"
    8080   }
     81
     82   # Check for whether tk is installed for X11 or Quartz (to avoid trying
     83   # to link to X11 in the Quartz case, ticket #25221)
     84   if {[catch {exec grep "^TK_LIBS.*X11" ${prefix}/lib/tkConfig.sh > /dev/null 2>@1} results options]} {
     85      # Error from grep means not found, so Quartz
     86      system "cd ${worksrcpath} && patch -p0 < ${filespath}/patch-setup.py_tkquartz.diff"
     87   }
     88
    8189}
    8290
Note: See TracChangeset for help on using the changeset viewer.