ports/153598: [PATCH] www/mimetex: Use WWWDIR and so on

TAKATSU Tomonari tota at FreeBSD.org
Sat Jan 1 13:40:11 UTC 2011


>Number:         153598
>Category:       ports
>Synopsis:       [PATCH] www/mimetex: Use WWWDIR and so on
>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:   Sat Jan 01 13:40:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     TAKATSU Tomonari
>Release:        FreeBSD 8.1-RELEASE amd64
>Organization:
none (private)
>Environment:
System: FreeBSD photon.local.lan 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010
>Description:
- Use WWWDIR
- Use FETCH_ARGS instead of FETCH_CMD
- Drop MD5 checksum from distinfo
- Move pkg-message to files/pkg-message.in
- Fix pkg-plist
- Make portlint happier
- Bump PORTREVISION

Added file(s):
- files/pkg-message.in

Removed file(s):
- pkg-message

Port maintainer (nivit at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- mimetex-20080906.1.70_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/mimetex/Makefile,v
retrieving revision 1.14
diff -u -u -r1.14 Makefile
--- Makefile	8 May 2009 15:31:24 -0000	1.14
+++ Makefile	1 Jan 2011 10:05:13 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	mimetex
 PORTVERSION=	20080906.1.70
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	www math
 MASTER_SITES=	http://nivi.interfree.it/distfiles/${DIST_SUBDIR}/ \
 		http://www.forkosh.com/
@@ -21,12 +21,20 @@
 USE_APACHE=	1.3+
 USE_ZIP=	yes
 
-FETCH_CMD=	/usr/bin/fetch -rR	# see PR bin/76134
+FETCH_ARGS=	-rR	# see PR bin/76134
 LN_OPTS=	-sf
 
-CGI_BIN=	${PREFIX}/www/cgi-bin/
+CGI_BIN=	${WWWDIR}/cgi-bin
 CGI_PRG=	${PORTNAME}.cgi
-WWW_DIR=	${PREFIX}/www/data/mimetex/
+WWW_DIR=	${WWWDIR}/data
+
+PLIST_SUB=	CGI_BIN="${CGI_BIN:S,^${PREFIX}/,,}" \
+		WWW_DIR="${WWW_DIR:S,^${PREFIX}/,,}"
+
+PORTDOCS=	${PORTNAME}.html
+
+SUB_FILES=	pkg-message
+SUB_LIST=	PORTDOCS=${PORTDOCS} WWW_DIR=${WWW_DIR}
 
 # usefull if you run mimetex on another machine
 .if defined(WITH_STATIC)
@@ -51,9 +59,9 @@
 	${INSTALL_PROGRAM} ${WRKSRC}/${CGI_PRG} ${CGI_BIN}/${CGI_PRG}
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
 	${MKDIR} ${WWW_DIR}
-	${LN} ${LN_OPTS} ${DOCSDIR}/${PORTNAME}.html ${WWW_DIR}/index.html
+	${LN} ${LN_OPTS} ${DOCSDIR}/${PORTDOCS} ${WWW_DIR}/index.html
 
 post-install:
 	${CAT} ${PKGMESSAGE}
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/www/mimetex/distinfo,v
retrieving revision 1.10
diff -u -u -r1.10 distinfo
--- distinfo	14 Jan 2009 13:08:27 -0000	1.10
+++ distinfo	1 Jan 2011 09:16:57 -0000
@@ -1,3 +1,2 @@
-MD5 (mimetex/20080906.1.70/mimetex.zip) = 9b0c05c452b93a9f7c682ae2d2d4a3c5
 SHA256 (mimetex/20080906.1.70/mimetex.zip) = 7c3965baee916612124225f4482d2de81f5abd7cdf819d4f3806081615bb6841
 SIZE (mimetex/20080906.1.70/mimetex.zip) = 729841
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- pkg-message	5 May 2006 06:30:32 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,6 +0,0 @@
-
-*********************************************************
-
-  See online documentation at http://localhost/mimetex/
-
-*********************************************************
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/www/mimetex/pkg-plist,v
retrieving revision 1.5
diff -u -u -r1.5 pkg-plist
--- pkg-plist	8 May 2009 15:31:24 -0000	1.5
+++ pkg-plist	1 Jan 2011 09:54:50 -0000
@@ -1,6 +1,6 @@
 @comment $FreeBSD: ports/www/mimetex/pkg-plist,v 1.5 2009/05/08 15:31:24 pgollucci Exp $
-%%PORTDOCS%%%%DOCSDIR%%/mimetex.html
-%%PORTDOCS%%www/data/mimetex/index.html
-www/cgi-bin/mimetex.cgi
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTDOCS%%@dirrm www/data/mimetex
+%%PORTDOCS%%%%WWW_DIR%%/index.html
+%%CGI_BIN%%/mimetex.cgi
+ at dirrm %%CGI_BIN%%
+%%PORTDOCS%%@dirrm %%WWW_DIR%%
+%%PORTDOCS%%@dirrm %%WWWDIR%%
Index: files/pkg-message.in
===================================================================
RCS file: files/pkg-message.in
diff -N files/pkg-message.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/pkg-message.in	1 Jan 2011 10:08:37 -0000
@@ -0,0 +1,9 @@
+
+*********************************************************
+
+  See online documentation at 
+    %%DOCSDIR%%/%%PORTDOCS%%
+  or
+    %%WWW_DIR%%/index.html
+
+*********************************************************
--- mimetex-20080906.1.70_3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list