Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv32059

Added Files:
        xraylib-gfortran.info xraylib-pm.info xraylib-python.info 
        xraylib.info 
Log Message:
sync. w/ 10.!4/stable, 10.4-EOL/unstable


--- NEW FILE: xraylib-pm.info ---
Info2: <<
Package: xraylib-pm%type_pkg[perl]
Version: 2.15.0
Revision: 3
Type: perl (5.8.6 5.8.8 5.10.0)

Description:  X-ray fluorescence library (Perl 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. 
<<

Maintainer: Alexander Hansen <alexkhan...@users.sourceforge.net>

License: BSD
HomePage: http://github.com/tschoonj/xraylib

BuildDepends: swig, fink-package-precedence
Depends: <<
xraylib-shlibs (>=%v-2), 
perl%type_pkg[perl]-core
<<

Source: https://github.com/downloads/tschoonj/xraylib/xraylib-%v.tar.gz
Source-MD5: 710d88bd367184cb27850f597374f9ec

UseMaxBuildJobs: false
GCC: 4.0
UpdatePOD: True

PatchScript: <<
perl -pi -e 
's|(.*PERL=)(\$\(PERL\))(.*INSTALL_BASE=)\$\(DESTDIR\)\$\(prefix\)(.*)|$1"$2"$3%p$4|'
 src/Makefile.in
<<

ConfigureParams: <<
--prefix=%p --disable-idl  --disable-python --disable-java \
--disable-fortran2003 --disable-static
<<

CompileScript: <<
#!/bin/sh -ev
./configure %c
make
fink-package-precedence .
<<

InfoTest: TestScript: make check || exit 2

InstallScript: <<
%{default_script}
rm -rf %i/include
rm %i/lib/libxrl.{la,*dylib}
rm -rf %i/lib/pkgconfig
rm -rf %i/share/xraylib
<<

DescPackaging: <<
Appears to want to build the whole works, so we do that and then remove stuff
unrelated to the Perl bindings  
<<

DocFiles: AUTHORS BUGS Changelog README TODO
#Info2
<<

--- NEW FILE: xraylib-python.info ---
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 <alexkhan...@users.sourceforge.net>

License: BSD
HomePage: http://github.com/tschoonj/xraylib

BuildDepends: swig, fink-package-precedence
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
<<

--- NEW FILE: xraylib-gfortran.info ---
Package: xraylib-gfortran
Version: 2.15.0
Revision: 2

Description:  X-ray fluorescence library (Fortran build)
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. 
<<

Maintainer: Alexander Hansen <alexkhan...@users.sourceforge.net>

License: BSD
HomePage: http://github.com/tschoonj/xraylib

BuildDepends: fink-package-precedence, gcc46-compiler, pkgconfig
Depends: %n-shlibs (=%v-%r), xraylib-shlibs (=%v-%r)

Source: https://github.com/downloads/tschoonj/xraylib/xraylib-%v.tar.gz
Source-MD5: 710d88bd367184cb27850f597374f9ec

UseMaxBuildJobs: false
BuildDependsOnly: true

ConfigureParams: <<
--disable-idl  --disable-perl --disable-python  --disable-java \
                                        --disable-static
<<
CompileScript: <<
#!/bin/sh -ev
export FC=%p/bin/gfortran-fsf-4.6
%{default_script}
fink-package-precedence .
<<

InfoTest: TestScript: make check || exit 2

InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
pushd %i/include/xraylib
rm *.h
popd
pushd %i/lib
rm libxrl.{la,dylib,3.dylib}
cd pkgconfig
rm libxrl.pc
popd
rm -rf %i/share/xraylib
<<

DescPackaging: <<
Build the whole package and remove everything not related to the 
Fortran bindings.

Keep Revision in sync with xraylib.info
<<

DocFiles: AUTHORS BUGS Changelog README TODO

SplitOff: <<
        Package: %N-shlibs 
        Files: lib/libxrlf03.3.dylib
        Shlibs:  %p/lib/libxrlf03.3.dylib 6.0.0 %n (>=2.15.0-1)
        DocFiles: AUTHORS BUGS Changelog README TODO
        Description:  X-ray fluorescence library (Fortran shlib)
<<

--- NEW FILE: xraylib.info ---
Package: xraylib
Version: 2.15.0
Revision: 2

Description:  X-ray fluorescence library (build-time)
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. 
<<

Maintainer: Alexander Hansen <alexkhan...@users.sourceforge.net>

License: BSD
HomePage: http://github.com/tschoonj/xraylib

BuildDepends: fink-package-precedence, pkgconfig, swig
Depends: %n-shlibs (=%v-%r)

Source: https://github.com/downloads/tschoonj/%N/%N-%v.tar.gz
Source-MD5: 710d88bd367184cb27850f597374f9ec

UseMaxBuildJobs: false
BuildDependsOnly: true
GCC: 4.0

ConfigureParams: <<
--disable-idl  --disable-perl --disable-python  --disable-fortran2003 \
--disable-static
<<

PatchScript: <<
        #!/bin/sh -ev
        os=`uname -r | cut -d. -f1`
        # check for 10.5 and 10.6 cases where the default architecture doesn't
        # match Fink's
        case $os in
                # 10.5/x86_64
                9) if [ "%m" = "x86_64" ] ; then jsubst=" -d64" ; fi ;;
                # 10.6/i386
                10) if [ "%m" = "i386" ] ; then jsubst=" -d32" ; fi ;;
                # all others
                *) jsubst="" ;;
        esac
        perl -pi -e "s/(JAVA\))/\1$jsubst/" example/Makefile.in
<<

CompileScript: <<
%{default_script}
fink-package-precedence .
<<

InfoTest: TestScript: make check || exit 2

InstallScript: <<
make install DESTDIR=%d
install_name_tool -id %p/share/%N/java/lib%N.jnilib 
%i/share/%N/java/lib%N.jnilib
<<

DescPackaging: <<
Disable IDL binding because I can't control whether folks have that or not.
Feel free to enable it locally :-)

Disable Python and Perl bindings to allow for multiple -pm and -py versions.

Disable Fortran bindings so that people can elect to build them if they need 
them
rather than forcing them to install gcc46 if they don't.

Enable Java bindings because Java is included with the OS.

Use install_name_tool on the java lib so that it has an absolute install_name. 

Patch examples/Makefile.in so that test 7 in the test suite uses the the same
architecture for the Java virtual machine as the Fink tree.

The text files are in the -shlibs package because they are used at runtime.
<<

DocFiles: AUTHORS BUGS Changelog README TODO

SplitOff: <<
        Package: %N-shlibs 
        Files: lib/libxrl.3.dylib share/%N/*.txt
        Shlibs: %p/lib/libxrl.3.dylib 6.0.0 %n (>=2.13.1-1)
        DocFiles: AUTHORS BUGS Changelog README TODO
        Description: X-ray fluorescence library (shared lib)
<<

SplitOff2: << 
        Package: %N-java
        Depends: system-java, %N-shlibs (= %v-%r)
        Files: share/%N/java
        Shlibs: %p/share/%N/java/lib%N.jnilib 0.0.0 %n (>=2.15.0-1)
        DocFiles: AUTHORS BUGS Changelog README TODO
        Description: X-ray fluorescence library (Java lib)
<<


------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to