Package: fortune-mod Version: 1.99.1 Revision: 2 Epoch: 1 Description: Database of witticisms provides fortune cookies on demand DescDetail: << The fortune package displays epigrams selected randomly from a selection of fortune files. This is an enhanced version of the BSD program. The data files (which can be shared) are contained in the 'fortunes-min', 'fortunes', and 'fortunes-off' packages. These are the machine-dependent parts of the fortune package, i.e. the fortune program and the programs used for generating the data files. << DescUsage: << To see a new fortune every time a Terminal window is opened, add the following line to ~/.login or ~/.bashrc: /sw/bin/fortune << HomePage: http://www.redellipse.net/code/fortune License: BSD BuildDepends: recode, recode-dev, recode-shlibs Depends: recode-shlibs Recommends: fortunes-min, fortunes Suggests: fortune-cookie-db #Replaces: %n (<= 9708-3) Source: mirror:debian:pool/main/f/%n/%n_%v.orig.tar.gz Source-MD5: f208805b3b712e32997d7667e0ec52d8 SourceDirectory: %n-%v # The -1 is Debian's revision, not Fink's Source2: mirror:debian:pool/main/f/%n/%n_%v-1.diff.gz Source2-MD5: ad25586fe7a7d48e83d53ae752474096 PatchScript: gunzip ../%n_%v-1.diff.gz; sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1; patch -p1 < ../%n_%v-1.diff CompileScript: << make FORTDIR=%p/bin COOKIEDIR=%p/share/fortunes LOCALDIR=%p/share/fortunes BINDIR=%p/bin LDFLAGS='-s -L%p/lib' REGEXDEFS='-DHAVE_REGEX_H -DPOSIX_REGEX' all fortune/fortune.man << InstallScript: << make FORTDIR=%i/bin COOKIEDIR=%i/share/fortunes LOCALDIR=%p/share/fortunes BINDIR=%i/bin BINMANDIR=%i/share/man/man1 FORTMANDIR=%i/share/man/man6 install cd %i/share/man/man1; gzip -6 strfile.1 << Maintainer: Carsten Klapp DescPort: << * ld: Undefined symbols: _program_name: added program_name http://www.delorie.com/gnu/docs/recode/recode_17.html * implicit declaration of function `exit': added #include * Force build of fortune/fortune.man during CompileScript for correct Fink path insertion into man file. * gzip strfile.1 during packaging for the unstr man file symlink. * Splitoff as Debian does, to allow for future localized fortune packages or simply other fortune packages in Fink. * Depends: fortunes-min | fortunes | fortune-cookie-db to ensure the default choice is not the offensive set, does not work if fortunes-de is selected during building, because Fink incorrrectly sees it as a circular dependency, when really fortune-mod only depends on fortune-cookie-db [virtual] RUNTIME, while the building of any fortune-cookie-db DOES require fortune-mod as a BuildDepends (to parse the datafiles during their creation). * Also, Fink currently does NOT handle virtual package selection, such as: 'fink install fortune-cookie-db' (does not work) so the PostInstScript here should be updated whenever a new localized fortunes package is added in the future. * ld: warning prebinding disabled because dependent library: /sw/lib/librecode.0.dylib is not prebound << PostInstScript: << echo echo " * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" echo "NOTE:" echo echo "At least one of the following additional packages MUST be" echo "installed before fortune-mod can provide fortune cookies:" echo echo " fortunes-min" echo " fortunes" echo " fortunes-de" echo " fortunes-off" echo echo " * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" << DocFiles: << ChangeLog cookie-files debian/copyright INDEX Notes Offensive README debian/README.Debian debian/README.Debian.offensive TODO << Splitoff: << Package: fortunes-off Description: Data files containing offensive fortune cookies DescDetail: << This package contains 'fortune cookies' which some may consider to be offensive. Please do not install this package if you or your users are easily offended. You'll need the fortune-mod package to display the cookies. << Provides: fortune-cookie-db Recommends: %N Files: share/fortunes/off DocFiles: << ChangeLog cookie-files debian/copyright INDEX Notes Offensive README debian/README.Debian debian/README.Debian.offensive TODO << << Splitoff2: << Package: fortunes-min Description: Data files containing a basic fortune cookie set DescDetail: << This package contains a small number of 'fortune cookies' for the bandwidth conscious. There are over 15000 different 'fortune cookies' in the fortunes package. You'll need the fortune-mod package to display the cookies. << Provides: fortune-cookie-db Recommends: %N Files: << share/fortunes/fortunes share/fortunes/fortunes.dat share/fortunes/fortunes.u8 share/fortunes/literature share/fortunes/literature.dat share/fortunes/literature.u8 share/fortunes/riddles share/fortunes/riddles.dat share/fortunes/riddles.u8 << DocFiles: << ChangeLog cookie-files debian/copyright INDEX Notes Offensive README debian/README.Debian debian/README.Debian.offensive TODO << << Splitoff3: << Package: fortunes Description: Data files containing fortune cookies DescDetail: << There are by far over 15000 different 'fortune cookies' in this package. You'll need the fortune-mod package to display the cookies. << Provides: fortune-cookie-db Recommends: %N Files: share/fortunes DocFiles: << ChangeLog cookie-files debian/copyright INDEX Notes Offensive README debian/README.Debian debian/README.Debian.offensive TODO << <<