Skip to content

Instantly share code, notes, and snippets.

@pithyless
Forked from jpwatts/mac-homebrew-pyexiv2.sh
Created January 22, 2012 17:19
Show Gist options
  • Select an option

  • Save pithyless/1657734 to your computer and use it in GitHub Desktop.

Select an option

Save pithyless/1657734 to your computer and use it in GitHub Desktop.

Revisions

  1. pithyless revised this gist Jan 22, 2012. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions mac-homebrew-pyexiv2.sh
    Original file line number Diff line number Diff line change
    @@ -1,22 +1,22 @@
    #!/bin/sh

    brew install python boost exiv2
    curl -O http://launchpadlibrarian.net/61465005/pyexiv2-0.3.0.tar.bz2
    tar xjvf pyexiv2-0.3.0.tar.bz2
    cd pyexiv2-0.3.0
    brew install python scons boost exiv2
    curl -O http://launchpadlibrarian.net/83595798/pyexiv2-0.3.2.tar.bz2
    tar xjvf pyexiv2-0.3.2.tar.bz2
    cd pyexiv2-0.3.2

    # https://answers.launchpad.net/pyexiv2/+question/140742
    echo "env['FRAMEWORKS'] += ['Python']" >> src/SConscript

    scons BOOSTLIB=boost_python-mt

    # https://answers.launchpad.net/pyexiv2/+question/132670
    install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.6/Python \
    /usr/local/Cellar/python/2.7.1/lib/libpython2.7.dylib \
    install_name_tool -change /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/Python \
    /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib \
    build/libexiv2python.dylib

    scons BOOSTLIB=boost_python-mt install

    # https://answers.launchpad.net/pyexiv2/+question/140742
    ln -s /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/libexiv2python.dylib \
    /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/libexiv2python.so
    ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libexiv2python.dylib \
    /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libexiv2python.so
  2. @jpwatts jpwatts renamed this gist Feb 10, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @jpwatts jpwatts created this gist Feb 10, 2011.
    22 changes: 22 additions & 0 deletions gistfile1.eclass
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    #!/bin/sh

    brew install python boost exiv2
    curl -O http://launchpadlibrarian.net/61465005/pyexiv2-0.3.0.tar.bz2
    tar xjvf pyexiv2-0.3.0.tar.bz2
    cd pyexiv2-0.3.0

    # https://answers.launchpad.net/pyexiv2/+question/140742
    echo "env['FRAMEWORKS'] += ['Python']" >> src/SConscript

    scons BOOSTLIB=boost_python-mt

    # https://answers.launchpad.net/pyexiv2/+question/132670
    install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.6/Python \
    /usr/local/Cellar/python/2.7.1/lib/libpython2.7.dylib \
    build/libexiv2python.dylib

    scons BOOSTLIB=boost_python-mt install

    # https://answers.launchpad.net/pyexiv2/+question/140742
    ln -s /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/libexiv2python.dylib \
    /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/libexiv2python.so