From f8a0d48a7f852b2b2bf7b2aac066aca5acf20547 Mon Sep 17 00:00:00 2001 From: minskim Date: Sat, 13 Oct 2012 22:29:21 +0000 Subject: Import tex-texconfig-2012 as print/tex-texconfig. This package provides texconfig, a utility to configure TeX. --- print/tex-texconfig/DESCR | 1 + print/tex-texconfig/Makefile | 41 ++++ print/tex-texconfig/PLIST | 8 + print/tex-texconfig/distinfo | 7 + print/tex-texconfig/patches/patch-bin_texconfig | 241 +++++++++++++++++++++ .../patches/patch-texmf_texconfig_tcfmgr | 58 +++++ 6 files changed, 356 insertions(+) create mode 100644 print/tex-texconfig/DESCR create mode 100644 print/tex-texconfig/Makefile create mode 100644 print/tex-texconfig/PLIST create mode 100644 print/tex-texconfig/distinfo create mode 100644 print/tex-texconfig/patches/patch-bin_texconfig create mode 100644 print/tex-texconfig/patches/patch-texmf_texconfig_tcfmgr (limited to 'print/tex-texconfig') diff --git a/print/tex-texconfig/DESCR b/print/tex-texconfig/DESCR new file mode 100644 index 00000000000..f5ff59e7d5e --- /dev/null +++ b/print/tex-texconfig/DESCR @@ -0,0 +1 @@ +This package provides texconfig, a utility to configure TeX. diff --git a/print/tex-texconfig/Makefile b/print/tex-texconfig/Makefile new file mode 100644 index 00000000000..d752196afae --- /dev/null +++ b/print/tex-texconfig/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1 2012/10/13 22:29:21 minskim Exp $ + +DISTNAME= texconfig +PKGNAME= tex-${DISTNAME}-2012 +TEXLIVE_REV= 27343 + +MAINTAINER= pkgsrc-users@NetBSD.org +COMMENT= Configuration utility for TeX + +CONFLICTS+= texlive-tetex<=2011nb1 +DEPENDS+= kpathsea-[0-9]*:../../print/kpathsea + +USE_TOOLS+= sh:run + +EVAL_PREFIX+= KPSEWHICH_PREFIX=kpathsea + +SUBST_CLASSES+= paths +SUBST_MESSAGE.paths= Setting paths to commands. +SUBST_STAGE.paths= pre-configure +SUBST_FILES.paths= texmf/texconfig/tcfmgr +SUBST_SED.paths= -e 's,@FMTUTIL@,${LOCALBASE}/bin/fmtutil,g' +SUBST_SED.paths+= -e 's,@KPSEWHICH@,${KPSEWHICH_PREFIX}/bin/kpsewhich,g' +SUBST_SED.paths+= -e 's,@MKTEXLSR@,${KPSEWHICH_PREFIX}/bin/mktexlsr,g' +SUBST_SED.paths+= -e 's,@TEXCONF_DIALOG@,${LOCALBASE}/bin/texconfig-dialog,g' +SUBST_SED.paths+= -e 's,@TEXLINKS@,${LOCALBASE}/bin/texlnks,g' +SUBST_SED.paths+= -e 's,@UPDMAP@,${LOCALBASE}/bin/updmap,g' + +REPLACE_SH= bin/texconfig texmf/texconfig/tcfmgr + +TEX_TEXMF_DIRS= ${PREFIX}/share/texmf + +.include "../../print/texlive/package.mk" + +post-extract: + ${MKDIR} ${WRKSRC}/bin + ${MV} ${WRKSRC}/texmf/scripts/tetex/texconfig.sh \ + ${WRKSRC}/bin/texconfig + ${RMDIR} -p ${WRKSRC}/texmf/scripts/tetex 2>/dev/null || ${TRUE} + ${CHMOD} +x ${WRKSRC}/texmf/texconfig/tcfmgr + +.include "../../mk/bsd.pkg.mk" diff --git a/print/tex-texconfig/PLIST b/print/tex-texconfig/PLIST new file mode 100644 index 00000000000..fd6654a18f5 --- /dev/null +++ b/print/tex-texconfig/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1 2012/10/13 22:29:21 minskim Exp $ +bin/texconfig +share/texmf/texconfig/README +share/texmf/texconfig/g/generic +share/texmf/texconfig/tcfmgr +share/texmf/texconfig/tcfmgr.map +share/texmf/texconfig/v/vt100 +share/texmf/texconfig/x/xterm diff --git a/print/tex-texconfig/distinfo b/print/tex-texconfig/distinfo new file mode 100644 index 00000000000..679bf36495e --- /dev/null +++ b/print/tex-texconfig/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2012/10/13 22:29:21 minskim Exp $ + +SHA1 (tex-texconfig-27343/texconfig.tar.xz) = 2c63e1523637ac07401c046413ee0647914b39f6 +RMD160 (tex-texconfig-27343/texconfig.tar.xz) = 468a236c5c961e09c9c48d8b3c25f8ec299c6c9f +Size (tex-texconfig-27343/texconfig.tar.xz) = 12308 bytes +SHA1 (patch-bin_texconfig) = e69bd12e42371dd41e9bbd58b20752368df81d67 +SHA1 (patch-texmf_texconfig_tcfmgr) = 6833157d80ab0d5dafc4eb45b274a4256cdaf022 diff --git a/print/tex-texconfig/patches/patch-bin_texconfig b/print/tex-texconfig/patches/patch-bin_texconfig new file mode 100644 index 00000000000..58a0bec3f9c --- /dev/null +++ b/print/tex-texconfig/patches/patch-bin_texconfig @@ -0,0 +1,241 @@ +$NetBSD: patch-bin_texconfig,v 1.1 2012/10/13 22:29:21 minskim Exp $ + +--- bin/texconfig.orig 2012-10-09 17:17:14.000000000 +0000 ++++ bin/texconfig +@@ -91,7 +91,7 @@ echoShowKpseVariable() + for eskv + do + var=$eskv +- val=`kpsewhich -var-value="$eskv"` ++ val=`@KPSEWHICH@ -var-value="$eskv"` + echo "$var=$val" + done + } +@@ -123,7 +123,7 @@ echoLocateCfgfile() + for elc + do + case $elc in +- texmf.cnf) elcLoc=`kpsewhich $elc`;; ++ texmf.cnf) elcLoc=`@KPSEWHICH@ $elc`;; + *) elcLoc=`tcfmgr --cmd find --file "$elc"`;; + esac + case $elcLoc in +@@ -190,7 +190,7 @@ setupTmpDir() + setupTexmfmain() + { + case $MT_TEXMFMAIN in +- "") MT_TEXMFMAIN=`kpsewhich -var-value=TEXMFMAIN`;; ++ "") MT_TEXMFMAIN=`@KPSEWHICH@ -var-value=TEXMFMAIN`;; + *) return;; + esac + } +@@ -201,7 +201,7 @@ setupTexmfmain() + setupTexmfdist() + { + case $MT_TEXMFDIST in +- "") MT_TEXMFDIST=`kpsewhich -var-value=TEXMFDIST`;; ++ "") MT_TEXMFDIST=`@KPSEWHICH@ -var-value=TEXMFDIST`;; + *) return;; + esac + } +@@ -212,7 +212,7 @@ setupTexmfdist() + setupTexmfvar() + { + case $MT_TEXMVAR in +- "") MT_TEXMVAR=`kpsewhich -var-value=TEXMFVAR`;; ++ "") MT_TEXMVAR=`@KPSEWHICH@ -var-value=TEXMFVAR`;; + *) return;; + esac + } +@@ -223,7 +223,7 @@ setupTexmfvar() + setupSystexmf() + { + case $MT_SYSTEXMF in +- "") MT_SYSTEXMF=`kpsewhich -var-value=SYSTEXMF`;; ++ "") MT_SYSTEXMF=`@KPSEWHICH@ -var-value=SYSTEXMF`;; + *) return;; + esac + } +@@ -478,7 +478,7 @@ listDvipsPapers() + # + getFormatsForHyphen() + { +- fmtutil --catcfg | awk '$3 != "-" {print $1}' | sort ++ @FMTUTIL@ --catcfg | awk '$3 != "-" {print $1}' | sort + } + + ############################################################################### +@@ -607,7 +607,7 @@ TeX Live home page: &2 +@@ -736,7 +736,7 @@ Valid PAPER settings: + ;; + *) + printerName=$2 +- pFile=`kpsewhich -format='dvips config' "config.$printerName"` ++ pFile=`@KPSEWHICH@ -format='dvips config' "config.$printerName"` + case $pFile in + "") + setupTmpDir +@@ -773,7 +773,7 @@ Valid PAPER settings: + ;; + *) + printerName=$2 +- pFile=`kpsewhich -format='dvips config' "config.$printerName"` ++ pFile=`@KPSEWHICH@ -format='dvips config' "config.$printerName"` + case $pFile in + "") + echo "$progname: configuration file for printer \`$printerName' (config.$printerName) not found" >&2 +@@ -931,7 +931,7 @@ For more information about these \`featu + ;; + *) + tcBatchFontVardir=$3 +- tfc=`kpsewhich texmf.cnf` ++ tfc=`@KPSEWHICH@ texmf.cnf` + if test -n "$tfc"; then + if test -w "$tfc"; then + configReplace "$tfc" '^VARTEXFONTS' "VARTEXFONTS = $tcBatchFontVardir" +@@ -947,7 +947,7 @@ For more information about these \`featu + esac + ;; + rw) +- MT_VARTEXFONTS=`kpsewhich -var-value VARTEXFONTS` ++ MT_VARTEXFONTS=`@KPSEWHICH@ -var-value VARTEXFONTS` + if test -z "$MT_VARTEXFONTS"; then + echo "$progname: failed to set \`font rw'; reason: could not determine VARTEXFONTS variable." >&2; rc=1 + return +@@ -973,7 +973,7 @@ For more information about these \`featu + fmgrConfigReplace mktex.cnf '^: ..MT_FEATURES=' ": \${MT_FEATURES=appendonlydir:varfonts}" + ;; + ro) +- MT_VARTEXFONTS=`kpsewhich -var-value VARTEXFONTS` ++ MT_VARTEXFONTS=`@KPSEWHICH@ -var-value VARTEXFONTS` + if test -z "$MT_VARTEXFONTS"; then + echo "$progname: failed to set \`font ro'; reason: could not determine VARTEXFONTS variable." >&2; rc=1 + return +@@ -1024,10 +1024,10 @@ EOM + + setupTmpDir + echo "$progname: analyzing old configuration..." >&2 +- fmtutil --catcfg > $tmpdir/pre +- fmtutil --edit ++ @FMTUTIL@ --catcfg > $tmpdir/pre ++ @FMTUTIL@ --edit + echo "$progname: analyzing new configuration..." >&2 +- fmtutil --catcfg > $tmpdir/post ++ @FMTUTIL@ --catcfg > $tmpdir/post + + if cmp $tmpdir/pre $tmpdir/post >/dev/null 2>&1; then + echo "$progname: no new/updated formats available ..." >&2 +@@ -1035,9 +1035,9 @@ EOM + echo "$progname: updating formats ..." >&2 + comm -13 $tmpdir/pre $tmpdir/post > $tmpdir/addOrChange + for i in `awk '{print $1}' $tmpdir/addOrChange`; do +- fmtutil --byfmt "$i" || rc=1 ++ @FMTUTIL@ --byfmt "$i" || rc=1 + done +- texlinks --multiplatform || rc=1 ++ @TEXLINKS@ --multiplatform || rc=1 + fi + ;; + +@@ -1077,7 +1077,7 @@ $formatsForHyphenFmt" + *) + if checkElemInList "$tcBatchHyphenFormat" $formatsForHyphen; then + +- tcBatchHyphenFile=`fmtutil --showhyphen "$tcBatchHyphenFormat"` ++ tcBatchHyphenFile=`@FMTUTIL@ --showhyphen "$tcBatchHyphenFormat"` + case $tcBatchHyphenFile in + "") + echo "$progname: could not find hyphen setup file for format \`$tcBatchHyphenFormat'" >&2 +@@ -1134,7 +1134,7 @@ $formatsForHyphenFmt" + fi + ;; + esac +- fmtutil --byhyphen "$tcBatchHFOut" ++ @FMTUTIL@ --byhyphen "$tcBatchHFOut" + fi + else + echo "$progname: invalid format \`$tcBatchHyphenFormat' specified as argument for \`$progname hyphen'" >&2 +@@ -1152,9 +1152,9 @@ $formatsForHyphenFmt" + init) + case $2 in + "") +- if fmtutil --all \ +- && texlinks --multiplatform \ +- && updmap; then ++ if @FMTUTIL@ --all \ ++ && @TEXLINKS@ --multiplatform \ ++ && @UPDMAP@; then + : + else + rc=1 +@@ -1163,7 +1163,7 @@ $formatsForHyphenFmt" + *) + shift 1 + for i in "$@"; do +- fmtutil --byfmt "$i" || rc=1 ++ @FMTUTIL@ --byfmt "$i" || rc=1 + done + ;; + esac +@@ -1266,7 +1266,7 @@ Valid PAPER settings: + set x `getRes "$tcBatchPdftexMode"`; shift + fmgrConfigReplace pdftexconfig.tex 'pdfpkresolution' "\\pdfpkresolution=$1" + if $fmgrConfigReplaceChanged; then +- fmtutil --refresh ++ @FMTUTIL@ --refresh + fi + else + echo "$progname: unknown MODE \`$tcBatchPdftexMode' given as argument for \`$progname pdftex mode'" >&2 +@@ -1285,7 +1285,7 @@ Valid PAPER settings: + wChanged=$fmgrConfigReplaceChanged + fmgrConfigReplace pdftexconfig.tex pdfpageheight '\pdfpageheight='"$h" + if $wChanged || $fmgrConfigReplaceChanged; then +- fmtutil --refresh ++ @FMTUTIL@ --refresh + fi + ;; + a4) +@@ -1294,7 +1294,7 @@ Valid PAPER settings: + wChanged=$fmgrConfigReplaceChanged + fmgrConfigReplace pdftexconfig.tex pdfpageheight '\pdfpageheight='"$h" + if $wChanged || $fmgrConfigReplaceChanged; then +- fmtutil --refresh ++ @FMTUTIL@ --refresh + fi + ;; + "") echo "$help" >&2; rc=1;; +@@ -1314,7 +1314,7 @@ Valid PAPER settings: + ;; + + rehash) +- mktexlsr ++ @MKTEXLSR@ + ;; + + # +@@ -1417,7 +1417,7 @@ Valid PAPER settings: + ############################################################################### + tcInteractive() + { +- texconfig-dialog ++ @TEXCONFIG_DIALOG@ + } + + ############################################################################### diff --git a/print/tex-texconfig/patches/patch-texmf_texconfig_tcfmgr b/print/tex-texconfig/patches/patch-texmf_texconfig_tcfmgr new file mode 100644 index 00000000000..644e39161d4 --- /dev/null +++ b/print/tex-texconfig/patches/patch-texmf_texconfig_tcfmgr @@ -0,0 +1,58 @@ +$NetBSD: patch-texmf_texconfig_tcfmgr,v 1.1 2012/10/13 22:29:21 minskim Exp $ + +--- texmf/texconfig/tcfmgr.orig 2010-05-20 18:50:17.000000000 +0000 ++++ texmf/texconfig/tcfmgr +@@ -47,7 +47,7 @@ setupMap() + esac + + case $TFC_MAP in +- "") TFC_MAP=`(kpsewhich -progname=texconfig -format='other text files' tcfmgr.map) 2>/dev/null`;; ++ "") TFC_MAP=`(@KPSEWHICH@ -progname=texconfig -format='other text files' tcfmgr.map) 2>/dev/null`;; + esac + + case $TFC_MAP in +@@ -84,7 +84,7 @@ setupTemp() + setupTexmfConfig() + { + case $TFC_TEXMFCONFIG in +- "") TFC_TEXMFCONFIG=`(kpsewhich -var-value=TEXMFCONFIG) 2>/dev/null`;; ++ "") TFC_TEXMFCONFIG=`(@KPSEWHICH@ -var-value=TEXMFCONFIG) 2>/dev/null`;; + *) (exit 0); return 0;; + esac + case $TFC_TEXMFCONFIG in +@@ -95,7 +95,7 @@ setupTexmfConfig() + setupMktexDir() + { + case $TFC_MKTEXDIR in +- "") TFC_MKTEXDIR=`(kpsewhich --format='web2c files' mktexdir) 2>/dev/null`;; ++ "") TFC_MKTEXDIR=`(@KPSEWHICH@ --format='web2c files' mktexdir) 2>/dev/null`;; + esac + + case $TFC_MKTEXDIR in +@@ -106,7 +106,7 @@ setupMktexDir() + setupMktexupd() + { + case $TFC_MKTEXUPD in +- "") TFC_MKTEXUPD=`(kpsewhich --format='web2c files' mktexupd) 2>/dev/null`;; ++ "") TFC_MKTEXUPD=`(@KPSEWHICH@ --format='web2c files' mktexupd) 2>/dev/null`;; + esac + + case $TFC_MKTEXUPD in +@@ -193,7 +193,7 @@ check_out() + case "$orig" in + "") + get_info +- orig=`(kpsewhich -format="$kpseFormat" -progname="$kpseProgArg" "$TFC_FILE") 2>/dev/null` ++ orig=`(@KPSEWHICH@ -format="$kpseFormat" -progname="$kpseProgArg" "$TFC_FILE") 2>/dev/null` + ;; + *) + test -f "$orig" || orig= +@@ -308,7 +308,7 @@ check_in() + find_file() + { + get_info +- kpsewhich -format="$kpseFormat" -progname="$kpseProgArg" "$TFC_FILE" ++ @KPSEWHICH@ -format="$kpseFormat" -progname="$kpseProgArg" "$TFC_FILE" + } + + help() -- cgit v1.2.3