Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2004 23:01:11 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/64047: Update port: print/pcal
Message-ID:  <20040310230111.1ea757aa.tkato@prontomail.com>
Resent-Message-ID: <200403101410.i2AEAKp5036643@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         64047
>Category:       ports
>Synopsis:       Update port: print/pcal
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 10 06:10:19 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.9-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES and WWW: line
- Utilize NOPORTDOCS

Remove file:
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/print/pcal/Makefile print/pcal/Makefile
--- /usr/ports/print/pcal/Makefile	Sun Feb 22 12:24:46 2004
+++ print/pcal/Makefile	Tue Mar  9 20:20:07 2004
@@ -8,40 +8,41 @@
 PORTNAME=	pcal
 PORTVERSION=	4.7.1
 CATEGORIES=	print
-MASTER_SITES=	http://www.sunpoint.net/~pcal/
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	PostScript calendar program
 
-WWWSERVER!=	hostname
+USE_REINPLACE=	yes
+MAKE_ENV=	CC="${CC}" HOST_CC="${CC}" PAPERSIZE="${PAPERSIZE}"
+ALL_TARGET=	pcal
 
 MAN1=		pcal.1
+PLIST_FILES=	bin/pcal libexec/pcal.cgi
+PORTDOCS=	ReadMe pcal.html pcalw.html
 
-.include <bsd.port.pre.mk>
-
-MAKE_ENV+=	PAPERSIZE="${PAPERSIZE}"
-MAKE_ENV+=	CC="${CC}" HOST_CC="${CC}"
+WWWSERVER!=	hostname
 
-ALL_TARGET=	pcal
+.include <bsd.port.pre.mk>
 
-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
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/pcal.cgi
+	@${REINPLACE_CMD} -e \
+		's|@@WWWSERVER@@|${WWWSERVER}|g' ${WRKSRC}/pcal.html
+	@${REINPLACE_CMD} -e \
+		's|@@WWWSERVER@@|${WWWSERVER}|g' ${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_MAN} ${WRKSRC}/pcal.man ${MANPREFIX}/man/man1/pcal.1
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/ReadMe ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/pcal.html ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/pcalw.html ${DOCSDIR}
+.endif
 
 .include <bsd.port.post.mk>
diff -urN /usr/ports/print/pcal/distinfo print/pcal/distinfo
--- /usr/ports/print/pcal/distinfo	Mon Jun  2 09:06:38 2003
+++ print/pcal/distinfo	Tue Mar  9 20:14:00 2004
@@ -1 +1,2 @@
-MD5 (pcal-4.7.1.tar.gz) = 85314da2c4616d40a59c80fc4ee807a0
+MD5 (pcal-4.7.1.tar.gz) = 07d8e3b92affc4940c4401d9a8274075
+SIZE (pcal-4.7.1.tar.gz) = 291594
diff -urN /usr/ports/print/pcal/pkg-descr print/pcal/pkg-descr
--- /usr/ports/print/pcal/pkg-descr	Mon Jun  2 09:06:38 2003
+++ print/pcal/pkg-descr	Tue Mar  9 20:10:52 2004
@@ -3,7 +3,7 @@
 "calendar" for entries with leading dates matching dates on the
 calendar, and prints any following text under the appropriate day.
 
-WWW: http://fronzek.akshor.com/pcal/
+WWW: http://pcal.sourceforge.net/
 
 --
 mwest@uct.ac.za
diff -urN /usr/ports/print/pcal/pkg-plist print/pcal/pkg-plist
--- /usr/ports/print/pcal/pkg-plist	Mon Aug  6 22:13:43 2001
+++ print/pcal/pkg-plist	Thu Jan  1 09:00:00 1970
@@ -1,6 +0,0 @@
-bin/pcal
-libexec/pcal.cgi
-share/doc/pcal/ReadMe
-share/doc/pcal/pcal.html
-share/doc/pcal/pcalw.html
-@dirrm share/doc/pcal
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040310230111.1ea757aa.tkato>