diff options
author | ijliao <ijliao@FreeBSD.org> | 2005-04-15 15:36:16 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2005-04-15 15:36:16 +0800 |
commit | 1564a8f04024e2b977483f336f8212deee9fe057 (patch) | |
tree | 8aa80c25e8388497c18caa1161c88b4b176ac5b3 /print | |
parent | 1ae7bd8e7722651f8f72ecaadc02e9190c5445ae (diff) | |
download | freebsd-ports-gnome-1564a8f04024e2b977483f336f8212deee9fe057.tar.gz freebsd-ports-gnome-1564a8f04024e2b977483f336f8212deee9fe057.tar.zst freebsd-ports-gnome-1564a8f04024e2b977483f336f8212deee9fe057.zip |
add dvisvg 0.7.4d
Convertor from DVI to SVG
Diffstat (limited to 'print')
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/dvisvg/Makefile | 55 | ||||
-rw-r--r-- | print/dvisvg/distinfo | 2 | ||||
-rw-r--r-- | print/dvisvg/files/patch-Makefile | 27 | ||||
-rw-r--r-- | print/dvisvg/pkg-descr | 10 |
5 files changed, 95 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index 6680e7d298bd..37b4f7161130 100644 --- a/print/Makefile +++ b/print/Makefile @@ -55,6 +55,7 @@ SUBDIR += dvips2ascii SUBDIR += dvipsk-tetex SUBDIR += dviselect + SUBDIR += dvisvg SUBDIR += enscript-a4 SUBDIR += enscript-letter SUBDIR += enscript-letterdj diff --git a/print/dvisvg/Makefile b/print/dvisvg/Makefile new file mode 100644 index 000000000000..2821df4e31ff --- /dev/null +++ b/print/dvisvg/Makefile @@ -0,0 +1,55 @@ +# ex:ts=8 +# Ports collection makefile for: dvisvg +# Date created: Apr 15, 2005 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= dvisvg +PORTVERSION= 0.7.1.d +CATEGORIES= print +MASTER_SITES= http://dvisvg.sourceforge.net/ +DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E} + +MAINTAINER= ports@FreeBSD.org +COMMENT= Convertor from DVI to SVG + +BUILD_DEPENDS= ${MKTEXLSR}:${PORTSDIR}/print/teTeX +RUN_DEPENDS= ${MKTEXLSR}:${PORTSDIR}/print/teTeX \ + ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R} +USE_REINPLACE= yes +USE_GETOPT_LONG= yes +USE_GHOSTSCRIPT_RUN= yes +ALL_TARGET= # empty +MAKE_ENV= TEXMFLOCAL=${TEXMFLOCAL} + +TEXMFLOCAL= share/texmf-local +TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R +MKTEXLSR= ${LOCALBASE}/bin/mktexlsr + +PLIST_FILES= bin/dvisvg +MAN1= dvisvg.1 + +post-patch: + @${REINPLACE_CMD} -e "s,[$$][(]CC[)],$$\(CC\) ${CFLAGS}," ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "s,/usr/share/texmf,${LOCALBASE}/${TEXMFLOCAL}," ${WRKSRC}/version.h + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/dvisvg ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/dvisvg.man ${MAN1PREFIX}/man/man1/dvisvg.1 + @${MKDIR} ${PREFIX}/${TEXMFLOCAL}/${PORTNAME} +.for file in dvisvg.map font2svg.enc font2svg.ps + ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/${TEXMFLOCAL}/${PORTNAME} + @${ECHO_CMD} "${TEXMFLOCAL}/${PORTNAME}/${file}" >> ${TMPPLIST} +.endfor + @${ECHO_CMD} "@dirrm ${TEXMFLOCAL}/${PORTNAME}" >> ${TMPPLIST} + @${ECHO_CMD} '@exec ${MKTEXLSR}' >> ${TMPPLIST} + @${ECHO_CMD} '@unexec ${MKTEXLSR}' >> ${TMPPLIST} + +post-install: + @${MKTEXLSR} + +.include <bsd.port.mk> diff --git a/print/dvisvg/distinfo b/print/dvisvg/distinfo new file mode 100644 index 000000000000..3b7a4dde281d --- /dev/null +++ b/print/dvisvg/distinfo @@ -0,0 +1,2 @@ +MD5 (dvisvg-0.7.1d.tar.gz) = e39da0063a4f8298060a2ba484d88eb1 +SIZE (dvisvg-0.7.1d.tar.gz) = 93405 diff --git a/print/dvisvg/files/patch-Makefile b/print/dvisvg/files/patch-Makefile new file mode 100644 index 000000000000..fa895b434be2 --- /dev/null +++ b/print/dvisvg/files/patch-Makefile @@ -0,0 +1,27 @@ +--- Makefile.orig Mon Feb 28 20:45:37 2005 ++++ Makefile Fri Apr 15 15:04:06 2005 +@@ -2,19 +2,19 @@ + # automaticaly generated by configure script + + # Targer directory +-TARGETDIR=/usr ++TARGETDIR=${PREFIX} + + # Kpathsea +-LINC=$(TARGETDIR)/include +-LLIB=$(TARGETDIR)/lib ++LINC=$(LOCALBASE)/include ++LLIB=$(LOCALBASE)/lib + + # CC + CC=cc -DHAVE_PROTOTYPES -posix + + # Install +-BINDIR=$(TARGETDIR)/bin/i586-pc-linux-gnu ++BINDIR=$(TARGETDIR)/bin + MANDIR=$(TARGETDIR)/man/man1 +-CNFDIR=/usr/share/texmf/dvisvg ++CNFDIR=${PREFIX}/${TEXMFLOCAL}/dvisvg + + # DVISVG + OFILES=dvibase.o napln.o dvitfm.o svgfonts.o dvipage.o svgout.o diff --git a/print/dvisvg/pkg-descr b/print/dvisvg/pkg-descr new file mode 100644 index 000000000000..dbb78147a37d --- /dev/null +++ b/print/dvisvg/pkg-descr @@ -0,0 +1,10 @@ +DVISVG creates one SVG Document, which includes content of the selected page +from the specified DVI file. DVISVG produces outlines for used glyphs/characters +in DVI file as an external SVG Font. + +SVG Document produced by DVISVG uses external SVG Fonts so there is +a problem with using Adobe's SVG Viewer which doesn't currently support it. +Solution is using embeded fonts which can to be easily inserted in svg file +from the external fonts file. + +WWW: http://dvisvg.sourceforge.net/ |