diff options
author | minskim <minskim> | 2009-01-03 22:12:42 +0000 |
---|---|---|
committer | minskim <minskim> | 2009-01-03 22:12:42 +0000 |
commit | 7b113e9612f5117b8b67d301f82da8c2dd4823e8 (patch) | |
tree | 7b32a1f5b175ad03c1be9a7bd6a33c6dddfec648 /print/kpathsea | |
parent | baff34d4619e19d88be3dc3f8333e8b3a19c96e5 (diff) | |
download | pkgsrc-7b113e9612f5117b8b67d301f82da8c2dd4823e8.tar.gz |
Import kpathsea-3.5.7 from pkgsrc-wip.
Kpathsea is a library to do path searching. It is used in the Web2C
implementation of TeX and friends. The library's fundamental purpose
is to return a filename from a list of directories specified by the
user, similar to what shells do when looking up program names to
execute.
Diffstat (limited to 'print/kpathsea')
-rw-r--r-- | print/kpathsea/DEINSTALL | 13 | ||||
-rw-r--r-- | print/kpathsea/DESCR | 5 | ||||
-rw-r--r-- | print/kpathsea/INSTALL | 13 | ||||
-rw-r--r-- | print/kpathsea/Makefile | 56 | ||||
-rw-r--r-- | print/kpathsea/PLIST | 84 | ||||
-rw-r--r-- | print/kpathsea/buildlink3.mk | 20 | ||||
-rw-r--r-- | print/kpathsea/distinfo | 6 | ||||
-rw-r--r-- | print/kpathsea/files/texmf-deinstall.tmpl | 13 | ||||
-rw-r--r-- | print/kpathsea/files/texmf-install.tmpl | 12 | ||||
-rw-r--r-- | print/kpathsea/patches/patch-aa | 56 | ||||
-rw-r--r-- | print/kpathsea/texmf.mk | 25 |
11 files changed, 303 insertions, 0 deletions
diff --git a/print/kpathsea/DEINSTALL b/print/kpathsea/DEINSTALL new file mode 100644 index 00000000000..78ec1d22316 --- /dev/null +++ b/print/kpathsea/DEINSTALL @@ -0,0 +1,13 @@ +# $NetBSD: DEINSTALL,v 1.1.1.1 2009/01/03 22:12:42 minskim Exp $ + +case "${STAGE}" in +DEINSTALL) + ${RM} -f \ + @PKG_SYSCONFDIR@/ls-R \ + @VARBASE@/lib/texmf/ls-R \ + @TEXMFLOCAL@/ls-R \ + @PREFIX@/share/doc/texmf/ls-R \ + @PREFIX@/share/texmf-dist/ls-R \ + @PREFIX@/share/texmf/ls-R + ;; +esac diff --git a/print/kpathsea/DESCR b/print/kpathsea/DESCR new file mode 100644 index 00000000000..b55c51f17aa --- /dev/null +++ b/print/kpathsea/DESCR @@ -0,0 +1,5 @@ +Kpathsea is a library to do path searching. It is used in the Web2C +implementation of TeX and friends. The library's fundamental purpose +is to return a filename from a list of directories specified by the +user, similar to what shells do when looking up program names to +execute. diff --git a/print/kpathsea/INSTALL b/print/kpathsea/INSTALL new file mode 100644 index 00000000000..b451cb044bf --- /dev/null +++ b/print/kpathsea/INSTALL @@ -0,0 +1,13 @@ +# $NetBSD: INSTALL,v 1.1.1.1 2009/01/03 22:12:42 minskim Exp $ + +case "${STAGE}" in +POST-INSTALL) + @PREFIX@/bin/mktexlsr \ + @PREFIX@/share/texmf \ + @PREFIX@/share/texmf-dist \ + @PREFIX@/share/doc/texmf \ + @TEXMFLOCAL@ \ + @VARBASE@/lib/texmf \ + @PKG_SYSCONFDIR@ + ;; +esac diff --git a/print/kpathsea/Makefile b/print/kpathsea/Makefile new file mode 100644 index 00000000000..aeeb92df774 --- /dev/null +++ b/print/kpathsea/Makefile @@ -0,0 +1,56 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/01/03 22:12:42 minskim Exp $ + +DISTNAME= texlive-20080816-source +PKGNAME= kpathsea-3.5.7 +CATEGORIES= print +MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/texlive/Source/} +EXTRACT_SUFX= .tar.lzma + +MAINTAINER= minskim@NetBSD.org +HOMEPAGE= http://www.tug.org/kpathsea/ +COMMENT= Path searching library for TeX-related files + +CONFLICTS+= teTeX-bin-[0-9]* +CONFLICTS+= teTeX-texmf-[0-9]* + +EXTRACT_ELEMENTS= ${DISTNAME}/texk/kpathsea \ + ${DISTNAME}/texk/make \ + ${DISTNAME}/texk/config.guess \ + ${DISTNAME}/texk/config.sub \ + ${DISTNAME}/texk/install.sh \ + ${DISTNAME}/texk/mkinstalldirs + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +INFO_FILES= yes +USE_LIBTOOL= yes +WRKSRC= ${WRKDIR}/${DISTNAME}/texk/kpathsea + +MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q} + +SUBST_CLASSES+= texmfdir +SUBST_MESSAGE.texmfdir= Setting texmf directories. +SUBST_STAGE.texmfdir= pre-configure +SUBST_FILES.texmfdir= texmf.cnf +SUBST_SED.texmfdir= -e 's,@TEXMFLOCAL@,${TEXMFLOCAL},' +SUBST_SED.texmfdir+= -e 's,@VARBASE@,${VARBASE},' +SUBST_SED.texmfdir+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},' + +PKG_SYSCONFSUBDIR= texmf + +BUILD_DEFS+= VARBASE +TEXMFLOCAL= ${PREFIX}/share/texmf-local +FILES_SUBST+= TEXMFLOCAL=${TEXMFLOCAL} + +CONF_FILES= ${PREFIX}/share/texmf/web2c/texmf.cnf \ + ${PKG_SYSCONFDIR}/texmf.cnf + +OWN_DIRS+= ${TEXMFLOCAL} ${VARBASE}/lib/texmf +INSTALLATION_DIRS+= share/doc/texmf share/texmf-dist + +INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \ + infodir=${DESTDIR}${PREFIX}/${PKGINFODIR} \ + mandir=${DESTDIR}${PREFIX}/${PKGMANDIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/print/kpathsea/PLIST b/print/kpathsea/PLIST new file mode 100644 index 00000000000..ad27e6f412f --- /dev/null +++ b/print/kpathsea/PLIST @@ -0,0 +1,84 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/03 22:12:42 minskim Exp $ +bin/kpseaccess +bin/kpsereadlink +bin/kpsestat +bin/kpsewhich +bin/mktexlsr +bin/mktexmf +bin/mktexpk +bin/mktextfm +include/kpathsea/absolute.h +include/kpathsea/c-auto.h +include/kpathsea/c-ctype.h +include/kpathsea/c-dir.h +include/kpathsea/c-errno.h +include/kpathsea/c-fopen.h +include/kpathsea/c-limits.h +include/kpathsea/c-memstr.h +include/kpathsea/c-minmax.h +include/kpathsea/c-namemx.h +include/kpathsea/c-pathch.h +include/kpathsea/c-pathmx.h +include/kpathsea/c-proto.h +include/kpathsea/c-stat.h +include/kpathsea/c-std.h +include/kpathsea/c-unistd.h +include/kpathsea/c-vararg.h +include/kpathsea/cnf.h +include/kpathsea/concatn.h +include/kpathsea/config.h +include/kpathsea/db.h +include/kpathsea/debug.h +include/kpathsea/default.h +include/kpathsea/expand.h +include/kpathsea/fn.h +include/kpathsea/fontmap.h +include/kpathsea/getopt.h +include/kpathsea/hash.h +include/kpathsea/kpathsea.h +include/kpathsea/lib.h +include/kpathsea/line.h +include/kpathsea/magstep.h +include/kpathsea/paths.h +include/kpathsea/pathsearch.h +include/kpathsea/proginit.h +include/kpathsea/progname.h +include/kpathsea/readable.h +include/kpathsea/recorder.h +include/kpathsea/str-list.h +include/kpathsea/str-llist.h +include/kpathsea/systypes.h +include/kpathsea/tex-file.h +include/kpathsea/tex-glyph.h +include/kpathsea/tex-hush.h +include/kpathsea/tex-make.h +include/kpathsea/tilde.h +include/kpathsea/truncate.h +include/kpathsea/types.h +include/kpathsea/variable.h +include/kpathsea/xopendir.h +include/kpathsea/xstat.h +info/kpathsea.info +lib/libkpathsea.la +man/man1/kpseaccess.1 +man/man1/kpsereadlink.1 +man/man1/kpsestat.1 +man/man1/kpsewhich.1 +man/man1/mktexlsr.1 +man/man1/mktexmf.1 +man/man1/mktexpk.1 +man/man1/mktextfm.1 +share/texmf/web2c/mktex.opt +share/texmf/web2c/mktexdir +share/texmf/web2c/mktexdir.opt +share/texmf/web2c/mktexnam +share/texmf/web2c/mktexnam.opt +share/texmf/web2c/mktexupd +share/texmf/web2c/texmf.cnf +@dirrm share/texmf/web2c +@exec ${MKDIR} %D/share/texmf-dist +@dirrm share/texmf-dist +@dirrm share/texmf +@exec ${MKDIR} %D/share/doc/texmf +@dirrm share/doc/texmf +@dirrm include/kpathsea diff --git a/print/kpathsea/buildlink3.mk b/print/kpathsea/buildlink3.mk new file mode 100644 index 00000000000..dd72c5a546c --- /dev/null +++ b/print/kpathsea/buildlink3.mk @@ -0,0 +1,20 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/01/03 22:12:42 minskim Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +KPATHSEA_BUILDLINK3_MK:= ${KPATHSEA_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= kpathsea +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nkpathsea} +BUILDLINK_PACKAGES+= kpathsea +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}kpathsea + +.if ${KPATHSEA_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.kpathsea+= kpathsea>=3.5.7 +BUILDLINK_PKGSRCDIR.kpathsea?= ../../print/kpathsea +BUILDLINK_FILES.kpathsea+= bin/kpsewhich +.endif # KPATHSEA_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/print/kpathsea/distinfo b/print/kpathsea/distinfo new file mode 100644 index 00000000000..69d4fb64cbe --- /dev/null +++ b/print/kpathsea/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/01/03 22:12:42 minskim Exp $ + +SHA1 (texlive-20080816-source.tar.lzma) = 730986c628bd658b5062face9e400f61203d6b8d +RMD160 (texlive-20080816-source.tar.lzma) = 629784b111c0d4bc9fac9f9131f63203d6e1dd38 +Size (texlive-20080816-source.tar.lzma) = 23175835 bytes +SHA1 (patch-aa) = 758c34fca692adec25fd4aa411ceedaf9be1421c diff --git a/print/kpathsea/files/texmf-deinstall.tmpl b/print/kpathsea/files/texmf-deinstall.tmpl new file mode 100644 index 00000000000..b35689ef570 --- /dev/null +++ b/print/kpathsea/files/texmf-deinstall.tmpl @@ -0,0 +1,13 @@ +# $NetBSD: texmf-deinstall.tmpl,v 1.1.1.1 2009/01/03 22:12:42 minskim Exp $ +# +# Rebuild ls-R databases. +# + +case ${STAGE} in +POST-DEINSTALL) + @FIND@ -d @TEXMF_DIRS@ -type d -empty -exec @RMDIR@ {} \; + @MKTEXLSR@ @TEXMF_DIRS@ + ;; +*) + ;; +esac diff --git a/print/kpathsea/files/texmf-install.tmpl b/print/kpathsea/files/texmf-install.tmpl new file mode 100644 index 00000000000..06683d7e41a --- /dev/null +++ b/print/kpathsea/files/texmf-install.tmpl @@ -0,0 +1,12 @@ +# $NetBSD: texmf-install.tmpl,v 1.1.1.1 2009/01/03 22:12:42 minskim Exp $ +# +# Rebuild ls-R databases. +# + +case ${STAGE} in +POST-INSTALL) + @MKTEXLSR@ @TEXMF_DIRS@ + ;; +*) + ;; +esac diff --git a/print/kpathsea/patches/patch-aa b/print/kpathsea/patches/patch-aa new file mode 100644 index 00000000000..b78815dbcd3 --- /dev/null +++ b/print/kpathsea/patches/patch-aa @@ -0,0 +1,56 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/01/03 22:12:42 minskim Exp $ + +Set paths to texmf trees for pkgsrc. + +--- texmf.cnf.orig 2008-07-26 14:39:36.000000000 -0700 ++++ texmf.cnf +@@ -44,18 +44,18 @@ + + % The tree containing the runtime files closely related to the specific + % program version used: +-TEXMFMAIN = $SELFAUTOPARENT/texmf ++TEXMFMAIN = $SELFAUTODIR/share/texmf + + % The main distribution tree: +-TEXMFDIST = $SELFAUTOPARENT/texmf-dist ++TEXMFDIST = $SELFAUTODIR/share/texmf-dist + + % Our documentation-only tree, arranged by language: +-TEXMFDOC = $SELFAUTOPARENT/texmf-doc ++TEXMFDOC = $SELFAUTODIR/share/doc/texmf + + % A place for local additions to a "standard" texmf tree. + % This tree is not used for local configuration maintained by + % texconfig, it uses TEXMFCONFIG below. +-TEXMFLOCAL = $SELFAUTOPARENT/../texmf-local ++TEXMFLOCAL = @TEXMFLOCAL@ + + % TEXMFSYSVAR, where texconfig-sys stores variable runtime data. + % With teTeX-3.0 or later, this must be set. +@@ -63,7 +63,7 @@ TEXMFLOCAL = $SELFAUTOPARENT/../texmf-lo + % TEXMFSYSVAR = $TEXMFMAIN + % For using a separate tree: + % TEXMFSYSVAR = $SELFAUTOPARENT/texmf-var +-TEXMFSYSVAR = $SELFAUTOPARENT/texmf-var ++TEXMFSYSVAR = @VARBASE@/lib/texmf + + % TEXMFSYSCONFIG, where texconfig-sys stores configuration data. + % With teTeX-3.0 or later, this must be set. +@@ -71,7 +71,7 @@ TEXMFSYSVAR = $SELFAUTOPARENT/texmf-var + % TEXMFSYSCONFIG = $TEXMFMAIN + % For using a separate tree: + % TEXMFSYSCONFIG = $SELFAUTOPARENT/texmf-config +-TEXMFSYSCONFIG = $SELFAUTOPARENT/texmf-config ++TEXMFSYSCONFIG = @PKG_SYSCONFDIR@ + + % User texmf trees are allowed as follows. + % This used to be HOMETEXMF. +@@ -447,7 +447,7 @@ RUBYINPUTS = .;$TEXMF/scripts/{$progna + % + % For security reasons, it is better not to include . in this path. + % +-TEXMFCNF = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c} ++TEXMFCNF = @PKG_SYSCONFDIR@ + + # kpathsea 3.5.3 and later sets these at runtime. To avoid empty + # expansions from binaries linked against an earlier version of the diff --git a/print/kpathsea/texmf.mk b/print/kpathsea/texmf.mk new file mode 100644 index 00000000000..e5f843dd7f7 --- /dev/null +++ b/print/kpathsea/texmf.mk @@ -0,0 +1,25 @@ +# $NetBSD: texmf.mk,v 1.1.1.1 2009/01/03 22:12:42 minskim Exp $ +# +# This Makefile fragment is intended to be included by packages that +# install TeX packages. It rebuilds the ls-R databases at +# (de)installation time. +# +# The following variable can be defined: +# +# TEX_TEXMF_DIRS - A list of texmf directories that need to update ls-R. +# Default: ${PREFIX}/share/texmf-dist +# + +.if !defined(TEX_TEXMF_MK) +TEX_TEXMF_MK= # defined + +DEPENDS+= kpathsea>=3.5.7:../../print/kpathsea + +TEX_TEXMF_DIRS?= ${PREFIX}/share/texmf-dist +EVAL_PREFIX+= KPATHSEA_PREFIX=kpathsea +FILES_SUBST+= MKTEXLSR=${KPATHSEA_PREFIX:Q}/bin/mktexlsr +FILES_SUBST+= TEXMF_DIRS=${TEX_TEXMF_DIRS:Q} +INSTALL_TEMPLATES+= ../../print/kpathsea/files/texmf-install.tmpl +DEINSTALL_TEMPLATES+= ../../print/kpathsea/files/texmf-deinstall.tmpl + +.endif # TEX_TEXMF_MK |