Skip site navigation (1)Skip section navigation (2)
Date:      4 Feb 2006 20:56:17 -0000
From:      nivit@email.it (Nicola Vitale)
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92820: [NEW PORT] textproc/gladtex: A program to replace LaTeX formulas in HTML files with images
Message-ID:  <20060204205617.12075.qmail@stellina>
Resent-Message-ID: <200602042100.k14L0O7U047867@freefall.freebsd.org>

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

>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 <EQ></EQ>)
and produces html with equations substituted by images.

Author:	Martin G. Gulbrandsen <martingu@math.uio.no>
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 <EQ></EQ>)
Xand produces html with equations substituted by images.
X
XAuthor:	Martin G. Gulbrandsen <martingu@math.uio.no>
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	<nivit@email.it>
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 <bsd.port.mk>
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:



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