From ohauer@FreeBSD.org  Sun Sep  9 00:47:34 2012
Return-Path: <ohauer@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1F551106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Sep 2012 00:47:33 +0000 (UTC)
	(envelope-from ohauer@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28])
	by mx1.freebsd.org (Postfix) with ESMTP id C36F28FC0C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Sep 2012 00:47:33 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q890lXf8081457
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 9 Sep 2012 00:47:33 GMT
	(envelope-from ohauer@freefall.freebsd.org)
Received: (from ohauer@localhost)
	by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q890lXYD081444;
	Sun, 9 Sep 2012 00:47:33 GMT
	(envelope-from ohauer)
Message-Id: <201209090047.q890lXYD081444@freefall.freebsd.org>
Date: Sun, 9 Sep 2012 00:47:33 GMT
From: Olli Hauer <ohauer@freebsd.org>
Reply-To: Olli Hauer <ohauer@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] www/mimetex s/USE_APACHE/USE_APACHE_RUN/
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         171482
>Category:       ports
>Synopsis:       [patch] www/mimetex s/USE_APACHE/USE_APACHE_RUN/
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    nivit
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 09 00:50:02 UTC 2012
>Closed-Date:    Mon Sep 17 20:50:26 UTC 2012
>Last-Modified:  Mon Sep 17 21:00:19 UTC 2012
>Originator:     Olli Hauer
>Release:        
>Organization:
>Environment:

>Description:
apache is only used to serve a cgi binary, so
 s/USE_APACHE/USE_APACHE_RUN/

>How-To-Repeat:

>Fix:

--- mimetex.diff begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 303930)
+++ Makefile	(working copy)
@@ -7,7 +7,7 @@
 
 PORTNAME=	mimetex
 PORTVERSION=	20080906.1.70
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	www math
 MASTER_SITES=	http://nivi.interfree.it/distfiles/${DIST_SUBDIR}/ \
 		http://www.forkosh.com/
@@ -18,7 +18,7 @@
 COMMENT=	A CGI script that lets you embed LaTeX math in your HTML pages
 
 NO_WRKSUBDIR=	yes
-USE_APACHE=	22+
+USE_APACHE_RUN=	22+
 USE_ZIP=	yes
 
 .include <bsd.port.pre.mk>
--- mimetex.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->nivit 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Sep 9 00:50:16 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171482 
State-Changed-From-To: open->closed 
State-Changed-By: nivit 
State-Changed-When: Mon Sep 17 20:48:26 UTC 2012 
State-Changed-Why:  
Thanks for the PR, but I decided to remove apache from 
dependencies, because mimetex can run on any web server 
that supports CGI. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=171482 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/171482: commit references a PR
Date: Mon, 17 Sep 2012 20:47:48 +0000 (UTC)

 Author: nivit
 Date: Mon Sep 17 20:47:33 2012
 New Revision: 304422
 URL: http://svn.freebsd.org/changeset/ports/304422
 
 Log:
   - Update to 20120331.1.74
   - Adopt new header of Makefile
   - Replace dead download site with LOCAL/nivit
   - Add LICENSE (GPLv3)
   - Convert to new options framework
   - Instead of setting USE_APACHE_RUN [1], remove apache
     completely from run dependencies, because mimetex runs
     on any web server that supports CGI
   - Remove files/pkg-message.in
   - Replace TAB character with one space after WWW:, and
     remove Author entry in pkg-descr
   
   Changes&News:	http://goo.gl/iCQON
   BuildLog:	http://goo.gl/8P9Hu
   
   PR:	ports/171482  [1]
   Submitted by:	ohauer
 
 Deleted:
   head/www/mimetex/files/
 Modified:
   head/www/mimetex/Makefile   (contents, props changed)
   head/www/mimetex/distinfo   (contents, props changed)
   head/www/mimetex/pkg-descr   (contents, props changed)
   head/www/mimetex/pkg-plist   (contents, props changed)
 
 Modified: head/www/mimetex/Makefile
 ==============================================================================
 --- head/www/mimetex/Makefile	Mon Sep 17 20:18:45 2012	(r304421)
 +++ head/www/mimetex/Makefile	Mon Sep 17 20:47:33 2012	(r304422)
 @@ -1,15 +1,11 @@
 -# New ports collection makefile for:	mimetex
 -# Date created:		2006-02-03
 -# Whom:			Nicola Vitale	<nivit@email.it>
 -#
 +# Created by: Nicola Vitale <nivit@email.it>
  # $FreeBSD$
 -#
  
  PORTNAME=	mimetex
 -PORTVERSION=	20080906.1.70
 -PORTREVISION=	4
 +PORTVERSION=	20120331.1.74
 +PORTREVISION=	0
  CATEGORIES=	www math
 -MASTER_SITES=	http://nivi.interfree.it/distfiles/${DIST_SUBDIR}/ \
 +MASTER_SITES=	LOCAL/nivit/${PORTNAME}/${PORTVERSION}/ \
  		http://www.forkosh.com/
  DISTNAME=	${PORTNAME}
  DIST_SUBDIR=	${PORTNAME}/${PORTVERSION}
 @@ -17,38 +13,28 @@ DIST_SUBDIR=	${PORTNAME}/${PORTVERSION}
  MAINTAINER=	nivit@FreeBSD.org
  COMMENT=	A CGI script that lets you embed LaTeX math in your HTML pages
  
 +LICENSE=	GPLv3
 +
  NO_WRKSUBDIR=	yes
 -USE_APACHE=	22+
  USE_ZIP=	yes
  
 -.include <bsd.port.pre.mk>
 -
 -FETCH_ARGS=	-rR	# see PR bin/76134
 -LN_OPTS=	-sf
 -
 -CGI_BIN=	${WWWDIR}/cgi-bin
 -CGI_PRG=	${PORTNAME}.cgi
 -WWW_DIR=	${WWWDIR}/data
 -
 -PLIST_DIRSTRY+=	www/cgi-bin www/data
 -
 -PLIST_SUB=	CGI_BIN="${CGI_BIN:S,^${PREFIX}/,,}" \
 -		WWW_DIR="${WWW_DIR:S,^${PREFIX}/,,}"
 +OPTIONS_DEFINE=	ANTIALIASING DOCS STATIC
 +OPTIONS_DEFAULT=	ANTIALIASING
 +DESC_ANTIALIASING=	Use image format with anti-aliasing
 +DESC_STATIC=	Possible use of mimetex on another machine
  
  PORTDOCS=	${PORTNAME}.html
  
 -SUB_FILES=	pkg-message
 -SUB_LIST=	PORTDOCS=${PORTDOCS} WWW_DIR=${WWW_DIR}
 -
 +.include <bsd.port.options.mk>
  # usefull if you run mimetex on another machine
 -.if defined(WITH_STATIC)
 +.if ${PORT_OPTIONS:MSTATIC}
  STATIC_MIMETEX=	-static
  .endif
  # anti-aliasing no/yes
 -.if defined(WITHOUT_ANTIALIASING)
 -IMAGES_TYPE=	-DGIF
 -.else
 +.if ${PORT_OPTIONS:MANTIALIASING}
  IMAGES_TYPE=	-DAA
 +.else
 +IMAGES_TYPE=	-DGIF
  .endif
  # other options (see mimetex.c or online documentation)
  # example: make install USER_OPTIONS='-DCACHEPATH=\"/tmp\" -DDISPLAYSIZE=10'
 @@ -56,19 +42,13 @@ USER_OPTIONS?=
  
  do-build:
  	cd ${WRKDIR};\
 -	${CC} ${CFLAGS} ${STATIC_MIMETEX} ${IMAGES_TYPE} ${USER_OPTIONS} mimetex.c gifsave.c -lm -o ${CGI_PRG}
 -
 +	${CC} ${CFLAGS} ${STATIC_MIMETEX} ${IMAGES_TYPE} ${USER_OPTIONS} mimetex.c gifsave.c -lm -o mimetex.cgi
  do-install:
 -	${MKDIR} ${CGI_BIN}
 -	${INSTALL_PROGRAM} ${WRKSRC}/${CGI_PRG} ${CGI_BIN}/${CGI_PRG}
 -.if !defined(NOPORTDOCS)
 +	${MKDIR} ${WWWDIR}/cgi-bin
 +	${INSTALL_PROGRAM} ${WRKSRC}/mimetex.cgi ${WWWDIR}/cgi-bin/mimetex.cgi
 +.if ${PORT_OPTIONS:MDOCS}
  	${MKDIR} ${DOCSDIR}
  	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
 -	${MKDIR} ${WWW_DIR}
 -	${LN} ${LN_OPTS} ${DOCSDIR}/${PORTDOCS} ${WWW_DIR}/index.html
 -
 -post-install:
 -	${CAT} ${PKGMESSAGE}
  .endif
  
 -.include <bsd.port.post.mk>
 +.include <bsd.port.mk>
 
 Modified: head/www/mimetex/distinfo
 ==============================================================================
 --- head/www/mimetex/distinfo	Mon Sep 17 20:18:45 2012	(r304421)
 +++ head/www/mimetex/distinfo	Mon Sep 17 20:47:33 2012	(r304422)
 @@ -1,2 +1,2 @@
 -SHA256 (mimetex/20080906.1.70/mimetex.zip) = 7c3965baee916612124225f4482d2de81f5abd7cdf819d4f3806081615bb6841
 -SIZE (mimetex/20080906.1.70/mimetex.zip) = 729841
 +SHA256 (mimetex/20120331.1.74/mimetex.zip) = 02add4dabe2ef473460a93432240ef682bd831e3222758648a7b40dfbdd8fb53
 +SIZE (mimetex/20120331.1.74/mimetex.zip) = 1190831
 
 Modified: head/www/mimetex/pkg-descr
 ==============================================================================
 --- head/www/mimetex/pkg-descr	Mon Sep 17 20:18:45 2012	(r304421)
 +++ head/www/mimetex/pkg-descr	Mon Sep 17 20:47:33 2012	(r304422)
 @@ -1,4 +1,4 @@
 -MimeTeX, licensed under the gpl, lets you easily embed LaTeX math in
 +MimeTeX, licensed under the GPL, lets you easily embed LaTeX math in
  your html pages.  It parses a LaTeX math expression and immediately
  emits the corresponding gif image, rather than the usual TeX dvi.
  And mimeTeX is an entirely separate little program that doesn't
 @@ -7,5 +7,4 @@ your site's cgi-bin/ directory, with no 
  It's easy to use. Just place an html <img> tag in your document
  wherever you want to see the corresponding LaTeX expression.
  
 -Author:	John Forkosh
 -WWW:	http://www.forkosh.com/mimetex.html
 +WWW: http://www.forkosh.com/mimetex.html
 
 Modified: head/www/mimetex/pkg-plist
 ==============================================================================
 --- head/www/mimetex/pkg-plist	Mon Sep 17 20:18:45 2012	(r304421)
 +++ head/www/mimetex/pkg-plist	Mon Sep 17 20:47:33 2012	(r304422)
 @@ -1,6 +1,4 @@
  @comment $FreeBSD$
 -%%PORTDOCS%%%%WWW_DIR%%/index.html
 -%%CGI_BIN%%/mimetex.cgi
 -@dirrm %%CGI_BIN%%
 -%%PORTDOCS%%@dirrm %%WWW_DIR%%
 -%%PORTDOCS%%@dirrm %%WWWDIR%%
 +%%WWWDIR%%/cgi-bin/mimetex.cgi
 +@dirrm %%WWWDIR%%/cgi-bin
 +@dirrm %%WWWDIR%%
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
