From 62241d310ef855741426a5d47779b7f2821508de Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 4 Jan 2014 13:13:23 +0000 Subject: [PATCH] pyexiv2: cleanup python usage. --- Formula/pyexiv2.rb | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/Formula/pyexiv2.rb b/Formula/pyexiv2.rb index 2d91fbecd59..379ef65f9ac 100644 --- a/Formula/pyexiv2.rb +++ b/Formula/pyexiv2.rb @@ -5,7 +5,6 @@ class Pyexiv2 < Formula url 'http://launchpad.net/pyexiv2/0.3.x/0.3.2/+download/pyexiv2-0.3.2.tar.bz2' sha1 'ad20ea6925571d58637830569076aba327ff56d9' - depends_on :python depends_on 'scons' => :build depends_on 'exiv2' depends_on 'boost' @@ -14,19 +13,13 @@ class Pyexiv2 < Formula def patches; DATA; end def install - python do - # this build script ignores CPPFLAGS, but it honors CXXFLAGS - ENV.append "CXXFLAGS", ENV.cppflags - system "scons BOOSTLIB=boost_python-mt" + # this build script ignores CPPFLAGS, but it honors CXXFLAGS + ENV.append "CXXFLAGS", ENV.cppflags + system "scons BOOSTLIB=boost_python-mt" - # let's install manually - mv 'build/libexiv2python.dylib', 'build/libexiv2python.so' - python.site_packages.install 'build/libexiv2python.so', 'src/pyexiv2' - end - end - - def caveats - python.standard_caveats if python + # let's install manually + mv 'build/libexiv2python.dylib', 'build/libexiv2python.so' + (lib+'python2.7/site-packages').install 'build/libexiv2python.so', 'src/pyexiv2' end end