summaryrefslogtreecommitdiff
path: root/print/texmf-dirs
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-04-06 23:07:01 +0000
committerminskim <minskim@pkgsrc.org>2006-04-06 23:07:01 +0000
commit2cdfcaab5b966d844cfcda3e4e6b3c0a9af0e425 (patch)
treead9e965eb143b7e25a7d092efa09e894a00d8007 /print/texmf-dirs
parenta43399b38fd8f9c8b8cb6a966a6dc6f9eb13f059 (diff)
downloadpkgsrc-2cdfcaab5b966d844cfcda3e4e6b3c0a9af0e425.tar.gz
Import texmf-dirs, which installs a TeX directory structure in
texmf-local to be shared by pkgsrc TeX packages.
Diffstat (limited to 'print/texmf-dirs')
-rw-r--r--print/texmf-dirs/DESCR1
-rw-r--r--print/texmf-dirs/Makefile36
-rw-r--r--print/texmf-dirs/PLIST1
-rw-r--r--print/texmf-dirs/dirs.mk57
4 files changed, 95 insertions, 0 deletions
diff --git a/print/texmf-dirs/DESCR b/print/texmf-dirs/DESCR
new file mode 100644
index 00000000000..2f640e97dee
--- /dev/null
+++ b/print/texmf-dirs/DESCR
@@ -0,0 +1 @@
+texmf-dirs installs a TeX directory structure for pkgsrc TeX packages.
diff --git a/print/texmf-dirs/Makefile b/print/texmf-dirs/Makefile
new file mode 100644
index 00000000000..99b76b0dec7
--- /dev/null
+++ b/print/texmf-dirs/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/04/06 23:07:01 minskim Exp $
+
+DISTNAME= texmf-dirs-1.0
+CATEGORIES= print
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= # empty
+COMMENT= Local TeX directory structure
+
+NO_BUILD= yes
+NO_CONFIGURE= yes
+NO_CHECKSUM= yes
+NO_EXTRACT= yes
+USE_LANGUAGES= # empty
+WRKSRC= ${WRKDIR}
+
+.include "dirs.mk"
+.include "../../mk/bsd.prefs.mk"
+
+.include "../../mk/tex.buildlink3.mk"
+.if ${TEX_TYPE} == "teTeX1"
+REQD_DIRS= # empty
+.else
+REQD_DIRS+= ${TEXMF_DIRS:O:S/^/${PREFIX}\/share\/texmf-local\//}
+. if ${TEX_TYPE} == "teTeX2"
+BUILDLINK_API_DEPENDS.teTeX-bin+= teTeX-bin>=2.0.2nb7 teTeX-bin<3.0
+. elif ${TEX_TYPE} == "teTeX3"
+BUILDLINK_API_DEPENDS.teTeX-bin+= teTeX-bin>=3.0nb10
+. endif
+.endif
+
+do-install: # nothing
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/texmf-dirs/PLIST b/print/texmf-dirs/PLIST
new file mode 100644
index 00000000000..f82865202cc
--- /dev/null
+++ b/print/texmf-dirs/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/04/06 23:07:01 minskim Exp $
diff --git a/print/texmf-dirs/dirs.mk b/print/texmf-dirs/dirs.mk
new file mode 100644
index 00000000000..fd31c1451bc
--- /dev/null
+++ b/print/texmf-dirs/dirs.mk
@@ -0,0 +1,57 @@
+# $NetBSD: dirs.mk,v 1.1.1.1 2006/04/06 23:07:01 minskim Exp $
+#
+# This file is intended to be included by mk/dirs.mk, not directly by packages.
+#
+
+.if !defined(DIRS_TEXMF_MK)
+DIRS_TEXMF_MK= # defined
+
+TEXMF_DIRS= bibtex
+TEXMF_DIRS+= bibtex/bib
+TEXMF_DIRS+= bibtex/bst
+TEXMF_DIRS+= doc
+TEXMF_DIRS+= doc/fonts
+TEXMF_DIRS+= doc/latex
+TEXMF_DIRS+= dvipdfm
+TEXMF_DIRS+= fonts
+TEXMF_DIRS+= fonts/afm
+TEXMF_DIRS+= fonts/enc
+TEXMF_DIRS+= fonts/enc/pdftex
+TEXMF_DIRS+= fonts/map
+TEXMF_DIRS+= fonts/map/dvipdfm
+TEXMF_DIRS+= fonts/map/pdftex
+TEXMF_DIRS+= fonts/ofm
+TEXMF_DIRS+= fonts/ovf
+TEXMF_DIRS+= fonts/ovp
+TEXMF_DIRS+= fonts/source
+TEXMF_DIRS+= fonts/tfm
+TEXMF_DIRS+= fonts/truetype
+TEXMF_DIRS+= fonts/type1
+TEXMF_DIRS+= fonts/type1/public
+TEXMF_DIRS+= fonts/vf
+TEXMF_DIRS+= makeindex
+TEXMF_DIRS+= omega
+TEXMF_DIRS+= omega/ocp
+TEXMF_DIRS+= omega/otp
+TEXMF_DIRS+= tex
+TEXMF_DIRS+= tex/lambda
+TEXMF_DIRS+= tex/latex
+TEXMF_DIRS+= tex/web2c
+
+.if defined(_USE_TEXMF_DIRS) && !empty(_USE_TEXMF_DIRS)
+DEPENDS+= texmf-dirs>=${_USE_TEXMF_DIRS}:../../print/texmf-dirs
+
+# Should be removed once all TeX packages are converted to use texmf-dirs
+# and PKG_LOCALTEXMFPREFIX is defined correctly in teTeX[23]-bin/buildlink3.mk.
+.if !empty(TEX_TYPE:MteTeX[23])
+PKG_LOCALTEXMFPREFIX= ${PREFIX}/share/texmf-local
+.endif
+
+. for dir in ${TEXMF_DIRS}
+PRINT_PLIST_AWK+= /^@exec \$${MKDIR} %D\/${dir:S|/|\\/|g}$$/ { next; }
+PRINT_PLIST_AWK+= /^@dirrm ${dir:S|/|\\/|g}$$/ \
+ { print "@comment In texmf-dirs: " $$0; next; }
+. endfor
+.endif
+
+.endif # !defined(DIRS_TEXMF_MK)