Changeset 73051 for trunk/dports/comms


Ignore:
Timestamp:
Nov 2, 2010, 4:45:53 AM (9 years ago)
Author:
devans@…
Message:

farsight2: fix Python configure patch to avoid hard coded prefix and post-patch reinplace.

Location:
trunk/dports/comms/farsight2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/comms/farsight2/Portfile

    r73047 r73051  
    3131                patch-configure.diff
    3232
    33 post-patch      {
    34                     reinplace "s|__MP_PYTHON_PREFIX__|${frameworks_dir}/Python.framework/Versions/2.6|" ${worksrcpath}/configure
    35                 }
    36 
    3733configure.python ${prefix}/bin/python2.6
    3834
  • trunk/dports/comms/farsight2/files/patch-configure.diff

    r73047 r73051  
    11--- configure.orig      2010-11-01 13:47:42.000000000 -0700
    2 +++ configure   2010-11-01 14:43:52.000000000 -0700
     2+++ configure   2010-11-01 21:38:53.000000000 -0700
    33@@ -13091,9 +13091,9 @@
    44 
     
    66 
    77-  PYTHON_PREFIX='${prefix}'
    8 +  PYTHON_PREFIX='/opt/local/Library/Frameworks/Python.framework/Versions/2.6'
     8+  PYTHON_PREFIX=`$PYTHON -c 'import sys; print sys.prefix;'`
    99 
    1010-  PYTHON_EXEC_PREFIX='${exec_prefix}'
    11 +  PYTHON_EXEC_PREFIX='/opt/local/Library/Frameworks/Python.framework/Versions/2.6'
     11+  PYTHON_EXEC_PREFIX=`$PYTHON -c 'import sys; print sys.exec_prefix;'`
    1212 
    1313 
Note: See TracChangeset for help on using the changeset viewer.