aboutsummaryrefslogtreecommitdiffstats
path: root/print/tex-texmflocal
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-01-26 04:02:42 +0800
committerkrion <krion@FreeBSD.org>2004-01-26 04:02:42 +0800
commit658dcc57925a9c5c989d8985eaa666e24ff5e0e8 (patch)
tree6c9101bbf332f6b188b36afa7b24c71924df613c /print/tex-texmflocal
parentac931cac70b6549ff963a72bd924c4a793c3e646 (diff)
downloadfreebsd-ports-gnome-658dcc57925a9c5c989d8985eaa666e24ff5e0e8.tar.gz
freebsd-ports-gnome-658dcc57925a9c5c989d8985eaa666e24ff5e0e8.tar.zst
freebsd-ports-gnome-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/tex-texmflocal')
-rw-r--r--print/tex-texmflocal/Makefile48
-rw-r--r--print/tex-texmflocal/files/pkg-install.in11
-rw-r--r--print/tex-texmflocal/pkg-descr2
-rw-r--r--print/tex-texmflocal/pkg-plist36
4 files changed, 97 insertions, 0 deletions
diff --git a/print/tex-texmflocal/Makefile b/print/tex-texmflocal/Makefile
new file mode 100644
index 000000000000..91374518acac
--- /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 000000000000..9327d9d0867c
--- /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 000000000000..0106a4f8bb49
--- /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 000000000000..1c82f4cb98ed
--- /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%%