pyexiv2: cleanup python usage.
parent
8f955c60e8
commit
62241d310e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue