diff options
author | 2006-10-28 11:38:16 +0000 | |
---|---|---|
committer | 2006-10-28 11:38:16 +0000 | |
commit | bbcbdbe6a8f21cbc00d9ffd538f28ebf3ab25957 (patch) | |
tree | 88a13baa328940a7690ef038647d1e97cc57d43c /app-text/xetex/files | |
parent | x86 stable wrt bug #151669 (diff) | |
download | gentoo-2-bbcbdbe6a8f21cbc00d9ffd538f28ebf3ab25957.tar.gz gentoo-2-bbcbdbe6a8f21cbc00d9ffd538f28ebf3ab25957.tar.bz2 gentoo-2-bbcbdbe6a8f21cbc00d9ffd538f28ebf3ab25957.zip |
Initial creation of XeTeX ebuilds, for unicode and other (La)TeX goodness.
(Portage version: 2.1.2_rc1)
Diffstat (limited to 'app-text/xetex/files')
-rw-r--r-- | app-text/xetex/files/digest-xetex-0.995 | 3 | ||||
-rw-r--r-- | app-text/xetex/files/xetex-0.995-install.patch | 23 | ||||
-rw-r--r-- | app-text/xetex/files/xetex-0.995-rebuild.patch | 45 |
3 files changed, 71 insertions, 0 deletions
diff --git a/app-text/xetex/files/digest-xetex-0.995 b/app-text/xetex/files/digest-xetex-0.995 new file mode 100644 index 000000000000..36c35c296d6e --- /dev/null +++ b/app-text/xetex/files/digest-xetex-0.995 @@ -0,0 +1,3 @@ +MD5 9ce454a4b1a33710b66b4e18f650e34e xetex-0.995.tar.gz 19482520 +RMD160 d556b65a4fb7038589386a0cfe4f16d2d015f40e xetex-0.995.tar.gz 19482520 +SHA256 eb9c997996ea0abe1d08e9f345d91a9e33079ff32b0496a124cb2e5614096977 xetex-0.995.tar.gz 19482520 diff --git a/app-text/xetex/files/xetex-0.995-install.patch b/app-text/xetex/files/xetex-0.995-install.patch new file mode 100644 index 000000000000..aa2f7530bce8 --- /dev/null +++ b/app-text/xetex/files/xetex-0.995-install.patch @@ -0,0 +1,23 @@ +--- install-xetex 2006-08-23 03:41:00.000000000 +0800 ++++ install-xetex.gentoo 2006-10-28 18:15:12.000000000 +0800 +@@ -30,9 +30,10 @@ + if [ -L ${texbin} ]; then + texbin=`readlink ${texbin}` + fi +-texbindir=`dirname ${texbin}` ++texbindir=${D}`dirname ${texbin}` + + # copy the xetex binary to the same dir as standard tex ++mkdir -p ${texbindir} + cp -pf Work/texk/web2c/xetex ${texbindir}/xetex + echo ${texbindir}/xetex >> ${filelist} + if [ -e Work/texk/xdv2pdf/xdv2pdf ]; then +@@ -48,7 +49,7 @@ + fi + + # copy our texmf additions into the local texmf tree +-texmflocal=`kpsewhich --var-value TEXMFLOCAL` ++texmflocal=${D}usr/share/texmf + if [ "x${texmflocal}" == "x" ]; then + # if --var-value didn't work, try to find the definition in the texmf.cnf file + CNF=`kpsewhich texmf.cnf` diff --git a/app-text/xetex/files/xetex-0.995-rebuild.patch b/app-text/xetex/files/xetex-0.995-rebuild.patch new file mode 100644 index 000000000000..bc428ef216fa --- /dev/null +++ b/app-text/xetex/files/xetex-0.995-rebuild.patch @@ -0,0 +1,45 @@ +--- rebuild-formats 2006-08-23 03:41:00.000000000 +0800 ++++ rebuild-formats.gentoo 2006-10-28 18:15:12.000000000 +0800 +@@ -6,8 +6,9 @@ + + # ensure our entries are present in fmtutil.cnf + fmtutil_cnf=`kpsewhich --format="web2c files" fmtutil.cnf` ++cp ${fmtutil_cnf} ${D}${fmtutil_cnf} + if [ "`fgrep -c xetex ${fmtutil_cnf}`" == "0" ]; then +- cat >> ${fmtutil_cnf} <<-__EOT__; ++ cat >>${D}${fmtutil_cnf} <<-__EOT__; + + # XeTeX formats + xetex xetex - *xetex.ini +@@ -21,7 +22,7 @@ + if [ -L ${texbin} ]; then + texbin=`readlink ${texbin}` + fi +-texbindir=`dirname ${texbin}` ++texbindir=${D}`dirname ${texbin}` + + # ensure ${texbindir} is in the PATH so that fmtutil can find new xetex + # (normal usage may rely on a symlink, which doesn't yet exist) +@@ -29,7 +30,8 @@ + + # patch fmtutil from teTeX 2.x so it doesn't confuse xetex with an etex engine + # (discarding any error message in case we have teTeX 3 or an already-patched teTeX 2) +-patch -N -r /tmp/fmtutilpatch.rej -p0 `which fmtutil` < fmtutil.tetex-2.patch >/dev/null 2>&1 ++cp `which fmtutil` . ++patch -N -r /tmp/fmtutilpatch.rej -p0 fmtutil < fmtutil.tetex-2.patch >/dev/null 2>&1 + + # use system-wide setup if available + fmtutil=`type -p fmtutil-sys` || fmtutil=`type -p fmtutil` +@@ -37,9 +39,9 @@ + formats="xetex xelatex" + for f in ${formats}; do + # enable our entries if necessary (in case of pre-existing disabled ones) +- ${fmtutil} --enablefmt ${f} +- ${fmtutil} --byfmt ${f} ++ TEXMFLOCAL=${D}usr/share/texmf ./fmtutil --fmtdir ${D}usr/share/texmf/web2c --cnffile ${D}${fmtutil_cnf} --enablefmt ${f} ++ TEXMFLOCAL=${D}usr/share/texmf ./fmtutil --fmtdir ${D}usr/share/texmf/web2c --cnffile ${D}${fmtutil_cnf} --byfmt ${f} + done + + # create symlinks for the newly-built formats +-texlinks --silent ++texlinks --silent --cnffile ${D}${fmtutil_cnf} ${D}usr/share/texmf/web2c |