From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Feb 4 21:00:25 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6813016A420 for ; Sat, 4 Feb 2006 21:00:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4495443D49 for ; Sat, 4 Feb 2006 21:00:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k14L0OX5047868 for ; Sat, 4 Feb 2006 21:00:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k14L0O7U047867; Sat, 4 Feb 2006 21:00:24 GMT (envelope-from gnats) Resent-Date: Sat, 4 Feb 2006 21:00:24 GMT Resent-Message-Id: <200602042100.k14L0O7U047867@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, nivit@email.it (Nicola Vitale) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AF4C16A420 for ; Sat, 4 Feb 2006 20:58:16 +0000 (GMT) (envelope-from nivit@email.it) Received: from vsmtp14.tin.it (vsmtp14.tin.it [212.216.176.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F4F043D4C for ; Sat, 4 Feb 2006 20:58:14 +0000 (GMT) (envelope-from nivit@email.it) Received: from stellina (82.54.154.183) by vsmtp14.tin.it (7.2.060.1) id 43D830E800635AAE for FreeBSD-gnats-submit@freebsd.org; Sat, 4 Feb 2006 21:58:37 +0100 Received: (qmail 12076 invoked by uid 0); 4 Feb 2006 20:56:17 -0000 Message-Id: <20060204205617.12075.qmail@stellina> Date: 4 Feb 2006 20:56:17 -0000 From: nivit@email.it (Nicola Vitale) To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/92820: [NEW PORT] textproc/gladtex: A program to replace LaTeX formulas in HTML files with images X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2006 21:00:25 -0000 >Number: 92820 >Category: ports >Synopsis: [NEW PORT] textproc/gladtex: A program to replace LaTeX formulas in HTML files with images >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 Feb 04 21:00:23 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Nicola Vitale >Release: FreeBSD 5.4-RELEASE-p10 i386 >Organization: >Environment: System: FreeBSD stellina.domo.sva 5.4-RELEASE-p10 FreeBSD 5.4-RELEASE-p10 #7: Wed Jan 25 21:43:38 CET 2006 >Description: Gladtex reads a 'htex' file (html with LaTeX maths embedded in ) and produces html with equations substituted by images. Author: Martin G. Gulbrandsen WWW: http://www.math.uio.no/~martingu/gladtex/ Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- gladtex-0.3.shar begins here --- # 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: # # gladtex # gladtex/pkg-descr # gladtex/Makefile # gladtex/pkg-plist # gladtex/distinfo # gladtex/files # gladtex/files/patch-Makefile # gladtex/files/patch-eqn2img.c # gladtex/files/patch-gladtex # echo c - gladtex mkdir -p gladtex > /dev/null 2>&1 echo x - gladtex/pkg-descr sed 's/^X//' >gladtex/pkg-descr << 'END-of-gladtex/pkg-descr' XGladtex reads a 'htex' file (html with LaTeX maths embedded in ) Xand produces html with equations substituted by images. X XAuthor: Martin G. Gulbrandsen XWWW: http://www.math.uio.no/~martingu/gladtex/ END-of-gladtex/pkg-descr echo x - gladtex/Makefile sed 's/^X//' >gladtex/Makefile << 'END-of-gladtex/Makefile' X# New ports collection makefile for: gladtex X# Date created: 2006-02-04 X# Whom: Nicola Vitale X# X# $FreeBSD$ X# X XPORTNAME= gladtex XPORTVERSION= 0.3 XCATEGORIES= textproc math www XMASTER_SITES= http://www.math.uio.no/~martingu/gladtex/dl/ \ X http://nivi.interfree.it/distfiles/${PORTNAME}/ X XMAINTAINER= nivit@email.it XCOMMENT= A program to replace LaTeX formulas in HTML files with images X XLIB_DEPENDS= ungif.5:${PORTSDIR}/graphics/libungif \ X png.5:${PORTSDIR}/graphics/png XRUN_DEPENDS= latex:${PORTSDIR}/print/teTeX \ X dvips:${PORTSDIR}/print/dvipsk-tetex X XUSE_PERL5_RUN= yes X XBINPATH= ${PREFIX}/bin XINCPATH= -I${LOCALBASE}/include XLIBPATH= -L${LOCALBASE}/lib X XMAKE_ENV+= BINPATH=${BINPATH} INCPATH=${INCPATH} LIBPATH=${LIBPATH} X XDOCSFILES= README X Xpost-extract: X @@cd ${WRKSRC}; X ${RM} -f eqn2img X Xpost-install: X.if !defined(NOPORTDOCS) X @cd ${WRKSRC}; \ X ${MKDIR} ${DOCSDIR}; \ X ${INSTALL_DATA} ${DOCSFILES} ${DOCSDIR} X.endif X X.include END-of-gladtex/Makefile echo x - gladtex/pkg-plist sed 's/^X//' >gladtex/pkg-plist << 'END-of-gladtex/pkg-plist' X@comment $FreeBSD$ Xbin/gladtex Xbin/eqn2img X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-gladtex/pkg-plist echo x - gladtex/distinfo sed 's/^X//' >gladtex/distinfo << 'END-of-gladtex/distinfo' XMD5 (gladtex-0.3.tar.gz) = f01aa455cc4de0bd5b937255fb8142d9 XSHA256 (gladtex-0.3.tar.gz) = 8d6204427f3bcefd26a00b971683a4479fdf1a04a2176d2a60983bde239ef9b8 XSIZE (gladtex-0.3.tar.gz) = 29730 END-of-gladtex/distinfo echo c - gladtex/files mkdir -p gladtex/files > /dev/null 2>&1 echo x - gladtex/files/patch-Makefile sed 's/^X//' >gladtex/files/patch-Makefile << 'END-of-gladtex/files/patch-Makefile' X$FreeBSD$ X--- Makefile Wed Oct 30 13:24:34 2002 X+++ Makefile.port Sat Feb 4 21:43:23 2006 X@@ -1,14 +1,17 @@ X-BINPATH = /usr/local/bin X+BINPATH?= /usr/local/bin X+LIBPATH?= /usr/local/lib X+INCPATH?= /usr/local/include X X-CC = gcc -O2 -DGIF X-LIB = -lm -lz -lungif -lpng X+CC = gcc X+CFLAGS+= -DGIF ${INCPATH} X+LIB = -lm -lz ${LIBPATH} -lungif -lpng X OBJ = eqn2img.o X X all: ${OBJ} X- ${CC} -o eqn2img ${LIB} ${OBJ} X+ ${CC} ${CFLAGS} -o eqn2img ${LIB} ${OBJ} X X eqn2img.o: eqn2img.c X- ${CC} -c eqn2img.c X+ ${CC} ${CFLAGS} -c eqn2img.c X X install: all X install -m 755 -s eqn2img ${BINPATH} END-of-gladtex/files/patch-Makefile echo x - gladtex/files/patch-eqn2img.c sed 's/^X//' >gladtex/files/patch-eqn2img.c << 'END-of-gladtex/files/patch-eqn2img.c' X$FreeBSD$ X--- eqn2img.c Tue Nov 5 18:10:13 2002 X+++ eqn2img.c.port Sat Feb 4 21:29:22 2006 X@@ -675,7 +675,7 @@ X fprintf(stderr, " -> ps"); X X cmd = NEW(char, 2*strlen(basename) + 35); X- sprintf(cmd, "dvips -E -o %s.ps %s.dvi &> /dev/null", basename, basename); X+ sprintf(cmd, "dvips -q -E -o %s.ps %s.dvi", basename, basename); X if(system(cmd)) { X fprintf(stderr, "\nError running dvips\n"); X return -1; X@@ -714,7 +714,7 @@ X basename, dpi*supersample, xsize, ysize, basename); X gs = popen(cmd, "w"); X fprintf(gs, "%i neg %i neg translate\n", xoffset, yoffset); X- fclose(gs); X+ pclose(gs); X sprintf(cmd, "%s.ps", basename); X unlink(cmd); X free(cmd); END-of-gladtex/files/patch-eqn2img.c echo x - gladtex/files/patch-gladtex sed 's/^X//' >gladtex/files/patch-gladtex << 'END-of-gladtex/files/patch-gladtex' X$FreeBSD$ X--- gladtex Tue Nov 5 18:07:14 2002 X+++ gladtex.port Sat Feb 4 21:37:09 2006 X@@ -116,9 +116,9 @@ X # remove ./ X $dest =~ s/\.\///g; X # remove // X- while($dest =~ s{//}{/}gc) {}; X+ while($dest =~ s{//}{/}g) {}; X # remove ../ X- while($dest =~ s{/([^/]*/)\.\./}{$1}gc) {}; X+ while($dest =~ s{/([^/]*/)\.\./}{$1}g) {}; X # remove trailing / X $dest =~ s/\/$//; X END-of-gladtex/files/patch-gladtex exit --- gladtex-0.3.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: