forttopas stable port information

Package: forttopas
Version: 1.01
Revision: 3
Description: Semi-automatic Fortran to Pascal converter
Architecture: powerpc, i386
BuildDepends: fpc | fpc-trunk, xdev-toolkit, libicns1-bin, imagemagick
License: GPL

# Unpack Phase:
Source: mirror:sourceforge:fortran2pascal/%v/ForToPasSrcOnly1-01.zip
Source-MD5: 50341009f4f0f511157dbb48f5c54f49
SourceDirectory: ForToPasSrc

PatchScript: <<
#!/bin/sh -ev
sed -i.bak 's|Windows,||g' fAbout.pas
sed -i.bak 's|ShellAPI|Unix|g' fAbout.pas
sed -i.bak "s|ShellExecute|fpSystem('open http://www.shokhirev.com/nikolai.html');//|g" fAbout.pas
cat >%b/fAbout.lfm < object AboutBox: TAboutBox
Left = 331
Height = 187
Top = 153
Width = 298
BorderStyle = bsDialog
Caption = 'About'
ClientHeight = 187
ClientWidth = 298
Font.Height = -11
Font.Name = 'MS Sans Serif'
Position = poScreenCenter
LCLVersion = '0.9.28.2'
object Panel1: TPanel
Left = 8
Height = 145
Top = 0
Width = 281
BevelInner = bvRaised
BevelOuter = bvLowered
ClientHeight = 145
ClientWidth = 281
TabOrder = 0
object ProgramIcon: TImage
Left = 8
Height = 57
Top = 8
Width = 65
Picture.Data = {
07544269746D617076020000424D760200000000000076000000280000002000
0000200000000100040000000000000200000000000000000000100000000000
000000000000000080000080000000808000800000008000800080800000C0C0
C000808080000000FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFF
FF00000000000000000000000000000000000EE8787878EEEEEEE03F30878EEE
EEE00EE8787878EEEEEEE03F30878EEEEEE00EE8787878EEEEEEE03F30878EEE
EEE00EE8787878EEEEEEE03F30878EEEEEE00887787877788888803F3088787E
EEE00788787878878887803F3088887EEEE00788887888878887803F3088887E
EEE00877888887788888703F308887EEEEE00888777778888888037883088888
8EE007777777777777703787883087777EE00888888888888803787FF8830888
888008888888888880378777778830888880077777777788037873F3F3F87808
88E00888888888803787FFFFFFFF8830EEE00887777778800001111111111100
EEE00888888888888899B999B99999EEEEE00888888888888899B9B99BB9B9EE
EEE0088888888888899BB9BB99BB99EEEEE0078888888888899B999B999999EE
EEE0087788888778899B9B9BB9BB99EEEEE00888778778888E9B9B9BB9999EEE
EEE0088888788888EE9B99B9BB9BEEEEEEE00EE8888888EEEEE999B9999EEEEE
EEE00EEEE888EEEEEEEE99BB999EEEEEEEE00EEEEE8EEEEEEEEEE999B9EEEEEE
EEE00EEEEE8EEEEEEEEEEEE999EEEEEEEEE00EEEEE8EEEEEEEEEEEEE99EEEEEE
EEE00EEEEE8EEEEEEEEEEEEE9EEEEEEEEEE00EEEEE8EEEEEEEEEEEEEEEEEEEEE
EEE00EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE00000000000000000000000000000
0000
}
Stretch = True
end
object ProductName: TLabel
Left = 88
Height = 13
Top = 8
Width = 129
Caption = 'Fortran to Pascal Converter'
ParentColor = False
end
object Version: TLabel
Left = 88
Height = 13
Top = 32
Width = 56
Caption = 'Version: 1.0'
ParentColor = False
end
object Copyright: TLabel
Left = 88
Height = 13
Top = 56
Width = 176
Caption = 'Copyright: Nikolai V. Shokhirev, 2004'
ParentColor = False
end
object Label5: TLabel
Cursor = crHandPoint
Left = 8
Height = 13
Top = 112
Width = 96
Caption = 'www.shokhirev.com'
Font.Color = clBlue
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = [fsUnderline]
ParentColor = False
ParentFont = False
OnClick = Label5Click
end
object Label1: TLabel
Left = 120
Height = 13
Top = 112
Width = 145
Caption = '"Useful and useless programs"'
ParentColor = False
end
object Label2: TLabel
Left = 88
Height = 13
Top = 72
Width = 169
Caption = 'Updated by Nathanael Inkson 2006'
ParentColor = False
end
end
object OKButton: TButton
Left = 111
Height = 25
Top = 156
Width = 75
Caption = 'OK'
Default = True
ModalResult = 1
TabOrder = 1
end
end
FILEEOF
<<

# Compile Phase (NOTE: there is no configure):
CompileScript: <<
#!/bin/sh -ev

makepasx FortToPas.dpr

makepasx fForToPas.pas
makepasx fAbout.pas

cp %p/bin/dfmtolfm.ini .

dfmtolfm fForToPas.dfm -s
#dfmtolfm fAbout.dfm -s

fpc -dLCL -Mdelphi -Fu%p/share/lazarus/lcl/units/%m-darwin -Fu%p/share/lazarus/lcl/units/%m-darwin/carbon FortToPas.dpr

convert F2P.ico -resize 512x512 F2Pa.png
convert F2P.ico -resize 256x256 F2Pb.png
convert F2P.ico -resize 128x128 F2Pc.png
convert F2P.ico -resize 32x32 F2Pd.png
convert F2P.ico -resize 16x16 F2Pe.png
png2icns F2P.icns F2Pa.png F2Pb.png F2Pc.png F2Pd.png F2Pe.png

create_app_mac.sh FortToPas "FortranToPascalConverter"
rm FortranToPascalConverter.app/Contents/MacOS/FortToPas
mv FortToPas FortranToPascalConverter.app/Contents/MacOS/
mv F2P.icns FortranToPascalConverter.app/Contents/Resources/
sed -i.bak 's|English|English CFBundleIconFile F2P|g' FortranToPascalConverter.app/Contents/Info.plist
rm FortranToPascalConverter.app/Contents/Info.plist.bak

<<

# Install Phase:
InstallScript: <<
#!/bin/sh -ev
echo "nothing to install!"
<<

AppBundles: FortranToPascalConverter.app

DescDetail: <<
FortranToPascalConverter: A Fortran to Pascal (Delphi) converter.
It is a semi-automatic Fortran to Pascal converter by simple string
manipulations. Convert code quickly and easily with a user friendly GUI.
<<

DescUsage: <<
Double click the program in /Applications/Fink
<<

DescPort: <<
The About form was a problem. So I created a new one.
<<

Homepage: http://www.shokhirev.com/nikolai/programs/tools.html
Maintainer: Karl-Michael Schindler