mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
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
This commit is contained in:
parent
7857a12163
commit
015a29d2b7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99114
@ -186,6 +186,7 @@
|
||||
SUBDIR += t1utils
|
||||
SUBDIR += teTeX
|
||||
SUBDIR += tex
|
||||
SUBDIR += tex-texmflocal
|
||||
SUBDIR += texpower
|
||||
SUBDIR += tgif2tex
|
||||
SUBDIR += tipograf
|
||||
|
48
print/tex-texmflocal/Makefile
Normal file
48
print/tex-texmflocal/Makefile
Normal file
@ -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>
|
11
print/tex-texmflocal/files/pkg-install.in
Normal file
11
print/tex-texmflocal/files/pkg-install.in
Normal file
@ -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
|
2
print/tex-texmflocal/pkg-descr
Normal file
2
print/tex-texmflocal/pkg-descr
Normal file
@ -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.
|
36
print/tex-texmflocal/pkg-plist
Normal file
36
print/tex-texmflocal/pkg-plist
Normal file
@ -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%%
|
Loading…
Reference in New Issue
Block a user