mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
add pcal
PostScript calendar program PR: 28020 Submitted by: Matthew West <mwest@uct.ac.za>
This commit is contained in:
parent
199894f656
commit
a6bd184328
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45879
@ -86,6 +86,7 @@
|
||||
SUBDIR += p5-Text-PDF
|
||||
SUBDIR += pnm2ppa
|
||||
SUBDIR += panda
|
||||
SUBDIR += pcal
|
||||
SUBDIR += pclprint
|
||||
SUBDIR += pdflib3
|
||||
SUBDIR += pdq
|
||||
|
57
print/pcal/Makefile
Normal file
57
print/pcal/Makefile
Normal file
@ -0,0 +1,57 @@
|
||||
# New ports collection makefile for: pcal
|
||||
# Date created: 10 June 2001
|
||||
# Whom: mwest@uct.ac.za
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pcal
|
||||
PORTVERSION= 4.7
|
||||
CATEGORIES= print
|
||||
MASTER_SITES= http://www.geocities.com/SunsetStrip/Palms/5555/PS/
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/}_tar_Z
|
||||
EXTRACT_SUFX= .txt
|
||||
|
||||
MAINTAINER= mwest@uct.ac.za
|
||||
|
||||
WRKSRC= ${WRKDIR}/pcal.${PORTVERSION}
|
||||
PAPERSIZE?= A4
|
||||
WWWSERVER!= hostname
|
||||
|
||||
MAN1= pcal.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
MAKE_ENV+= PAPERSIZE="${PAPERSIZE}"
|
||||
MAKE_ENV+= CC="${CC}" HOST_CC="${CC}"
|
||||
|
||||
ALL_TARGET= pcal
|
||||
|
||||
do-extract:
|
||||
@${RM} -rf ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@(cd ${WRKDIR}; \
|
||||
uudecode -p ${DISTDIR}/${DISTFILES} | ${TAR} xzf -; \
|
||||
)
|
||||
|
||||
pre-install:
|
||||
${MV} ${WRKSRC}/pcal.cgi ${WRKSRC}/pcal.cgi.tmp
|
||||
${SED} -e 's|@@PREFIX@@|${PREFIX}|' \
|
||||
< ${WRKSRC}/pcal.cgi.tmp > ${WRKSRC}/pcal.cgi
|
||||
${MV} ${WRKSRC}/pcal.html ${WRKSRC}/pcal.html.tmp
|
||||
${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \
|
||||
< ${WRKSRC}/pcal.html.tmp > ${WRKSRC}/pcal.html
|
||||
${MV} ${WRKSRC}/pcalw.html ${WRKSRC}/pcalw.html.tmp
|
||||
${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \
|
||||
< ${WRKSRC}/pcalw.html.tmp > ${WRKSRC}/pcalw.html
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/pcal ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/pcal.cgi ${PREFIX}/libexec
|
||||
${INSTALL_MAN} ${WRKSRC}/pcal.man ${PREFIX}/man/man1/pcal.1
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/ReadMe ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/pcal.html ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/pcalw.html ${DOCSDIR}
|
||||
|
||||
.include <bsd.port.post.mk>
|
1
print/pcal/distinfo
Normal file
1
print/pcal/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (pcal_4_7_tar_Z.txt) = cef12878d3f6862d0cd1ad4358dcce38
|
37
print/pcal/files/patch-aa
Normal file
37
print/pcal/files/patch-aa
Normal file
@ -0,0 +1,37 @@
|
||||
--- Makefile.orig Thu Feb 10 01:06:23 2000
|
||||
+++ Makefile Thu Dec 21 09:40:35 2000
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
# Set the configuration variables below to taste.
|
||||
|
||||
-PCALINIT_CC = /bin/cc # native compiler
|
||||
-CC = /bin/cc # cross-compiler (if target != host)
|
||||
+PCALINIT_CC = ${CC} # native compiler
|
||||
+CC = ${HOST_CC} # cross-compiler (if target != host)
|
||||
|
||||
# Set COMPRESS to your preferred compression utility (compress, gzip, etc.),
|
||||
# Z to the file suffix that it generates (.Z, .gz, etc.), and UUC to the file
|
||||
@@ -58,9 +58,9 @@
|
||||
# PACK = pack
|
||||
|
||||
# directories for installing executable and man page(s)
|
||||
-BINDIR = /usr/local/bin
|
||||
-MANDIR = /usr/man/man1
|
||||
-CATDIR = /usr/man/cat1
|
||||
+BINDIR = ${PREFIX}/bin
|
||||
+MANDIR = ${PREFIX}/man/man1
|
||||
+CATDIR = ${PREFIX}/cat1
|
||||
|
||||
OBJECTS = pcal.o exprpars.o moonphas.o pcalutil.o readfile.o writefil.o
|
||||
|
||||
@@ -112,6 +112,10 @@
|
||||
$(D_TEXT) $(D_LINK) $(D_ALINK) $(D_VLINK) \
|
||||
$(D_HOLIDAY_PRE) $(D_HOLIDAY_POST) $(D_BLANK_STYLE) \
|
||||
$(D_SEARCH_PCAL_DIR)
|
||||
+
|
||||
+.if defined(PAPERSIZE) && $(PAPERSIZE) == A4 # default Letter (OK?)
|
||||
+COPTS += -DA4PAPER
|
||||
+.endif
|
||||
|
||||
$(PCAL): $(OBJECTS)
|
||||
$(CC) $(LDFLAGS) -o $(PCAL) $(OBJECTS) -lm
|
13
print/pcal/files/patch-ab
Normal file
13
print/pcal/files/patch-ab
Normal file
@ -0,0 +1,13 @@
|
||||
--- pcal.cgi.orig Wed Dec 20 15:43:36 2000
|
||||
+++ pcal.cgi Wed Dec 20 15:45:35 2000
|
||||
@@ -27,8 +27,8 @@
|
||||
# common calendar file on your system (note that the user can't use his/her
|
||||
# own calendar file since most servers will execute pcal.cgi as 'nobody')
|
||||
|
||||
-pcal=/yourpath/pcal
|
||||
-file=/yourpath/calendar
|
||||
+pcal=@@PREFIX@@/bin/pcal
|
||||
+file=@@PREFIX@@/share/misc/calendar
|
||||
|
||||
# set DEBUG=1 to echo debugging output as HTML text
|
||||
DEBUG=0
|
20
print/pcal/files/patch-ac
Normal file
20
print/pcal/files/patch-ac
Normal file
@ -0,0 +1,20 @@
|
||||
--- pcal.html.orig Thu Feb 10 01:06:23 2000
|
||||
+++ pcal.html Wed Dec 20 17:38:53 2000
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
-->
|
||||
<HEAD>
|
||||
-<TITLE>pcal v4.6</TITLE>
|
||||
+<TITLE>pcal v4.7</TITLE>
|
||||
</HEAD>
|
||||
|
||||
<BODY>
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<!-- start of form -->
|
||||
|
||||
-<FORM ACTION="http://yourpath/cgi-bin/pcal.cgi" METHOD=GET>
|
||||
+<FORM ACTION="http://@@WWWSERVER@@/cgi-bin/pcal.cgi" METHOD=GET>
|
||||
|
||||
<!-- menu for starting month -->
|
||||
|
19
print/pcal/files/patch-ad
Normal file
19
print/pcal/files/patch-ad
Normal file
@ -0,0 +1,19 @@
|
||||
--- pcalw.html.orig Thu Feb 10 01:06:23 2000
|
||||
+++ pcalw.html Wed Dec 20 17:38:56 2000
|
||||
@@ -12,14 +12,14 @@
|
||||
|
||||
-->
|
||||
<HEAD>
|
||||
-<TITLE>pcal v4.6 (single-year mode)</TITLE>
|
||||
+<TITLE>pcal v4.7 (single-year mode)</TITLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<H2 ALIGN=CENTER>Generate single-page PostScript calendar for entire year</H2>
|
||||
|
||||
<!-- start of form -->
|
||||
|
||||
-<FORM ACTION="http://yourpath/pcal.cgi" METHOD=GET>
|
||||
+<FORM ACTION="http://@@WWWSERVER@@/cgi-bin/pcal.cgi" METHOD=GET>
|
||||
|
||||
<INPUT TYPE=HIDDEN NAME=wflag VALUE="-w"> <!-- silently set -w flag -->
|
||||
|
19
print/pcal/files/patch-ae
Normal file
19
print/pcal/files/patch-ae
Normal file
@ -0,0 +1,19 @@
|
||||
--- pcal.man.orig Thu Dec 21 10:10:45 2000
|
||||
+++ pcal.man Thu Dec 21 10:11:15 2000
|
||||
@@ -443,14 +443,14 @@
|
||||
`&#NNN;' (NNN = any three decimal digits) are also supported. These will
|
||||
be propagated intact (be sure to escape the `#' in `&#NNN;') if the output
|
||||
is specified as HTML (see the
|
||||
-.B -\H
|
||||
+.B \-H
|
||||
flag); otherwise they will be converted to their ASCII equivalents. This
|
||||
allows a common date file to be used regardless of whether the desired
|
||||
output format is HTML, PostScript, or
|
||||
Un*x
|
||||
.I "calendar(1)"
|
||||
(see the
|
||||
-.B -\c
|
||||
+.B \-c
|
||||
flag) input.
|
||||
.PP
|
||||
Lines in the
|
1
print/pcal/pkg-comment
Normal file
1
print/pcal/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
PostScript calendar program
|
9
print/pcal/pkg-descr
Normal file
9
print/pcal/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
"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.
|
||||
|
||||
WWW: http://www.geocities.com/SunsetStrip/Palms/5555/PS/
|
||||
|
||||
--
|
||||
mwest@uct.ac.za
|
6
print/pcal/pkg-plist
Normal file
6
print/pcal/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
bin/pcal
|
||||
libexec/pcal.cgi
|
||||
share/doc/pcal/ReadMe
|
||||
share/doc/pcal/pcal.html
|
||||
share/doc/pcal/pcalw.html
|
||||
@dirrm share/doc/pcal
|
Loading…
Reference in New Issue
Block a user