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.
This commit is contained in:
parent
ce26022244
commit
4994025669
11 changed files with 303 additions and 0 deletions
13
print/kpathsea/DEINSTALL
Normal file
13
print/kpathsea/DEINSTALL
Normal file
|
@ -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
|
5
print/kpathsea/DESCR
Normal file
5
print/kpathsea/DESCR
Normal file
|
@ -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.
|
13
print/kpathsea/INSTALL
Normal file
13
print/kpathsea/INSTALL
Normal file
|
@ -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
|
56
print/kpathsea/Makefile
Normal file
56
print/kpathsea/Makefile
Normal file
|
@ -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"
|
84
print/kpathsea/PLIST
Normal file
84
print/kpathsea/PLIST
Normal file
|
@ -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
|
20
print/kpathsea/buildlink3.mk
Normal file
20
print/kpathsea/buildlink3.mk
Normal file
|
@ -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/+$//}
|
6
print/kpathsea/distinfo
Normal file
6
print/kpathsea/distinfo
Normal file
|
@ -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
|
13
print/kpathsea/files/texmf-deinstall.tmpl
Normal file
13
print/kpathsea/files/texmf-deinstall.tmpl
Normal file
|
@ -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
|
12
print/kpathsea/files/texmf-install.tmpl
Normal file
12
print/kpathsea/files/texmf-install.tmpl
Normal file
|
@ -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
|
56
print/kpathsea/patches/patch-aa
Normal file
56
print/kpathsea/patches/patch-aa
Normal file
|
@ -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
|
25
print/kpathsea/texmf.mk
Normal file
25
print/kpathsea/texmf.mk
Normal file
|
@ -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
|
Loading…
Reference in a new issue