the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: cowsay
Version: 3.03
Revision: 2
Source: ftp://ftp.nog.net/pub/tony/%n/%n-%v.tar.gz
Source-MD5: b29169797359420dadb998079021a494
BuildDepends: fink (>= 0.24.12-1)
PatchFile: %n.patch
PatchFile-MD5: 6d019d8bf3b08451caefedee832ffef6
CompileScript: echo
InstallScript: <<
echo s,\\@BANGPERL\\@,!/usr/bin/perl,\; > install.pl
echo s,\\@PREFIX\\@,%p,\; >> install.pl
chmod +x install.pl
mkdir -p %i/bin || (mkdir %i; mkdir %i/bin)
/usr/bin/perl -p install.pl cowsay > %i/bin/cowsay
chmod a+x %i/bin/cowsay
ln -s %p/bin/cowsay %i/bin/cowthink
mkdir -p %i/share/man/man1 || ($mkdir %i; mkdir %i/share; mkdir %i/share/man; mkdir %i/share/man/man1)
/usr/bin/perl -p install.pl cowsay.1 > %i/share/man/man1/cowsay.1
chmod a+r %i/share/man/man1/cowsay.1
ln -s %p/share/man/man1/cowsay.1 %i/share/man/man1/cowthink.1
mkdir -p %i/share/cows || (mkdir %i; mkdir %i/share; mkdir %i/share/cows)
cp -R cows %i/share
chmod 664 %i/share/cows/*.cow
<<
PostInstScript: <<
echo Okay, let us see if the install actually worked.
if [ ! -f %p/share/cows/default.cow ]; then
echo The default cow file did not make it across!
echo Ooops, it failed...sorry!
exit 1
fi
echo Installation complete! Enjoy the cows!
<<
DocFiles: ChangeLog INSTALL README MANIFEST
License: GPL
Description: Configurable talking characters in ASCII art
DescDetail: <<
cowsay is a configurable talking ASCII cow (and other characters),
written in Perl. It operates much as the figlet program does, and
is written in the same spirit of silliness.
<<
Homepage: http://www.nog.net/~tony/warez/cowsay.shtml
Maintainer: None
diff -ruN cowsay-3.03.orig/cowsay cowsay-3.03/cowsay
--- cowsay-3.03.orig/cowsay 2000-05-19 19:29:49.000000000 -0600
+++ cowsay-3.03/cowsay 2002-08-20 14:34:20.000000000 -0600
@@ -1,4 +1,4 @@
-#%BANGPERL%
+#@BANGPERL@
##
## Cowsay 3.03
@@ -16,7 +16,7 @@
$progname = basename($0);
$eyes = "oo";
$tongue = " ";
-$cowpath = $ENV{'COWPATH'} || '%PREFIX%/share/cows';
+$cowpath = $ENV{'COWPATH'} || '@PREFIX@/share/cows';
@message = ();
$thoughts = "";
diff -ruN cowsay-3.03.orig/cowsay.1 cowsay-3.03/cowsay.1
--- cowsay-3.03.orig/cowsay.1 1999-11-04 12:50:40.000000000 -0700
+++ cowsay-3.03/cowsay.1 2002-08-20 14:34:38.000000000 -0600
@@ -154,7 +154,7 @@
.B default.cow
in it.
.SH FILES
-.B %PREFIX%/share/cows
+.B @PREFIX@/share/cows
holds a sample set of cowfiles. If your
.B COWPATH
is not explicitly set, it automatically contains this directory.