1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Add ports math/jsmath and math/jsmath-fonts:

The jsMath package provides a method of including mathematics in HTML pages
that works across multiple browsers under Windows, Macintosh OS X, Linux and
other flavors of unix. jsMath uses native fonts, so they resize when you
change the size of the text in your browser, they print at the full resolution
of your printer, and you don't have to wait for dozens of images to be
downloaded in order to see the mathematics in a web page. There are also
advantages for web-page authors, as there is no need to preprocess your
web pages to generate any images, and the mathematics is entered in TeX form,
so it is easy to create and maintain your web pages.

Although it works best with the TeX fonts installed, jsMath will fall back
on a collection of image-based fonts (which can still be scaled or printed
at high resolution) or unicode fonts when the TeX fonts are not available.

Author: Davide P. Cervone <dvpc@union.edu>
WWW:    http://www.math.union.edu/~dpvc/jsMath/

PR:		ports/93864 (based on)
Submitted by:	Nicola Vitale <nivit@email.it>
Approved by:	krion (mentor)
This commit is contained in:
Andrew Pantyukhin 2006-06-01 17:39:10 +00:00
parent bf06e9ce55
commit fac3011516
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164162
9 changed files with 20460 additions and 0 deletions

View File

@ -99,6 +99,8 @@
SUBDIR += jama
SUBDIR += javanns
SUBDIR += javaview
SUBDIR += jsmath
SUBDIR += jsmath-fonts
SUBDIR += k3dsurf
SUBDIR += kash3
SUBDIR += kaskade

View File

@ -0,0 +1,37 @@
# New ports collection makefile for: jsMath-fonts
# Date created: 2006-02-23
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= jsMath-fonts
PORTVERSION= 1.3
CATEGORIES= math www
MASTER_SITES= http://www.math.union.edu/~dpvc/jsMath/download/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
MAINTAINER= nivit@email.it
COMMENT= A raster fonts pack for jsmath
USE_ZIP= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/jsMath
WWWDIR?= ${PREFIX}/www/jsMath
WWWDIR_REL?= ${WWWDIR:S,^${PREFIX}/,,}
.for _i in bx ex mi r sy ti
PLIST_SUB+= D${_i}a=${WWWDIR_REL}/fonts/cm${_i}10/alpha
PLIST_SUB+= D${_i}p=${WWWDIR_REL}/fonts/cm${_i}10/plain
.endfor
PLIST_SUB+= Dcma=${WWWDIR_REL}/fonts/cm-fonts/alpha
PLIST_SUB+= Dcmp=${WWWDIR_REL}/fonts/cm-fonts/plain
PLIST_SUB+= WWWDIR=${WWWDIR_REL}
do-install:
@${INSTALL} -d ${WWWDIR}/fonts
@${CP} -Rp ${WRKSRC}/fonts/ ${WWWDIR}/fonts/
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WWWDIR}/fonts/
@${CHMOD} -R go-w ${WWWDIR}/fonts/
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (jsMath-fonts-1.3.zip) = bb85e4cbafc39d4ca3e370cf8f8a040f
SHA256 (jsMath-fonts-1.3.zip) = fa506afae51374b8197f533a11d324584bb6fb05b22d6f0140ce56a46adfa214
SIZE (jsMath-fonts-1.3.zip) = 7874767

View File

@ -0,0 +1,6 @@
Although it works best with the TeX fonts installed, jsMath canfall back
on a collection of image-based fonts (which can still be scaled or printed
at high resolution). This is a pack of those.
Author: Davide P. Cervone <dvpc@union.edu>
WWW: http://www.math.union.edu/~dpvc/jsMath/

20305
math/jsmath-fonts/pkg-plist Normal file

File diff suppressed because it is too large Load Diff

37
math/jsmath/Makefile Normal file
View File

@ -0,0 +1,37 @@
# New ports collection makefile for: jsMath
# Date created: 2006-02-23
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= jsMath
PORTVERSION= 3.3a
CATEGORIES= math www
MASTER_SITES= http://www.math.union.edu/~dpvc/jsMath/download/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
MAINTAINER= nivit@email.it
COMMENT= A Javascript tool for including mathematics in web pages
USE_ZIP= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
WWWDIR?= ${PREFIX}/www/${PORTNAME}
PLIST_SUB+= WWWDIR=${WWWDIR:S,^${PREFIX}/,,}
OPTIONS= IMAGE_FONTS "Enable image fonts" On
.include <bsd.port.pre.mk>
.if defined(WITH_IMAGE_FONTS)
RUN_DEPENDS+= ${WWWDIR}/fonts/cm-fonts/alpha/def.js:${PORTSDIR}/math/jsmath-fonts
.endif
do-install:
@${INSTALL} -d ${WWWDIR}
@${CP} -Rp ${WRKSRC}/ ${WWWDIR}/
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WWWDIR}/
@${CHMOD} -R go-w ${WWWDIR}/
.include <bsd.port.post.mk>

3
math/jsmath/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (jsMath-3.3a.zip) = df3fef93c46059362d4c8f651479f7be
SHA256 (jsMath-3.3a.zip) = 301f453bfeecf43581382a7566afbb03b2ac16c56e90818396b467b094c7ac6d
SIZE (jsMath-3.3a.zip) = 258543

16
math/jsmath/pkg-descr Normal file
View File

@ -0,0 +1,16 @@
The jsMath package provides a method of including mathematics in HTML pages
that works across multiple browsers under Windows, Macintosh OS X, Linux and
other flavors of unix. jsMath uses native fonts, so they resize when you
change the size of the text in your browser, they print at the full resolution
of your printer, and you don't have to wait for dozens of images to be
downloaded in order to see the mathematics in a web page. There are also
advantages for web-page authors, as there is no need to preprocess your
web pages to generate any images, and the mathematics is entered in TeX form,
so it is easy to create and maintain your web pages.
Although it works best with the TeX fonts installed, jsMath will fall back
on a collection of image-based fonts (which can still be scaled or printed
at high resolution) or unicode fonts when the TeX fonts are not available.
Author: Davide P. Cervone <dvpc@union.edu>
WWW: http://www.math.union.edu/~dpvc/jsMath/

51
math/jsmath/pkg-plist Normal file
View File

@ -0,0 +1,51 @@
%%WWWDIR%%/COPYING.txt
%%WWWDIR%%/blank.gif
%%WWWDIR%%/extensions/AMSsymbols.js
%%WWWDIR%%/extensions/HTML.js
%%WWWDIR%%/extensions/bbox.js
%%WWWDIR%%/extensions/boldsymbol.js
%%WWWDIR%%/extensions/double-click.js
%%WWWDIR%%/extensions/fbox.js
%%WWWDIR%%/extensions/font.js
%%WWWDIR%%/extensions/leaders.js
%%WWWDIR%%/extensions/mathchoice.js
%%WWWDIR%%/extensions/mimeTeX.js
%%WWWDIR%%/extensions/moreArrows.js
%%WWWDIR%%/extensions/newcommand.js
%%WWWDIR%%/extensions/underset-overset.js
%%WWWDIR%%/jsMath-BaKoMa-fonts.js
%%WWWDIR%%/jsMath-autoload.html
%%WWWDIR%%/jsMath-controls.html
%%WWWDIR%%/jsMath-fallback-mac-mozilla.js
%%WWWDIR%%/jsMath-fallback-mac-msie.js
%%WWWDIR%%/jsMath-fallback-mac.js
%%WWWDIR%%/jsMath-fallback-pc.js
%%WWWDIR%%/jsMath-fallback-symbols.js
%%WWWDIR%%/jsMath-fallback-unix.js
%%WWWDIR%%/jsMath-global-controls.html
%%WWWDIR%%/jsMath-global.html
%%WWWDIR%%/jsMath-loader-omniweb4.js
%%WWWDIR%%/jsMath-loader.html
%%WWWDIR%%/jsMath-msie-mac.js
%%WWWDIR%%/jsMath-old-browsers.js
%%WWWDIR%%/jsMath.js
%%WWWDIR%%/plugins/CHMmode.js
%%WWWDIR%%/plugins/autoload.js
%%WWWDIR%%/plugins/global.js
%%WWWDIR%%/plugins/mimeTeX.js
%%WWWDIR%%/plugins/noCache.js
%%WWWDIR%%/plugins/noGlobal.js
%%WWWDIR%%/plugins/noImageFonts.js
%%WWWDIR%%/plugins/spriteImageFonts.js
%%WWWDIR%%/plugins/tex2math.js
%%WWWDIR%%/uncompressed/def.js
%%WWWDIR%%/uncompressed/font.js
%%WWWDIR%%/uncompressed/jsMath-fallback-mac.js
%%WWWDIR%%/uncompressed/jsMath-fallback-pc.js
%%WWWDIR%%/uncompressed/jsMath-fallback-symbols.js
%%WWWDIR%%/uncompressed/jsMath-fallback-unix.js
%%WWWDIR%%/uncompressed/jsMath.js
@dirrm %%WWWDIR%%/extensions
@dirrm %%WWWDIR%%/plugins
@dirrm %%WWWDIR%%/uncompressed
@dirrmtry %%WWWDIR%%