diff options
author | krion <krion@FreeBSD.org> | 2004-01-26 04:02:42 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-01-26 04:02:42 +0800 |
commit | 658dcc57925a9c5c989d8985eaa666e24ff5e0e8 (patch) | |
tree | 6c9101bbf332f6b188b36afa7b24c71924df613c /print | |
parent | ac931cac70b6549ff963a72bd924c4a793c3e646 (diff) | |
download | freebsd-ports-graphics-658dcc57925a9c5c989d8985eaa666e24ff5e0e8.tar.gz freebsd-ports-graphics-658dcc57925a9c5c989d8985eaa666e24ff5e0e8.tar.zst freebsd-ports-graphics-658dcc57925a9c5c989d8985eaa666e24ff5e0e8.zip |
Add tex-texmflocal 1.0,
This is a meta-port to create a site-local $TEXMF directory,
which is used to store site-local fonts, macro packages, and
configurations.
PR: ports/61892
Submitted by: hrs@FreeBSD.org
Diffstat (limited to 'print')
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/tex-texmflocal/Makefile | 48 | ||||
-rw-r--r-- | print/tex-texmflocal/files/pkg-install.in | 11 | ||||
-rw-r--r-- | print/tex-texmflocal/pkg-descr | 2 | ||||
-rw-r--r-- | print/tex-texmflocal/pkg-plist | 36 |
5 files changed, 98 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index cdb802ed369..897f0c3bf04 100644 --- a/print/Makefile +++ b/print/Makefile @@ -186,6 +186,7 @@ SUBDIR += t1utils SUBDIR += teTeX SUBDIR += tex + SUBDIR += tex-texmflocal SUBDIR += texpower SUBDIR += tgif2tex SUBDIR += tipograf diff --git a/print/tex-texmflocal/Makefile b/print/tex-texmflocal/Makefile new file mode 100644 index 00000000000..91374518aca --- /dev/null +++ b/print/tex-texmflocal/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: tex-texmflocal +# Date created: 24 Jan 2004 +# Whom: hrs@FreeBSD.org +# +# $FreeBSD$ + +PORTNAME= tex-texmflocal +PORTVERSION= 1.0 +CATEGORIES= print +MASTER_SITES= # empty +DISTFILES= # empty + +MAINTAINER= hrs@FreeBSD.org +COMMENT= Meta-port that creates a site-local $$TEXMF directory + +BUILD_DEPENDS= mktexlsr:${PORTSDIR}/print/teTeX + +NO_WRKSUBDIR= yes +NO_BUILD= yes +PLIST_SUB= TEXMFLOCAL=${TEXMFLOCAL} MKTEXLSR=${MKTEXLSR} +PKGINSTALL= ${WRKDIR}/pkg-install.sh +PKGDEINSTALL= ${WRKDIR}/pkg-install.sh + +TEXMFLOCAL= share/texmf-local +TEXMFLOCAL_LSR= ${LOCALBASE}/${TEXMFLOCAL}/ls-R +MKTEXLSR= ${LOCALBASE}/bin/mktexlsr + +DIRS= bibtex bibtex/bib bibtex/bst +DIRS+= dvipdfm dvips +DIRS+= fonts fonts/afm fonts/ofm fonts/ovp fonts/ovf +DIRS+= fonts/ocp fonts/pk fonts/tfm fonts/type1 +DIRS+= fonts/source fonts/source/public fonts/vf +DIRS+= jbibtex jbibtex/bib jbibtex/bst +DIRS+= tex tex/generic tex/jadetex tex/latex tex/plain +DIRS+= pdftex pdftex/latex pdftex/platex +DIRS+= ptex ptex/plain ptex/platex + +do-install: + ${MKDIR} ${DIRS:S,^,${PREFIX}/${TEXMFLOCAL}/,} + ${SED} -e 's,%%TEXMFLOCAL_LSR%%,${TEXMFLOCAL_LSR},' \ + < ${FILESDIR}/pkg-install.in > ${PKGINSTALL} + ${CHMOD} 0555 ${PKGINSTALL} + +post-install: + @${MKTEXLSR} + @${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.include <bsd.port.mk> diff --git a/print/tex-texmflocal/files/pkg-install.in b/print/tex-texmflocal/files/pkg-install.in new file mode 100644 index 00000000000..9327d9d0867 --- /dev/null +++ b/print/tex-texmflocal/files/pkg-install.in @@ -0,0 +1,11 @@ +# $FreeBSD$ + +case $2 in +POST-INSTALL|DEINSTALL) + echo "fixup %%TEXMFLOCAL_LSR%%..." + T=/tmp/tex-texmflocal.$$ + cat %%TEXMFLOCAL_LSR%% | grep -v "./lsR[0-9]*.tmp": > ${T} + cp ${T} %%TEXMFLOCAL_LSR%% + rm -f ${T} +;; +esac diff --git a/print/tex-texmflocal/pkg-descr b/print/tex-texmflocal/pkg-descr new file mode 100644 index 00000000000..0106a4f8bb4 --- /dev/null +++ b/print/tex-texmflocal/pkg-descr @@ -0,0 +1,2 @@ +This is a meta-port to create a site-local $TEXMF directory, which is +used to store site-local fonts, macro packages, and configurations. diff --git a/print/tex-texmflocal/pkg-plist b/print/tex-texmflocal/pkg-plist new file mode 100644 index 00000000000..1c82f4cb98e --- /dev/null +++ b/print/tex-texmflocal/pkg-plist @@ -0,0 +1,36 @@ +@comment $FreeBSD$ +%%TEXMFLOCAL%%/ls-R +@dirrm %%TEXMFLOCAL%%/bibtex/bib +@dirrm %%TEXMFLOCAL%%/bibtex/bst +@dirrm %%TEXMFLOCAL%%/bibtex +@dirrm %%TEXMFLOCAL%%/dvipdfm +@dirrm %%TEXMFLOCAL%%/dvips +@dirrm %%TEXMFLOCAL%%/fonts/afm +@dirrm %%TEXMFLOCAL%%/fonts/ofm +@dirrm %%TEXMFLOCAL%%/fonts/ovp +@dirrm %%TEXMFLOCAL%%/fonts/ovf +@dirrm %%TEXMFLOCAL%%/fonts/ocp +@dirrm %%TEXMFLOCAL%%/fonts/pk +@dirrm %%TEXMFLOCAL%%/fonts/tfm +@dirrm %%TEXMFLOCAL%%/fonts/type1 +@dirrm %%TEXMFLOCAL%%/fonts/source/public +@dirrm %%TEXMFLOCAL%%/fonts/source +@dirrm %%TEXMFLOCAL%%/fonts/vf +@dirrm %%TEXMFLOCAL%%/fonts +@dirrm %%TEXMFLOCAL%%/jbibtex/bib +@dirrm %%TEXMFLOCAL%%/jbibtex/bst +@dirrm %%TEXMFLOCAL%%/jbibtex +@dirrm %%TEXMFLOCAL%%/tex/generic +@dirrm %%TEXMFLOCAL%%/tex/jadetex +@dirrm %%TEXMFLOCAL%%/tex/latex +@dirrm %%TEXMFLOCAL%%/tex/plain +@dirrm %%TEXMFLOCAL%%/tex +@dirrm %%TEXMFLOCAL%%/pdftex/latex +@dirrm %%TEXMFLOCAL%%/pdftex/platex +@dirrm %%TEXMFLOCAL%%/pdftex +@dirrm %%TEXMFLOCAL%%/ptex/plain +@dirrm %%TEXMFLOCAL%%/ptex/platex +@dirrm %%TEXMFLOCAL%%/ptex +@dirrm %%TEXMFLOCAL%% +@exec %%MKTEXLSR%% +@unexec %%MKTEXLSR%% |