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

Added Files:
        xraylib-gfortran.info xraylib-oct.info xraylib-pm.info 
        xraylib-python.info xraylib.info 
Log Message:
sync with 10.7

--- NEW FILE: xraylib-pm.info ---
Info2: <<
Package: xraylib-pm%type_pkg[perl]
Version: 2.15.0
Revision: 2
Type: perl (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-%r), 
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: <<
make install DESTDIR=%d
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: 1

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
<<

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. 

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)
<<

--- NEW FILE: xraylib-oct.info ---
Info2: <<
Package: xraylib-oct%type_pkg[oct]
Version: 1.0.8
Type: oct (3.0.5 3.2.4), forge (xraylib)
Revision: 1
Maintainer: Alexander Hansen <alexkhan...@users.sourceforge.net>
# unfortunately, Homepage won't do types
Homepage: http://octave.sourceforge.net/xraylib/index.html 
Description: Xraylib bindings for Octave
DescDetail: <<
Bindings to the Xraylib functions

This package provides the following functions:
<<

License: GPL

# default source
# Source: 
http://voxel.dl.sourceforge.net/sourceforge/octave/%type_raw[forge]-%v.tar.gz
# this will redirect like a fiend, and then you can replace it with a one-hop:
Source: 
mirror:sourceforge:octave/Octave%%20Forge%%20Packages/R2009-05-08/%type_raw[forge]-%v.tar.gz
# replacing "Individual Package Releases" with the  relevant directory that you 
get from the first
# Source above.
Source-MD5: 2a3d14aa3c3f714e8782a54593ee9129

# All octave-forge packages have to have the following BuildDepends:
#  octave%type_pkg[oct]-dev | octave%type_pkg[oct]-atlas-dev,
# fftw3, 
# ( %type_pkg[oct] = 305 ) hdf5.7-oldapi,
# ( %type_pkg[oct] != 305 ) hdf5.7
#
# Packages which serve only Octave-3.0.5 or only Octave > 3.0.5 need
# not use the conditional, of course.

BuildDepends: <<
  octave%type_pkg[oct]-dev | octave%type_pkg[oct]-atlas-dev, 
  fftw3,
  ( %type_pkg[oct] = 305 ) hdf5.7-oldapi,
  ( %type_pkg[oct] != 305 ) hdf5.7,
  xraylib
<<
Depends: <<
  octave%type_pkg[oct] | octave%type_pkg[oct]-atlas,
  xraylib-shlibs
<<
Conflicts: octave-forge

DescPackaging: <<
This package:
Normally rolls its own xraylib, but that wasn't working; building against an
external xraylib worked just fine.

Common for all octave-forge packages:

We read in postinst and prerm template scripts installed by octaveN and modify
them to use the name of this package because Octave's package manager can't 
cope with non-literal arguments.

The Type: forge (pkgname) is used to minimize what needs to be changed when
using this .info file as a template, or when the package name contains 
underscores.
<<

#### Insert required changes here ####

PatchScript:  <<
perl -pi -e    's|-I\./xraylib/src|-I%p/include/xraylib|; \
                                s|-L\./xraylib/src|-L%p/lib|; \
                                s|.*inline||' src/Makefile
<<
######################################

# Do not change anything from this point down, unless absolutely necessary,
# since the foo-oct%type_pkg[oct] packages are designed to be built/installed
# in the same way.

NoSetCPPFLAGS: true
NoSetLDFLAGS: true
SetLIBRARY_PATH: /usr/X11R6/lib:%p/lib
SetMAKEFLAGS: -j1

CompileScript:  OCTAVE=%p/bin/octave-%type_raw[oct] 
%p/share/octave/%type_raw[oct]/scripts/octave-forge-compile.sh 
%type_raw[forge]-%v

InstallScript: << 
        #!/bin/sh -ev
        %p/share/octave/%type_raw[oct]/scripts/octave-forge-install.sh 
%type_raw[forge]-%v %i %b
        mkdir -p %i/share/octave/%type_raw[oct]/%type_raw[forge]-%v
        # copy template scripts
        cp %p/share/octave/%type_raw[oct]/scripts/octave-forge-prerm 
%p/share/octave/%type_raw[oct]/scripts/octave-forge-postinst 
%i/share/octave/%type_raw[oct]/%type_raw[forge]-%v
        cd %i/share/octave/%type_raw[oct]/%type_raw[forge]-%v
        sed -i -e 's/@PKGNAME@/%type_raw[forge]-%v/' octave-forge-postinst
        sed -i -e 's/@PKGNAME@/%type_raw[forge]/' octave-forge-prerm
        chmod a+x octave-forge*
<<
PostInstScript:  <<
        if [ -s %p/var/octave/%type_raw[oct]/octave_packages ] && [ -f 
%p/var/octave/%type_raw[oct]/octave_packages ] 
        then 
                
%p/share/octave/%type_raw[oct]/%type_raw[forge]-%v/octave-forge-postinst
        else
                mv 
%p/share/octave/%type_raw[oct]/packages/%type_raw[forge]-%v/octave_packages 
%p/var/octave/%type_raw[oct]/octave_packages
        fi
<<

PreRmScript: 
%p/share/octave/%type_raw[oct]/%type_raw[forge]-%v/octave-forge-prerm
<<

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to