the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: clhep2
Version: 2.1.0.1
Revision: 12
BuildDependsOnly: true
Description: Class library for high energy physics
Maintainer: Remi Mommsen
Source: http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-%v.tgz
Source-MD5: dadfbe2c94a3f644cd085489c36b1bfd
SourceDirectory: %v/CLHEP
GCC: 4.0
Depends: %n-shlibs (=%v-%r)
BuildDepends: fink (>= 0.24.12)
Conflicts: clhep
Replaces: clhep
Suggests: clhep2-doc
PatchFile: %n.patch
PatchFile-MD5: c7e63aa63154402d4b0f80c531d9c596
PatchScript: <<
#!/bin/sh -ev
%{default_script}
for file in `/usr/bin/find . -name "Makefile.in" -print` ; do
/usr/bin/sed -i '.bak' 's/\($(CXXLINK).*\)-o $\@/\1/' $file
/usr/bin/sed -i '.bak' 's/-@VERSION@/\.@VERSION@/' $file
/usr/bin/sed -i '.bak' 's/$(SHNAME)$\@/$(SHNAME)$(subst \@VERSION\@,2,$\@)/' $file
done
for file in `/usr/bin/find . -name "configure" -print` ; do
/usr/bin/sed -i '.bak' 's/++)/++*)/' $file
/usr/bin/sed -i '.bak' 's/-single_module/-single_module -compatibility_version 3 -current_version 3.1.0/' $file
/usr/bin/sed -i '.bak' 's=-Wl,-install_name,=-install_name %p/lib/=' $file
/usr/bin/sed -i '.bak' 's/^ build_shared="no"/ build_shared="yes"/' $file
done
<<
CompileScript: <<
./configure %c --cache-file=%b/config.cache --enable-shared --disable-dependency-tracking
make
<<
InstallScript: <<
#!/bin/sh -ev
make install prefix=%i
mkdir -p %i/share/doc/clhep
cp %b/README %i/share/doc/clhep
cp %b/ChangeLog %i/share/doc/clhep
cp %b/COPYING* %i/share/doc/clhep
cd %i/lib
for file in `/bin/ls -1 libCLHEP*.%v.*` ; do
instname=`echo $file | /usr/bin/sed 's/\.%v//'`
/bin/ln -sf $file $instname
done
<<
SplitOff: <<
Package: %N-shlibs
Description: Shared library for CLHEP
InstallScript: <<
#!/bin/sh -ev
/usr/bin/install -d -m 755 %i/lib
/bin/mv %I/lib/libCLHEP*.%v.dylib %i/lib
cd %i/lib
for file in `/bin/ls -1 libCLHEP*.%v.dylib` ; do
instname=`echo $file | /usr/bin/sed 's/%v/2/'`
/bin/ln -sf $file $instname
done
<<
Shlibs: <<
%p/lib/libCLHEP.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
%p/lib/libCLHEP-Cast.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
%p/lib/libCLHEP-Evaluator.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
%p/lib/libCLHEP-Exceptions.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
%p/lib/libCLHEP-GenericFunctions.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
%p/lib/libCLHEP-Geometry.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
%p/lib/libCLHEP-Matrix.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
%p/lib/libCLHEP-Random.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
%p/lib/libCLHEP-RandomObjects.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
%p/lib/libCLHEP-RefCount.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
%p/lib/libCLHEP-Vector.2.dylib 3.0.0 clhep2 (>= 2.0.1.1-11)
<<
<<
DescDetail: <<
CLHEP is intended to be a set of HEP-specific foundation and utility
classes such as random generators, physics vectors, geometry and linear
algebra.
<<
DescPackaging: <<
Previous package maintainer Matt Stephenson
<<
License: Restrictive/Distributable
Homepage: http://cern.ch/clhep
--- CLHEP.orig/Random/src/TripleRand.cc 2010-06-16 19:24:53.000000000 +0200
+++ CLHEP.new/Random/src/TripleRand.cc 2011-08-02 15:29:22.000000000 +0200
@@ -200,13 +200,13 @@
TripleRand::operator float() {
return (float)
- ( ( integerCong ^ tausworthe ^ hurd ) * twoToMinus_32()
+ ( ( integerCong ^ tausworthe ^ (unsigned int)hurd ) * twoToMinus_32()
+ nearlyTwoToMinus_54() );
// make sure non-zero!
}
TripleRand::operator unsigned int() {
- return integerCong ^ tausworthe ^ hurd;
+ return integerCong ^ tausworthe ^ (unsigned int)hurd;
}
Hurd288Engine & TripleRand::Hurd() { return hurd; }