Ticket #2220: fix_finding_boost_in_brew_osx.diff

File fix_finding_boost_in_brew_osx.diff, 999 bytes (added by Hengjie, 12 years ago)

Patch to add Brew's prefix

  • deluge-1.3.5/setup.py

    From 0973571b79cbe5fa2a2b817091e015afd9ee8298 Mon Sep 17 00:00:00 2001
    From: Hengjie <hengjie@gmail.com>
    Date: Thu, 29 Nov 2012 17:30:47 +1300
    Subject: [PATCH] Fix bug finding boost in Brew.
    
    ---
     deluge-1.3.5/setup.py | 3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/deluge-1.3.5/setup.py b/deluge-1.3.5/setup.py
    index 3d05655..57a02a8 100755
    a b else:  
    150150    for include in os.environ.get("INCLUDEDIR", "").split(":"):
    151151        _include_dirs.append(include)
    152152
    153     _library_dirs += [sysconfig.get_config_var("LIBDIR"), '/opt/local/lib']
     153    _library_dirs += [sysconfig.get_config_var("LIBDIR"), '/opt/local/lib', '/usr/local/lib']
    154154    if osx_check():
    155155        _include_dirs += [
    156156            '/opt/local/include/boost-1_35',
    157157            '/opt/local/include/boost-1_36',
     158            '/usr/local/include'
    158159            '/sw/include/boost-1_35',
    159160            '/sw/include/boost'
    160161        ]