pcal stable port information

Package: pcal
Version: 4.11.0
Revision: 3
Description: Generates PostScript calendars
License: Artistic
Homepage: http://pcal.sourceforge.net
Maintainer: Monic Polynomial

Source: mirror:sourceforge:%n/%n-%v.tgz
Source-MD5: 0ed7e9bec81fe3bdd62f8af283bef704

PatchFile: %n.patch
PatchFile-MD5: 6c6a0f3b2ce883e2c46b11d11f4c0ab4

BuildDepends: fink (>= 0.24.12)

CompileScript: make

InstallScript: <<
#!/bin/bash -ev
make install DESTDIR=%i INSTALLMAN1DIR=%i/share/man/man1
/usr/bin/install -d -m 700 %i/share/%n
for d in examples scripts html eps
do
/bin/cp -r $d %i/share/%n
done
/bin/chmod -R go=u-w %i/share/%n
<<

DocFiles: doc/ReadMe.txt doc/pcal-help.ps doc/pcal-help.html doc/pcal-help.txt

DescDetail: <<
pcal generates PostScript to produce landscape or portrait calendars for any
month and year. By default, pcal simply prints an empty calendar. However, by
setting a date/configuration file, it is possible to place events in the
appropriate dates of the calendar.
<<

DescUsage: <<
# Writes a whole-year 2009 calendar to 2009cal.ps
pcal 2009 -o 2009cal.ps

# Writes the April 2009 calendar to april2009cal.ps
pcal 4 2009 -o april2009cal.ps

Check the man page and the documentation for more elaborate uses of pcal,
including the syntax of date/configuration files.

The directory %p/share/pcal contains the following subdirectories:
- 'examples': date/configuration files with national holidays
- 'scripts': shell scripts that show how to automate tasks involving calendars
- 'html': bash and Perl CGI scripts
- 'eps': the recycle icon in EPS format
<<

pcal stable port .patch

--- pcal-4.11.0/Makefile.orig 2009-04-03 21:20:57.000000000 -0300
+++ pcal-4.11.0/Makefile 2009-04-04 09:01:00.000000000 -0300
@@ -138,19 +138,7 @@
EXECDIR = exec
DOCDIR = doc

-#
-# Compiling for DOS+DJGPP requires different directories for the installed
-# executable and the 'man'/'cat' pages. Unix uses the values shown below.
-#
-ifeq ($(OS),DJGPP) # DOS+DJGPP
- BINDIR = $(DJDIR)/bin
- MANDIR = $(DJDIR)/man/man1
- CATDIR = $(DJDIR)/man/cat1
-else # Unix
- BINDIR = /usr/local/bin
- MANDIR = /usr/man/man1
- CATDIR = /usr/man/cat1
-endif
+BINDIR=$(DESTDIR)/bin

OBJECTS = $(OBJDIR)/pcal.o \
$(OBJDIR)/encvec.o $(OBJDIR)/exprpars.o \
@@ -342,17 +330,12 @@
fresh: clobber $(PCAL)

man: $(DOCDIR)/pcal.man
- nroff -man $(DOCDIR)/pcal.man > $(DOCDIR)/pcal.cat
groff -man -Tps $(DOCDIR)/pcal.man >$(DOCDIR)/pcal-help.ps
groff -man -Thtml $(DOCDIR)/pcal.man >$(DOCDIR)/pcal-help.html
groff -man -Tascii $(DOCDIR)/pcal.man >$(DOCDIR)/pcal-help.txt

install: $(EXECDIR)/$(PCAL) man
- mkdir -p $(DESTDIR)/$(BINDIR)
- mkdir -p $(DESTDIR)/$(MANDIR)
- mkdir -p $(DESTDIR)/$(CATDIR)
- cp $(EXECDIR)/$(PCAL) $(DESTDIR)/$(BINDIR)
- cp $(DOCDIR)/pcal.man $(DESTDIR)/$(MANDIR)/pcal.1
- $(PACK) $(DESTDIR)/$(MANDIR)/pcal.1
- cp $(DOCDIR)/pcal.cat $(DESTDIR)/$(CATDIR)/pcal.1
- $(PACK) $(DESTDIR)/$(CATDIR)/pcal.1
+ mkdir -p $(BINDIR)
+ mkdir -p $(INSTALLMAN1DIR)
+ cp $(EXECDIR)/$(PCAL) $(BINDIR)
+ cp $(DOCDIR)/pcal.man $(INSTALLMAN1DIR)/pcal.1

pcal _unstable_ port .patch