From mwest@cs.uct.ac.za  Sun Jun 10 13:25:21 2001
Return-Path: <mwest@cs.uct.ac.za>
Received: from casper2.cs.uct.ac.za (casper2.cs.uct.ac.za [137.158.128.58])
	by hub.freebsd.org (Postfix) with ESMTP id 20B5C37B40A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 10 Jun 2001 13:25:09 -0700 (PDT)
	(envelope-from mwest@cs.uct.ac.za)
Received: from mwest by casper2.cs.uct.ac.za with local (Exim 3.20 #1)
	id 159Blh-000BGG-00
	for FreeBSD-gnats-submit@freebsd.org; Sun, 10 Jun 2001 22:25:05 +0200
Message-Id: <E159Blh-000BGG-00@casper2.cs.uct.ac.za>
Date: Sun, 10 Jun 2001 22:25:05 +0200
From: mwest@uct.ac.za
Sender: Matthew West <mwest@cs.uct.ac.za>
Reply-To: mwest@uct.ac.za
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: print/pcal - PostScript calendar program
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28020
>Category:       ports
>Synopsis:       New port: print/pcal - PostScript calendar program
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 10 13:30:00 PDT 2001
>Closed-Date:    Mon Aug 6 06:14:19 PDT 2001
>Last-Modified:  Mon Aug 06 06:15:26 PDT 2001
>Originator:     Matthew West
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
University of Cape Town
>Environment:

>Description:

Based on NetBSD's pkgsrc/time/pcal port.

"Pcal" is a program to print PostScript calendars for any month and
year.  By default, it looks for a file in the home directory named
"calendar" for entries with leading dates matching dates on the
calendar, and prints any following text under the appropriate day.

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pcal
#	pcal/Makefile
#	pcal/distinfo
#	pcal/pkg-comment
#	pcal/pkg-descr
#	pcal/pkg-plist
#	pcal/files
#	pcal/files/patch-aa
#	pcal/files/patch-ab
#	pcal/files/patch-ac
#	pcal/files/patch-ad
#	pcal/files/patch-ae
#
echo c - pcal
mkdir -p pcal > /dev/null 2>&1
echo x - pcal/Makefile
sed 's/^X//' >pcal/Makefile << 'END-of-pcal/Makefile'
X# New ports collection makefile for:  pcal
X# Date created:               10 June 2001
X# Whom:                       mwest@uct.ac.za
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pcal
XPORTVERSION=	4.7
XCATEGORIES=	print
XMASTER_SITES=	http://www.geocities.com/SunsetStrip/Palms/5555/PS/
XDISTNAME=	pcal_4_7_tar_Z
XEXTRACT_SUFX=	.txt
X
XMAINTAINER=	mwest@uct.ac.za
X
XWRKSRC=		${WRKDIR}/pcal.4.7
XPAPERSIZE?=	A4
XWWWSERVER!=	hostname
X
XMAN1=		pcal.1
X
X.include <bsd.port.pre.mk>
X
XMAKE_ENV+=	PAPERSIZE="${PAPERSIZE}"
XMAKE_ENV+=	CC="${CC}" HOST_CC="${CC}"
X
XALL_TARGET=	pcal
X
Xdo-extract:
X	@${RM} -rf ${WRKDIR}
X	@${MKDIR} ${WRKDIR}
X	@(cd ${WRKDIR}; \
X	  uudecode -p ${DISTDIR}/${DISTFILES} | tar xzf -; \
X	)
X
Xpre-install:
X	${MV} ${WRKSRC}/pcal.cgi ${WRKSRC}/pcal.cgi.tmp
X	${SED} -e 's|@@PREFIX@@|${PREFIX}|' \
X		< ${WRKSRC}/pcal.cgi.tmp > ${WRKSRC}/pcal.cgi
X	${MV} ${WRKSRC}/pcal.html ${WRKSRC}/pcal.html.tmp
X	${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \
X		< ${WRKSRC}/pcal.html.tmp > ${WRKSRC}/pcal.html
X	${MV} ${WRKSRC}/pcalw.html ${WRKSRC}/pcalw.html.tmp
X	${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \
X		< ${WRKSRC}/pcalw.html.tmp > ${WRKSRC}/pcalw.html
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/pcal ${PREFIX}/bin
X	${INSTALL_SCRIPT} ${WRKSRC}/pcal.cgi ${PREFIX}/libexec
X	${INSTALL_MAN} ${WRKSRC}/pcal.man ${PREFIX}/man/man1/pcal.1
X	${MKDIR} ${PREFIX}/share/doc/pcal
X	${INSTALL_DATA} ${WRKSRC}/ReadMe ${PREFIX}/share/doc/pcal
X	${INSTALL_DATA} ${WRKSRC}/pcal.html ${PREFIX}/share/doc/pcal
X	${INSTALL_DATA} ${WRKSRC}/pcalw.html ${PREFIX}/share/doc/pcal
X
X.include <bsd.port.post.mk>
END-of-pcal/Makefile
echo x - pcal/distinfo
sed 's/^X//' >pcal/distinfo << 'END-of-pcal/distinfo'
XMD5 (pcal_4_7_tar_Z.txt) = cef12878d3f6862d0cd1ad4358dcce38
END-of-pcal/distinfo
echo x - pcal/pkg-comment
sed 's/^X//' >pcal/pkg-comment << 'END-of-pcal/pkg-comment'
XPostScript calendar program
END-of-pcal/pkg-comment
echo x - pcal/pkg-descr
sed 's/^X//' >pcal/pkg-descr << 'END-of-pcal/pkg-descr'
X"Pcal" is a program to print PostScript calendars for any month and
Xyear.  By default, it looks for a file in the home directory named
X"calendar" for entries with leading dates matching dates on the
Xcalendar, and prints any following text under the appropriate day.
X
XWWW: http://www.geocities.com/SunsetStrip/Palms/5555/PS/
X
X--
Xmwest@uct.ac.za
END-of-pcal/pkg-descr
echo x - pcal/pkg-plist
sed 's/^X//' >pcal/pkg-plist << 'END-of-pcal/pkg-plist'
Xbin/pcal
Xlibexec/pcal.cgi
Xshare/doc/pcal/ReadMe
Xshare/doc/pcal/pcal.html
Xshare/doc/pcal/pcalw.html
X@dirrm share/doc/pcal
END-of-pcal/pkg-plist
echo c - pcal/files
mkdir -p pcal/files > /dev/null 2>&1
echo x - pcal/files/patch-aa
sed 's/^X//' >pcal/files/patch-aa << 'END-of-pcal/files/patch-aa'
X--- Makefile.orig	Thu Feb 10 01:06:23 2000
X+++ Makefile	Thu Dec 21 09:40:35 2000
X@@ -21,8 +21,8 @@
X 
X # Set the configuration variables below to taste.
X 
X-PCALINIT_CC = /bin/cc			# native compiler
X-CC	    = /bin/cc			# cross-compiler (if target != host)
X+PCALINIT_CC = ${CC}			# native compiler
X+CC	    = ${HOST_CC}		# cross-compiler (if target != host)
X 
X # Set COMPRESS to your preferred compression utility (compress, gzip, etc.),
X # Z to the file suffix that it generates (.Z, .gz, etc.), and UUC to the file
X@@ -58,9 +58,9 @@
X # PACK	= pack
X 
X # directories for installing executable and man page(s)
X-BINDIR	= /usr/local/bin
X-MANDIR	= /usr/man/man1
X-CATDIR	= /usr/man/cat1
X+BINDIR	= ${PREFIX}/bin
X+MANDIR	= ${PREFIX}/man/man1
X+CATDIR	= ${PREFIX}/cat1
X 
X OBJECTS = pcal.o exprpars.o moonphas.o pcalutil.o readfile.o writefil.o
X 
X@@ -112,6 +112,10 @@
X 	$(D_TEXT) $(D_LINK) $(D_ALINK) $(D_VLINK) \
X 	$(D_HOLIDAY_PRE) $(D_HOLIDAY_POST) $(D_BLANK_STYLE) \
X 	$(D_SEARCH_PCAL_DIR)
X+
X+.if defined(PAPERSIZE) && $(PAPERSIZE) == A4 # default Letter (OK?)
X+COPTS += -DA4PAPER
X+.endif
X 
X $(PCAL):	$(OBJECTS)
X 	$(CC) $(LDFLAGS) -o $(PCAL) $(OBJECTS) -lm
END-of-pcal/files/patch-aa
echo x - pcal/files/patch-ab
sed 's/^X//' >pcal/files/patch-ab << 'END-of-pcal/files/patch-ab'
X--- pcal.cgi.orig	Wed Dec 20 15:43:36 2000
X+++ pcal.cgi	Wed Dec 20 15:45:35 2000
X@@ -27,8 +27,8 @@
X # common calendar file on your system (note that the user can't use his/her
X # own calendar file since most servers will execute pcal.cgi as 'nobody')
X 
X-pcal=/yourpath/pcal
X-file=/yourpath/calendar
X+pcal=@@PREFIX@@/bin/pcal
X+file=@@PREFIX@@/share/misc/calendar
X 
X # set DEBUG=1 to echo debugging output as HTML text
X DEBUG=0
END-of-pcal/files/patch-ab
echo x - pcal/files/patch-ac
sed 's/^X//' >pcal/files/patch-ac << 'END-of-pcal/files/patch-ac'
X--- pcal.html.orig	Thu Feb 10 01:06:23 2000
X+++ pcal.html	Wed Dec 20 17:38:53 2000
X@@ -12,7 +12,7 @@
X 
X -->
X <HEAD>
X-<TITLE>pcal v4.6</TITLE>
X+<TITLE>pcal v4.7</TITLE>
X </HEAD>
X 
X <BODY>
X@@ -21,7 +21,7 @@
X 
X                        <!-- start of form -->
X 
X-<FORM ACTION="http://yourpath/cgi-bin/pcal.cgi" METHOD=GET>
X+<FORM ACTION="http://@@WWWSERVER@@/cgi-bin/pcal.cgi" METHOD=GET>
X 
X <!-- menu for starting month -->
X 
END-of-pcal/files/patch-ac
echo x - pcal/files/patch-ad
sed 's/^X//' >pcal/files/patch-ad << 'END-of-pcal/files/patch-ad'
X--- pcalw.html.orig	Thu Feb 10 01:06:23 2000
X+++ pcalw.html	Wed Dec 20 17:38:56 2000
X@@ -12,14 +12,14 @@
X 
X -->
X <HEAD>
X-<TITLE>pcal v4.6 (single-year mode)</TITLE>
X+<TITLE>pcal v4.7 (single-year mode)</TITLE>
X </HEAD>
X <BODY>
X <H2 ALIGN=CENTER>Generate single-page PostScript calendar for entire year</H2>
X 
X                        <!-- start of form -->
X 
X-<FORM ACTION="http://yourpath/pcal.cgi" METHOD=GET>
X+<FORM ACTION="http://@@WWWSERVER@@/cgi-bin/pcal.cgi" METHOD=GET>
X 
X <INPUT TYPE=HIDDEN NAME=wflag VALUE="-w">	<!-- silently set -w flag -->
X 
END-of-pcal/files/patch-ad
echo x - pcal/files/patch-ae
sed 's/^X//' >pcal/files/patch-ae << 'END-of-pcal/files/patch-ae'
X--- pcal.man.orig	Thu Dec 21 10:10:45 2000
X+++ pcal.man	Thu Dec 21 10:11:15 2000
X@@ -443,14 +443,14 @@
X `&#NNN;' (NNN = any three decimal digits) are also supported.  These will
X be propagated intact (be sure to escape the `#' in `&#NNN;') if the output
X is specified as HTML (see the
X-.B -\H
X+.B \-H
X flag); otherwise they will be converted to their ASCII equivalents.  This
X allows a common date file to be used regardless of whether the desired
X output format is HTML, PostScript, or
X Un*x
X .I "calendar(1)"
X (see the
X-.B -\c
X+.B \-c
X flag) input.
X .PP
X Lines in the
END-of-pcal/files/patch-ae
exit

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-ports 
Responsible-Changed-By: greid 
Responsible-Changed-When: Mon Jun 11 11:12:37 PDT 2001 
Responsible-Changed-Why:  
Misfiled 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28020 
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Mon Aug 6 06:14:19 PDT 2001 
State-Changed-Why:  
committed, thanks 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28020 
>Unformatted:
