Info2: << Package: xraylib-python%type_pkg[python] Version: 2.15.0 Revision: 2 Type: python (2.6 2.7 3.1) Description: X-ray fluorescence library (Python interface) DescDetail: << X-ray matter interaction cross sections for X-ray fluorescence applications. It is a C library with also Python, IDL, PERL and Fortran interfaces. << DescUsage: << This package installs an 'xraylib-%type_raw[python]' executable. In addition, an 'xraylib' excutable is also installed; this is governed by the update- alternatives system (cf. 'man update-alternatives'). You can see which package is currently providing 'xraylib' by running update-alternatives --display xraylib-python << Maintainer: Alexander Hansen License: BSD Homepage: http://github.com/tschoonj/xraylib BuildDepends: swig, fink-package-precedence, libgettext8-dev Depends: << xraylib-shlibs (=%v-%r), python%type_pkg[python], python%type_pkg[python]-shlibs << Source: https://github.com/downloads/tschoonj/xraylib/xraylib-%v.tar.gz Source-MD5: 710d88bd367184cb27850f597374f9ec PatchScript: perl -pi -e 's|/usr/bin/env python|%p/bin/python%type_raw[python]|' python/xraylib UseMaxBuildJobs: false GCC: 4.0 ConfigureParams: << --disable-idl --disable-perl --disable-java \ --disable-fortran2003 --disable-static << CompileScript: << #!/bin/sh -ev export PYTHON=%p/bin/python%type_raw[python] export PYTHON_VERSION=%type_raw[python] %{default_script} fink-package-precedence . << InfoTest: TestScript: make check || exit 2 InstallScript: << make install DESTDIR=%d rm -rf %i/include mv %i/bin/xraylib %i/bin/xraylib-%type_raw[python] rm %i/lib/libxrl.{la,*dylib} rm -rf %i/lib/pkgconfig rm -rf %i/share/xraylib << DescPackaging: << Patch the "xraylib" executable script to use the right interpreter. Appears to want to build the whole works, so we do that and then remove stuff unrelated to the Python bindings. Use update-alternatives so that we can have the "xraylib" executable and still allow for multiple pyversions. << DocFiles: AUTHORS BUGS Changelog README TODO PostInstScript: << update-alternatives --verbose --install %p/bin/xraylib xraylib-python %p/bin/xraylib-%type_raw[python] %type_pkg[python] << PreRmScript: << if [ $1 != "upgrade" ]; then update-alternatives --verbose --remove xraylib-py %p/bin/xraylib-%type_raw[python] fi << #Info2 <<