the Fink project is an effort to port
popular Unix programs to Mac OS X
Info3: <<
Package: patchy4-%type_pkg[fortran]
Type: fortran (gfortran)
Version: 4.15
Revision: 7
Description: CERNLIB patchy utilities
Architecture: i386, x86_64
BuildDepends: gcc47, sed
Depends: gcc47-shlibs
Provides: patchy
Source: http://cern.ch/~mommsen/fink/patchy_%v.tar.gz
Source-MD5: 4f7cb685300dfb89d374bae1f07ab3d1
SourceDirectory: patchy/%v/src
CompileScript: <<
#!/bin/sh -ev
export PATH=..:.:$PATH
%p/bin/sed -i -re 's:fort77:gfortran:g' rceta.sh
./rceta.sh
rm -f rceta.f rceta.o rceta
%p/bin/sed -i -re 's:f77:gfortran:g' fcasplit.f
%p/bin/sed -i -re "{
s:f77:gfortran:g;
s:-posix:-std=legacy:g;
}" p4boot.sh
%p/bin/sed -i -re "{ \
s:DOUBLE PRECISION ACTION:CHARACTER(8) ACTION:g; \
s:void abend_:#include
s:#include
s:char \*malloc\(\);::g; \
s:int nalc:size_t nalc:g; \
s:\(\(unsigned\) iadr\):((unsigned long) iadr):g; \
}" p4comp.fca
chmod a+x p4boot.sh
./p4boot.sh 0
rm -f y*.o y.lis
<<
InstallScript: <<
install -d %i/bin
install -m 755 y* %i/bin
install -m 755 fcasplit %i/bin/fcasplit4
<<
PostInstScript: <<
update-alternatives --install %p/bin/fcasplit fcasplit %p/bin/fcasplit4 20
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove fcasplit %p/bin/fcasplit4
fi
<<
License: GPL
DescDetail: <<
Utilities for extracting sources from patchy cards and cradles.
<<
Homepage: http://cernlib.web.cern.ch/cernlib
Maintainer: Remi Mommsen
<<