1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00

Add mimetex 1.60, a CGI script that lets you embed LaTeX math in your

HTML pages.

PR:		ports/92783
Submitted by:	Nicola Vitale	<nivit@email.it>
Approved by:	tobez
This commit is contained in:
Aaron Dalton 2006-05-05 06:30:32 +00:00
parent 23771c7b3d
commit 5c05bf1526
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161381
6 changed files with 75 additions and 0 deletions

View File

@ -257,6 +257,7 @@
SUBDIR += mhonarc
SUBDIR += micro_httpd
SUBDIR += middleman
SUBDIR += mimetex
SUBDIR += mini_httpd
SUBDIR += mkapachepw
SUBDIR += mknmz-wwwoffle

47
www/mimetex/Makefile Normal file
View File

@ -0,0 +1,47 @@
# New ports collection makefile for: mimetex
# Date created: 2006-02-03
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= mimetex
PORTVERSION= 1.60
CATEGORIES= www math
MASTER_SITES= http://www.forkosh.com/ \
http://nivi.interfree.it/distfiles/${DIST_SUBDIR}/
DISTNAME= ${PORTNAME}
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= nivit@email.it
COMMENT= A CGI script that lets you embed LaTeX math in your HTML pages
NO_WRKSUBDIR= yes
USE_APACHE= yes
USE_ZIP= yes
FETCH_CMD= /usr/bin/fetch -rR # see PR bin/76134
LN_OPTS= -sf
CGI_BIN= ${PREFIX}/www/cgi-bin/
CGI_PRG= ${PORTNAME}.cgi
WWW_DIR= ${PREFIX}/www/data/mimetex/
do-build:
cd ${WRKDIR};\
${CC} ${CFLAGS} -DAA mimetex.c gifsave.c -lm -o ${CGI_PRG}
do-install:
${MKDIR} ${CGI_BIN}
${INSTALL_PROGRAM} ${WRKSRC}/${CGI_PRG} ${CGI_BIN}/${CGI_PRG}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
${MKDIR} ${WWW_DIR}
${LN} ${LN_OPTS} ${DOCSDIR}/${PORTNAME}.html ${WWW_DIR}/index.html
.endif
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

3
www/mimetex/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (mimetex/1.60/mimetex.zip) = 9b201b0e36d83b2713caa9048958be82
SHA256 (mimetex/1.60/mimetex.zip) = 7cd7de6f62471301ebf58490e00a00ccc60728d629c2cdfcfb167dfe063e691b
SIZE (mimetex/1.60/mimetex.zip) = 643731

11
www/mimetex/pkg-descr Normal file
View File

@ -0,0 +1,11 @@
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
use TeX or its fonts in any way. It's just one cgi that you put in
your site's cgi-bin/ directory, with no other dependencies.
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 <john@forkosh.com>
WWW: http://www.forkosh.com/mimetex.html

6
www/mimetex/pkg-message Normal file
View File

@ -0,0 +1,6 @@
*********************************************************
See online documentation at http://localhost/mimetex/
*********************************************************

7
www/mimetex/pkg-plist Normal file
View File

@ -0,0 +1,7 @@
@comment $FreeBSD$
%%PORTDOCS%%%%DOCSDIR%%/mimetex.html
%%PORTDOCS%%www/data/mimetex/index.html
www/cgi-bin/mimetex.cgi
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm www/data/mimetex
@dirrmtry www/cgi-bin