Info2: << Package: xraylib-python%type_pkg[python] Version: 2.16.0 Revision: 3 Type: python (2.7), base (xraylib) 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: https://github.com/tschoonj/xraylib/wiki BuildDepends: swig, fink-package-precedence, libgettext8-dev Depends: << xraylib3-shlibs (>= %v-1), python%type_pkg[python], python%type_pkg[python]-shlibs << Source: http://lvserver.ugent.be/xraylib/xraylib-%v.tar.gz Source-Checksum: SHA256(91ccbd25338c00027d58ee13239375926a0e106d9b883d1c927e846e035e276c) PatchScript: << # Patch configure to not link like Puma on Yosemite perl -pi.bak -e 's|10\.\[012\]\*|10.[012][,.]*|g' configure perl -pi -e 's|/usr/bin/env python|%p/bin/python%type_raw[python]|' python/xraylib << UseMaxBuildJobs: false GCC: 4.0 ConfigureParams: << --prefix=%p/opt/xraylib/%v \ --disable-idl --disable-perl --disable-java \ --disable-fortran2003 --disable-lua --disable-static \ --enable-python-integration << 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: << #!/bin/sh -ev make install DESTDIR=%d install -d %i/bin mv %i/opt/xraylib/%v/bin/xraylib %i/opt/xraylib/%v/bin/xraylib-%type_raw[python] pushd %i/bin ln -s ../opt/xraylib/%v/bin/xraylib-%type_raw[python] cd %i/opt/xraylib/%v rm -rf include rm -rf lib rm -rf share << 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. Does not support Python > 2.7 (as of yet). << DocFiles: AUTHORS BUGS Changelog README TODO PostInstScript: << update-alternatives --verbose --install %p/bin/xraylib xraylib-python %p/opt/xraylib/%v/bin/xraylib-%type_raw[python] %type_pkg[python] << PreRmScript: << if [ $1 != "upgrade" ]; then update-alternatives --verbose --remove xraylib-py %p/opt/xraylib/%v/bin/xraylib-%type_raw[python] fi << #Info2 <<