lcal stable port information

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

Source: mirror:sourceforge:pcal/%n-%v.tgz
Source-MD5: c0ef6cca9296b8fe00efb2687a27eeb1

PatchFile: %n.patch
PatchFile-MD5: a391c341ac8259c7d0815246ab69918b

BuildDepends: fink (>= 0.24.12)

CompileScript: make
InstallScript: make install DESTDIR=%i INSTALLMAN1DIR=%i/share/man/man1

DocFiles: ReadMe.txt lcal-help.html lcal-help.ps lcal-help.txt

DescDetail: <<
Lcal is a program which generates full-year PostScript lunar (moon phase)
calendars in a 2-page format, a compressed 1-page format, or an odd-days-only
1-page format.
<<

DescUsage: <<
# Writes a whole-year 2-page 2009 lunar calendar to 2009cal.ps
lcal 2009 -o 2009cal.ps

# 1-page 2009 lunar calendar
lcal 2009 -S -o 2009cal.ps

# 1-page 2009 odd-days-only lunar calendar
lcal 2009 -O -o 2009cal.ps

Check the man page and the documentation for a detailed description of lcal's
options.
<<

lcal stable port .patch

diff -Nurd lcal-2.1.0.ori/Makefile lcal-2.1.0/Makefile
--- lcal-2.1.0.ori/Makefile 2006-08-04 23:02:48.000000000 -0300
+++ lcal-2.1.0/Makefile 2009-05-24 09:31:46.000000000 -0300
@@ -107,6 +107,7 @@
MANDIR = /usr/man/man1
CATDIR = /usr/man/cat1
endif
+BINDIR=$(DESTDIR)/bin

OBJECTS = $(OBJDIR)/lcal.o

@@ -186,18 +187,14 @@
fresh: clobber $(LCAL)

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

install: $(EXECDIR)/$(LCAL) man
+ mkdir -p $(BINDIR)
+ mkdir -p $(INSTALLMAN1DIR)
cp $(EXECDIR)/$(LCAL) $(BINDIR)
- if [ -d $(MANDIR) ]; then \
- cp $(DOCDIR)/lcal.man $(MANDIR)/lcal.1; \
- $(PACK) $(MANDIR)/lcal.1; \
- fi
- if [ -d $(CATDIR) ]; then \
- cp $(DOCDIR)/lcal.cat $(CATDIR)/lcal.1; \
- $(PACK) $(CATDIR)/lcal.1; \
- fi
+ cp $(DOCDIR)/lcal.man $(INSTALLMAN1DIR)/lcal.1
+

lcal _unstable_ port .patch