FreeBSD Bugzilla – Attachment 146775 Details for
Bug 193306
[NEW PORT] japanese/tex-xdvik: DVI Previewer for X + freetype support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
New port: japanese/tex-xdvik
tex-xdvik.shar (text/plain), 29.17 KB, created by
katsuyoshi.ohara
on 2014-09-04 10:19:03 UTC
(
hide
)
Description:
New port: japanese/tex-xdvik
Filename:
MIME Type:
Creator:
katsuyoshi.ohara
Created:
2014-09-04 10:19:03 UTC
Size:
29.17 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># tex-xdvik ># tex-xdvik/files ># tex-xdvik/files/patch-configure.ac ># tex-xdvik/files/am.diff ># tex-xdvik/files/patch-mksedscript ># tex-xdvik/files/pxdvi-base.diff ># tex-xdvik/Makefile ># tex-xdvik/distinfo ># tex-xdvik/pkg-descr ># tex-xdvik/pkg-plist ># >echo c - tex-xdvik >mkdir -p tex-xdvik > /dev/null 2>&1 >echo c - tex-xdvik/files >mkdir -p tex-xdvik/files > /dev/null 2>&1 >echo x - tex-xdvik/files/patch-configure.ac >sed 's/^X//' >tex-xdvik/files/patch-configure.ac << 'a0e1b3abdff5669dc6959cec922747d9' >Xdiff -ubBr configure.ac.orig configure.ac >X--- configure.ac.orig 2014-08-28 09:34:23.000000000 +0900 >X+++ configure.ac 2014-08-28 09:47:51.000000000 +0900 >X@@ -12,6 +12,7 @@ >X AC_CONFIG_SRCDIR([xdvi.c]) >X AC_CONFIG_AUX_DIR([../../build-aux]) >X AC_CONFIG_MACRO_DIR([../../m4]) >X+LT_INIT >X >X dnl Common code for all programs using libkpathsea. >X KPSE_COMMON([xdvik]) >a0e1b3abdff5669dc6959cec922747d9 >echo x - tex-xdvik/files/am.diff >sed 's/^X//' >tex-xdvik/files/am.diff << 'e5359ae58dca5920c98944d69d2e3716' >Xdiff -ubBr Makefile.am.orig Makefile.am >X--- Makefile.am.orig 2014-08-28 09:34:23.000000000 +0900 >X+++ Makefile.am 2014-08-28 09:45:04.000000000 +0900 >X@@ -3,6 +3,8 @@ >X ## Copyright (C) 2009-2012 Peter Breitenlohner <tex-live@tug.org> >X ## You may freely use, modify and/or distribute this file. >X ## >X+AUTOMAKE_OPTIONS = subdir-objects >X+ >X ACLOCAL_AMFLAGS = -I ../../m4 -I m4 >X >X AM_CFLAGS = $(WARNING_CFLAGS) >X@@ -11,7 +13,7 @@ >X >X include common.am >X >X-INCLUDES = -I$(srcdir)/gui $(common_includes) >X+AM_CPPFLAGS = -I$(srcdir)/gui $(common_includes) >X >X ## The object files created from ./*.c and gui/*.c are used for both >X ## ./xdvi-bin and tests/run_tests. >Xdiff -ubBr tests/Makefile.am.orig tests/Makefile.am >X--- tests/Makefile.am.orig 2014-08-28 09:34:23.000000000 +0900 >X+++ tests/Makefile.am 2014-08-28 09:44:30.000000000 +0900 >X@@ -5,7 +5,7 @@ >X ## >X include ../common.am >X >X-INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gui $(common_includes) >X+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/gui $(common_includes) >X AM_CFLAGS = $(WARNING_CFLAGS) >X >X check_PROGRAMS = run_tests >e5359ae58dca5920c98944d69d2e3716 >echo x - tex-xdvik/files/patch-mksedscript >sed 's/^X//' >tex-xdvik/files/patch-mksedscript << '1e07c323779efd15beb5366a7c640b75' >X--- mksedscript.orig 2004-09-28 06:26:16.000000000 +0900 >X+++ mksedscript 2014-08-30 10:19:17.000000000 +0900 >X@@ -43,7 +43,7 @@ >X >X # Get arguments from c-auto.h >X >X-eval "`awk '/^#define/ { print "mk_"$2"="$3 }' c-auto.h`" >X+eval "`awk '/^#define/ { print "mk_"$2"="$3 }' c-auto.h | grep -v '"'`" >X >X # eval "`cat c-auto.h \ >X # | grep '^[ ]*#[ ]*define[ ]' \ >1e07c323779efd15beb5366a7c640b75 >echo x - tex-xdvik/files/pxdvi-base.diff >sed 's/^X//' >tex-xdvik/files/pxdvi-base.diff << 'a0783f812383004a6c44a782331d4c22' >X--- pxdvi-base.orig 2013-03-04 16:57:13.000000000 +0900 >X+++ pxdvi-base 2014-08-30 10:42:03.000000000 +0900 >X@@ -3111,50 +3111,23 @@ >X >X # When cross-compiling, EXEEXT for the build and host systems may differ. >X # Thus we depend on the auxiliary file squeeze/stamp-squeeze. >X-@@ -208,20 +227,26 @@ >X- pixmapdir = $(datarootdir)/texmf-dist/xdvi/pixmap >X+@@ -210,7 +229,7 @@ >X+ pixmapdir = $(datarootdir)/texmf/xdvi/pixmap >X dist_pixmap_DATA = pixmaps/toolbar.xpm pixmaps/toolbar2.xpm >X >X -dist_noinst_DATA = texmf/xdvi.cfg >X-+dist_noinst_DATA = texmf/pxdvi.cfg xdvi-ptex.sample >X++dist_noinst_DATA = texmf/xdvi.cfg xdvi-ptex.sample >X >X install-data-hook: >X-- @if grep "original xdvi.cfg --" "$(DESTDIR)$(xdvidir)/xdvi.cfg" >/dev/null 2>&1 \ >X-- || test ! -r "$(DESTDIR)$(xdvidir)/xdvi.cfg"; then \ >X-- echo " $(INSTALL_DATA) '$(srcdir)/texmf/xdvi.cfg' '$(DESTDIR)$(xdvidir)/xdvi.cfg'"; \ >X-- $(INSTALL_DATA) "$(srcdir)/texmf/xdvi.cfg" "$(DESTDIR)$(xdvidir)/xdvi.cfg"; \ >X-+ @if grep "original pxdvi.cfg --" "$(DESTDIR)$(xdvidir)/pxdvi.cfg" >/dev/null 2>&1 \ >X-+ || test ! -r "$(DESTDIR)$(xdvidir)/pxdvi.cfg"; then \ >X-+ echo " $(INSTALL_DATA) '$(srcdir)/texmf/pxdvi.cfg' '$(DESTDIR)$(xdvidir)/pxdvi.cfg'"; \ >X-+ $(INSTALL_DATA) "$(srcdir)/texmf/pxdvi.cfg" "$(DESTDIR)$(xdvidir)/pxdvi.cfg"; \ >X+ @if grep "original xdvi.cfg --" "$(DESTDIR)$(xdvidir)/xdvi.cfg" >/dev/null 2>&1 \ >X+@@ -218,6 +237,7 @@ >X+ echo " $(INSTALL_DATA) '$(srcdir)/texmf/xdvi.cfg' '$(DESTDIR)$(xdvidir)/xdvi.cfg'"; \ >X+ $(INSTALL_DATA) "$(srcdir)/texmf/xdvi.cfg" "$(DESTDIR)$(xdvidir)/xdvi.cfg"; \ >X else :; fi >X + $(INSTALL_DATA) "$(srcdir)/xdvi-ptex.sample" "$(DESTDIR)$(xdvidir)/" >X-+## Cancel installation of xdvi-ptex.map by default; this makes debug easy. >X-+## if test ! -f "$(DESTDIR)$(xdvidir)/xdvi-ptex.map"; then \ >X-+## echo " $(INSTALL_DATA) '$(srcdir)/xdvi-ptex.sample' '$(DESTDIR)$(xdvidir)/xdvi-ptex.map'"; \ >X-+## $(INSTALL_DATA) "$(srcdir)/xdvi-ptex.sample" "$(DESTDIR)$(xdvidir)/xdvi-ptex.map"; \ >X-+## fi >X >X uninstall-hook: >X-- @if grep "original xdvi.cfg --" "$(DESTDIR)$(xdvidir)/xdvi.cfg" >/dev/null 2>&1 \ >X-- || test ! -r "$(DESTDIR)$(xdvidir)/xdvi.cfg"; then \ >X-- echo " rmĀ -f '$(DESTDIR)$(xdvidir)/xdvi.cfg'"; \ >X-- rm -f "$(DESTDIR)$(xdvidir)/xdvi.cfg"; \ >X-+ @if grep "original pxdvi.cfg --" "$(DESTDIR)$(xdvidir)/pxdvi.cfg" >/dev/null 2>&1 \ >X-+ || test ! -r "$(DESTDIR)$(xdvidir)/pxdvi.cfg"; then \ >X-+ echo " rm -f '$(DESTDIR)$(xdvidir)/pxdvi.cfg'"; \ >X-+ rm -f "$(DESTDIR)$(xdvidir)/pxdvi.cfg"; \ >X- else :; fi >X- >X- ## Not used >X-@@ -262,6 +287,6 @@ >X- texmf-alt/xypic.map \ >X- xdvi-search.el \ >X- xdvi.icon \ >X-- xdvizilla \ >X-+ pxdvizilla \ >X- xdvizilla.1 >X- >X+ @if grep "original xdvi.cfg --" "$(DESTDIR)$(xdvidir)/xdvi.cfg" >/dev/null 2>&1 \ >X diff -udNr source.orig/texk/pxdvik/README.xdvik-jp source/texk/pxdvik/README.xdvik-jp >X --- source.orig/texk/pxdvik/README.xdvik-jp 1970-01-01 09:00:00.000000000 +0900 >X +++ source/texk/pxdvik/README.xdvik-jp 2013-03-03 09:30:50.263646568 +0900 >X@@ -8067,9 +8040,8 @@ >X dnl >X ## configure options and TL libraries required for xdvik >X -KPSE_ENABLE_PROG([xdvik], [kpathsea t1lib], [x]) >X--m4_include(kpse_TL[texk/xdvik/ac/xdvik.ac]) >X-+KPSE_ENABLE_PROG([pxdvik], [kpathsea t1lib freetype2 zlib], [x]) >X-+m4_include(kpse_TL[texk/pxdvik/ac/xdvik.ac]) >X++KPSE_ENABLE_PROG([xdvik], [kpathsea t1lib freetype2 zlib], [x]) >X+ m4_include(kpse_TL[texk/xdvik/ac/xdvik.ac]) >X diff -udNr source.orig/texk/pxdvik/aclocal.m4 source/texk/pxdvik/aclocal.m4 >X --- source.orig/texk/pxdvik/aclocal.m4 2013-03-03 09:30:26.923647299 +0900 >X +++ source/texk/pxdvik/aclocal.m4 2013-03-03 09:30:50.271646568 +0900 >X@@ -8128,17 +8100,6 @@ >X AC_CONFIG_HEADERS([c-auto.h:c-auto.in]) >X >X AC_FUNC_FORK >X-@@ -225,8 +235,8 @@ >X- fi >X- fi >X- AC_SUBST([x_tool_libs]) >X--final_exec_name="xdvi-$prog_extension" >X--program_transform_name="'s,xdvi-bin,$final_exec_name,'" >X-+final_exec_name="pxdvi-$prog_extension" >X-+program_transform_name="'s,xdvi-bin,$final_exec_name,';'s,^xdvi,pxdvi,'" >X- AC_SUBST([final_exec_name]) >X- >X- dnl ####### >X @@ -261,6 +271,8 @@ >X >X KPSE_KPATHSEA_FLAGS >X@@ -9188,15 +9149,6 @@ >X } >X return NULL; >X } >X-@@ -5737,7 +6216,7 @@ >X- Boolean found_no_map_files = True; >X- >X- if (file == NULL) >X-- file = "xdvi.cfg"; >X-+ file = "pxdvi.cfg"; >X- >X- filename = kpse_find_file(file, kpse_program_text_format, 1); >X- if (filename == NULL) { >X @@ -5810,6 +6289,21 @@ >X } >X i = new_encoding(enc, ptr); >X@@ -12162,185 +12114,6 @@ >X + >X +void add_replace_dictionary(char *key, char *word); >X +#endif /* PTEX */ >X-diff -udNr source.orig/texk/pxdvik/pxdvizilla source/texk/pxdvik/pxdvizilla >X---- source.orig/texk/pxdvik/pxdvizilla 1970-01-01 09:00:00.000000000 +0900 >X-+++ source/texk/pxdvik/pxdvizilla 2013-03-03 09:30:50.275646568 +0900 >X-@@ -0,0 +1,175 @@ >X-+#! /bin/sh >X-+# >X-+# This is a kludge to fix helper apps in mozilla. See mozilla bugs #57420 >X-+# and also #78919. >X-+# >X-+# It's also useful for tar files with Netscape 4.x >X-+# >X-+# Copyright (c) 2002-2004 Paul Vojta >X-+# >X-+# Permission is hereby granted, free of charge, to any person obtaining a copy >X-+# of this software and associated documentation files (the "Software"), to >X-+# deal in the Software without restriction, including without limitation the >X-+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or >X-+# sell copies of the Software, and to permit persons to whom the Software is >X-+# furnished to do so, subject to the following conditions: >X-+# >X-+# The above copyright notice and this permission notice shall be included in >X-+# all copies or substantial portions of the Software. >X-+# >X-+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >X-+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF >X-+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. >X-+# IN NO EVENT SHALL PAUL VOJTA OR ANY OTHER AUTHOR OF OR CONTRIBUTOR TO >X-+# THIS SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, >X-+# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, >X-+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS >X-+# IN THE SOFTWARE. >X-+ >X-+# Some changes suggested by Thomas Esser included by >X-+# <stefanulrich@users.sourceforge.net>. >X-+ >X-+IN_FILE= >X-+NO_RM= >X-+TMP_DIR= >X-+progname=pxdvizilla >X-+ >X-+do_cleanup() >X-+{ >X-+exit 0 >X-+ exitval=$? >X-+ if [ -z "$NO_RM" -a -n "$IN_FILE" ] ; then >X-+ rm -f "$IN_FILE" >X-+ fi >X-+ test -n "$TMP_DIR" && rm -rf "$TMP_DIR" >X-+ exit $exitval >X-+} >X-+ >X-+do_abort() >X-+{ >X-+ xmessage -nearmouse "$progname: $1" >X-+ do_cleanup >X-+ exit 1 >X-+} >X-+ >X-+usage() >X-+{ >X-+ xmessage -nearmouse "Usage: $progname [-no-rm] <file>" >X-+ do_cleanup >X-+ exit 1 >X-+} >X-+ >X-+ >X-+# Solaris' file command fails to identify DVI files (bug #1508963), >X-+# so add an extra check for these; otherwise, output result of 'file' command. >X-+get_filetype() >X-+{ >X-+ f="$1" >X-+ have_solaris=`uname -a | grep -i sunos` >X-+ if [ "$have_solaris"xxx = "xxx" ] >X-+ then >X-+ ret=`file "$f"` >X-+ else >X-+ # we're on solaris, get first 2 bytes of file >X-+ magic=`od -N 2 -x "$f" | cut -d ' ' -f 2 | sed 1q | tr 'ABCDEF' 'abcdef'` >X-+ case "$magic" in >X-+ "f702" | "02f7") >X-+ ret="TeX DVI file" >X-+ ;; >X-+ *) >X-+ ret=`file "$f"` >X-+ ;; >X-+ esac >X-+ fi >X-+ echo "$ret" >X-+} >X-+ >X-+trap 'do_cleanup' 1 2 3 7 13 15 >X-+ >X-+### create a temporary directory only read/writable by user >X-+### try mktemp if it's available >X-+TMP_DIR=${TMPDIR-${TEMP-${TMP-/tmp}}}/${progname}.XXXXXX >X-+TMP_DIR=`mktemp -d "$TMP_DIR" 2> /dev/null` >X-+if [ $? -ne 0 ]; then >X-+ ### fall back to unsafe creation >X-+ TMP_DIR=${TMPDIR-${TEMP-${TMP-/tmp}}}/${progname}.$$ >X-+ (umask 077; mkdir "$TMP_DIR") || do_abort "Could not create directory \`$TMP_DIR'" >X-+fi >X-+ >X-+### we hard-wire the magic for DVI files here since some "file" implementations >X-+### (e.g. on Solaris 9) don't recognize DVI files (bug #1508963) >X-+TMP_MAGIC_FILE="$TMP_DIR"/tmp-magic >X-+### Note: 3 tabs in the following line! >X-+echo '0 string \367\002 TeX DVI file' > "$TMP_MAGIC_FILE" >X-+ >X-+if [ $# -gt 1 -a "x$1" = "x-no-rm" ]; then >X-+ NO_RM=y >X-+ shift >X-+fi >X-+ >X-+if [ $# -ne 1 ]; then >X-+ usage >X-+fi >X-+ >X-+DIR=`dirname "$0"` >X-+ >X-+if [ "$DIR" = . ]; then >X-+ DIR= >X-+elif [ -f "$DIR"/pxdvi -a -x "$DIR"/pxdvi ]; then >X-+ DIR="$DIR"/ >X-+else >X-+ DIR= >X-+fi >X-+ >X-+# set -x >X-+ >X-+# need to preserve IN_FILE for eventual deletion >X-+IN_FILE="$1" >X-+TMP_FILE="$IN_FILE" >X-+ >X-+while [ 1 ]; do >X-+ [ -f "$TMP_FILE" ] || do_abort "$TMP_FILE: File not found." >X-+ #FILETYPE=`file -m "$TMP_MAGIC_FILE" "$TMP_FILE"` >X-+ FILETYPE=`get_filetype "$TMP_FILE"` >X-+ case "$FILETYPE" in >X-+ *"gzip compressed data"*) >X-+ out="$TMP_DIR"/tmp-gz >X-+ gunzip -c "$TMP_FILE" > "$out" >X-+ TMP_FILE="$out" >X-+ ;; >X-+ *"compressed data"* | *"compress'd data"*) >X-+ out="$TMP_DIR"/tmp-compress >X-+ uncompress -c "$TMP_FILE" > "$out" >X-+ TMP_FILE="$out" >X-+ ;; >X-+ "$TMP_FILE: empty") >X-+ do_abort "$TMP_FILE is an empty file >X-+(probably a bug in Mozilla?)" >X-+ ;; >X-+ *" tar archive") >X-+ ### do sanity checks on the tar archive, to avoid overwriting user files: >X-+ dangerous=`tar tf "$TMP_FILE" | egrep '^(/|.*\.\./)'` >X-+ [ -z "$dangerous" ] || do_abort "Tar file contains files with absolute paths or \`../' components, >X-+which may overwrite user files. Not unpacking it." >X-+ ### also check for gzipped DVI files inside the archive ... >X-+ out="$TMP_DIR"/`tar tf "$TMP_FILE" | egrep '\.(dvi|dvi.gz|dvi.Z)$' | head -1` >X-+ if [ -z "$out" ]; then >X-+ do_abort "Tar file does not contain a dvi file." >X-+ else >X-+ cat "$TMP_FILE" | (cd "$TMP_DIR"; tar xf -) >X-+ TMP_FILE="$out" >X-+ fi >X-+ ;; >X-+ *"DVI file"*) >X-+ "$DIR"pxdvi -safer "$TMP_FILE" >X-+ break >X-+ ;; >X-+ *) >X-+ do_abort "$TMP_FILE: Unrecognized file format!" >X-+ ;; >X-+ esac >X-+done >X-+ >X-+do_cleanup >X-+ >X-+exit 0 >X diff -udNr source.orig/texk/pxdvik/special.c source/texk/pxdvik/special.c >X --- source.orig/texk/pxdvik/special.c 2013-03-03 09:30:26.923647299 +0900 >X +++ source/texk/pxdvik/special.c 2013-03-03 09:30:50.279646567 +0900 >X@@ -13308,75 +13081,13 @@ >X >X >X !!! Color used for page border, image bounding boxes and the ruler in `Ruler mode'. >X-diff -udNr source.orig/texk/pxdvik/texmf/pxdvi.cfg source/texk/pxdvik/texmf/pxdvi.cfg >X---- source.orig/texk/pxdvik/texmf/pxdvi.cfg 1970-01-01 09:00:00.000000000 +0900 >X-+++ source/texk/pxdvik/texmf/pxdvi.cfg 2013-03-03 09:30:50.279646567 +0900 >X-@@ -0,0 +1,109 @@ >X-+% original xdvi.cfg -- Configuration file for the Type1 rendering module of xdvi. >X-+% (If you change or delete `original' in the first line of this file, >X-+% new xdvik installations won't overwrite the file.) >X-+% >X-+% Lines starting with `%' are comments. >X-+% >X-+% This file is not suitable for teTeX versions before 1.0. Users of >X-+% such or non-teTeX installations should have a look at the following >X-+% files instead: >X-+% >X-+% ../texmf-alt/xdvi.cfg >X-+% ../README.t1fonts >X-+% >X-+% For using this file with teTeX-1.0.x, please uncomment the line with >X-+% `psfonts.map' (preserving the order of the lines). >X-+% >X-+% For any later version of teTeX, no modification is needed. >X-+% >X-+ >X-+% File version 1.2 >X-+% Original version by Nicolai Langfeldt 2001/06/05 >X-+% Changes by Thomas Esser for teTeX, Sat Nov 3 23:33:54 CET 2001. >X-+ >X-+% =============== Section 1: Encodings =============== >X-+% >X-+% Here we list all the encodings we want xdvi to recognize as an >X-+% "implied" encoding. This means that a font named `ptmr8r' will >X-+% be treated as font `ptmr' encoded with `8r', and `ptmr8y' as >X-+% `ptmr' encoded with `8y'. Fonts that don not follow this convention >X-+% must have an explicit encoding entry in the map file. >X-+% >X-+% The encoding files used by xdvi are similar to those used by dvips, >X-+% whith the important exception that xdvi _cannot_ parse postscript, >X-+% so the vectors mustn't require postscript execution. >X-+ >X-+%Keyword Suffix Encoding name Defined by this file >X-+enc 8r TeXBase1Encoding 8r.enc >X-+enc 8c CorkEncoding cork.enc >X-+enc 8y TeXnANSIEncoding texnansi.enc >X-+ >X-+ >X-+ >X-+% =============== Section 2: Map files =============== >X-+% >X-+% A font map file is a mapping of TeX font names (and encodings) to >X-+% Postscript Type1 font names, similar to dvips' psfonts.map. See the >X-+% dvips documentation for more information about the font map file >X-+% format, and the file `README.t1fonts' in the xdvik source >X-+% distribution for information on the differences between dvips and >X-+% xdvik font maps. >X-+% >X-+% Multiple map files are allowed. If a font entry is found in several >X-+% files, later entries will override earlier ones (and a warning >X-+% will be printed to stderr). >X-+% >X-+% However, normally it isn't necessary to add any other map file here >X-+% because ps2pk.map is (normally) a generated file (by the updmap >X-+% script). Instead, map files should be added to the updmap.cfg file. >X-+% >X-+% ps2pk has no "built-in" fonts, just like xdvik, so its map file is used >X-+% for xdvik too. For teTeX-1.0, psfonts.map is needed in addition. >X-+ >X-+% dvipsmap psfonts.map >X-+dvipsmap ps2pk.map >X-+ >X+diff -udNr source.orig/texk/pxdvik/texmf/xdvi.cfg source/texk/pxdvik/texmf/xdvi.cfg >X+--- source.orig/texk/pxdvik/texmf/xdvi.cfg 2013-03-03 09:30:26.923647299 +0900 >X++++ source/texk/pxdvik/texmf/xdvi.cfg 2013-03-03 09:30:50.279646567 +0900 >X+@@ -0,3 +1,47 @@ >X+ % dvipsmap psfonts.map >X+ dvipsmap ps2pk.map >X+ >X +% =============== Section 3: pTeX Map files =============== >X + >X +replace H JIS-H >X@@ -13421,75 +13132,6 @@ >X +replace HYGoThic-Medium UnDotum.ttf >X + >X +ptexmap kanjix.map >X-diff -udNr source.orig/texk/pxdvik/texmf/xdvi.cfg source/texk/pxdvik/texmf/xdvi.cfg >X---- source.orig/texk/pxdvik/texmf/xdvi.cfg 2013-03-03 09:30:26.923647299 +0900 >X-+++ source/texk/pxdvik/texmf/xdvi.cfg 1970-01-01 09:00:00.000000000 +0900 >X-@@ -1,65 +0,0 @@ >X--% original xdvi.cfg -- Configuration file for the Type1 rendering module of xdvi. >X--% (If you change or delete `original' in the first line of this file, >X--% new xdvik installations won't overwrite the file.) >X--% >X--% Lines starting with `%' are comments. >X--% >X--% This file is not suitable for teTeX versions before 1.0. Users of >X--% such or non-teTeX installations should have a look at the following >X--% files instead: >X--% >X--% ../texmf-alt/xdvi.cfg >X--% ../README.t1fonts >X--% >X--% For using this file with teTeX-1.0.x, please uncomment the line with >X--% `psfonts.map' (preserving the order of the lines). >X--% >X--% For any later version of teTeX, no modification is needed. >X--% >X-- >X--% File version 1.2 >X--% Original version by Nicolai Langfeldt 2001/06/05 >X--% Changes by Thomas Esser for teTeX, Sat Nov 3 23:33:54 CET 2001. >X-- >X--% =============== Section 1: Encodings =============== >X--% >X--% Here we list all the encodings we want xdvi to recognize as an >X--% "implied" encoding. This means that a font named `ptmr8r' will >X--% be treated as font `ptmr' encoded with `8r', and `ptmr8y' as >X--% `ptmr' encoded with `8y'. Fonts that don not follow this convention >X--% must have an explicit encoding entry in the map file. >X--% >X--% The encoding files used by xdvi are similar to those used by dvips, >X--% whith the important exception that xdvi _cannot_ parse postscript, >X--% so the vectors mustn't require postscript execution. >X-- >X--%Keyword Suffix Encoding name Defined by this file >X--enc 8r TeXBase1Encoding 8r.enc >X--enc 8c CorkEncoding cork.enc >X--enc 8y TeXnANSIEncoding texnansi.enc >X-- >X-- >X-- >X--% =============== Section 2: Map files =============== >X--% >X--% A font map file is a mapping of TeX font names (and encodings) to >X--% Postscript Type1 font names, similar to dvips' psfonts.map. See the >X--% dvips documentation for more information about the font map file >X--% format, and the file `README.t1fonts' in the xdvik source >X--% distribution for information on the differences between dvips and >X--% xdvik font maps. >X--% >X--% Multiple map files are allowed. If a font entry is found in several >X--% files, later entries will override earlier ones (and a warning >X--% will be printed to stderr). >X--% >X--% However, normally it isn't necessary to add any other map file here >X--% because ps2pk.map is (normally) a generated file (by the updmap >X--% script). Instead, map files should be added to the updmap.cfg file. >X--% >X--% ps2pk has no "built-in" fonts, just like xdvik, so its map file is used >X--% for xdvik too. For teTeX-1.0, psfonts.map is needed in addition. >X-- >X--% dvipsmap psfonts.map >X--dvipsmap ps2pk.map >X-- >X diff -udNr source.orig/texk/pxdvik/tounimap2h.lua source/texk/pxdvik/tounimap2h.lua >X --- source.orig/texk/pxdvik/tounimap2h.lua 1970-01-01 09:00:00.000000000 +0900 >X +++ source/texk/pxdvik/tounimap2h.lua 2013-03-03 09:45:38.283618764 +0900 >X@@ -13798,185 +13440,6 @@ >X char *help_general; >X char *help_hypertex; >X char *help_othercommands; >X-diff -udNr source.orig/texk/pxdvik/xdvizilla source/texk/pxdvik/xdvizilla >X---- source.orig/texk/pxdvik/xdvizilla 2013-03-03 09:30:26.923647299 +0900 >X-+++ source/texk/pxdvik/xdvizilla 1970-01-01 09:00:00.000000000 +0900 >X-@@ -1,175 +0,0 @@ >X--#! /bin/sh >X--# >X--# This is a kludge to fix helper apps in mozilla. See mozilla bugs #57420 >X--# and also #78919. >X--# >X--# It's also useful for tar files with Netscape 4.x >X--# >X--# Copyright (c) 2002-2004 Paul Vojta >X--# >X--# Permission is hereby granted, free of charge, to any person obtaining a copy >X--# of this software and associated documentation files (the "Software"), to >X--# deal in the Software without restriction, including without limitation the >X--# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or >X--# sell copies of the Software, and to permit persons to whom the Software is >X--# furnished to do so, subject to the following conditions: >X--# >X--# The above copyright notice and this permission notice shall be included in >X--# all copies or substantial portions of the Software. >X--# >X--# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >X--# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF >X--# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. >X--# IN NO EVENT SHALL PAUL VOJTA OR ANY OTHER AUTHOR OF OR CONTRIBUTOR TO >X--# THIS SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, >X--# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, >X--# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS >X--# IN THE SOFTWARE. >X-- >X--# Some changes suggested by Thomas Esser included by >X--# <stefanulrich@users.sourceforge.net>. >X-- >X--IN_FILE= >X--NO_RM= >X--TMP_DIR= >X--progname=xdvizilla >X-- >X--do_cleanup() >X--{ >X--exit 0 >X-- exitval=$? >X-- if [ -z "$NO_RM" -a -n "$IN_FILE" ] ; then >X-- rm -f "$IN_FILE" >X-- fi >X-- test -n "$TMP_DIR" && rm -rf "$TMP_DIR" >X-- exit $exitval >X--} >X-- >X--do_abort() >X--{ >X-- xmessage -nearmouse "$progname: $1" >X-- do_cleanup >X-- exit 1 >X--} >X-- >X--usage() >X--{ >X-- xmessage -nearmouse "Usage: $progname [-no-rm] <file>" >X-- do_cleanup >X-- exit 1 >X--} >X-- >X-- >X--# Solaris' file command fails to identify DVI files (bug #1508963), >X--# so add an extra check for these; otherwise, output result of 'file' command. >X--get_filetype() >X--{ >X-- f="$1" >X-- have_solaris=`uname -a | grep -i sunos` >X-- if [ "$have_solaris"xxx = "xxx" ] >X-- then >X-- ret=`file "$f"` >X-- else >X-- # we're on solaris, get first 2 bytes of file >X-- magic=`od -N 2 -x "$f" | cut -d ' ' -f 2 | sed 1q | tr 'ABCDEF' 'abcdef'` >X-- case "$magic" in >X-- "f702" | "02f7") >X-- ret="TeX DVI file" >X-- ;; >X-- *) >X-- ret=`file "$f"` >X-- ;; >X-- esac >X-- fi >X-- echo "$ret" >X--} >X-- >X--trap 'do_cleanup' 1 2 3 7 13 15 >X-- >X--### create a temporary directory only read/writable by user >X--### try mktemp if it's available >X--TMP_DIR=${TMPDIR-${TEMP-${TMP-/tmp}}}/${progname}.XXXXXX >X--TMP_DIR=`mktemp -d "$TMP_DIR" 2> /dev/null` >X--if [ $? -ne 0 ]; then >X-- ### fall back to unsafe creation >X-- TMP_DIR=${TMPDIR-${TEMP-${TMP-/tmp}}}/${progname}.$$ >X-- (umask 077; mkdir "$TMP_DIR") || do_abort "Could not create directory \`$TMP_DIR'" >X--fi >X-- >X--### we hard-wire the magic for DVI files here since some "file" implementations >X--### (e.g. on Solaris 9) don't recognize DVI files (bug #1508963) >X--TMP_MAGIC_FILE="$TMP_DIR"/tmp-magic >X--### Note: 3 tabs in the following line! >X--echo '0 string \367\002 TeX DVI file' > "$TMP_MAGIC_FILE" >X-- >X--if [ $# -gt 1 -a "x$1" = "x-no-rm" ]; then >X-- NO_RM=y >X-- shift >X--fi >X-- >X--if [ $# -ne 1 ]; then >X-- usage >X--fi >X-- >X--DIR=`dirname "$0"` >X-- >X--if [ "$DIR" = . ]; then >X-- DIR= >X--elif [ -f "$DIR"/xdvi -a -x "$DIR"/xdvi ]; then >X-- DIR="$DIR"/ >X--else >X-- DIR= >X--fi >X-- >X--# set -x >X-- >X--# need to preserve IN_FILE for eventual deletion >X--IN_FILE="$1" >X--TMP_FILE="$IN_FILE" >X-- >X--while [ 1 ]; do >X-- [ -f "$TMP_FILE" ] || do_abort "$TMP_FILE: File not found." >X-- #FILETYPE=`file -m "$TMP_MAGIC_FILE" "$TMP_FILE"` >X-- FILETYPE=`get_filetype "$TMP_FILE"` >X-- case "$FILETYPE" in >X-- *"gzip compressed data"*) >X-- out="$TMP_DIR"/tmp-gz >X-- gunzip -c "$TMP_FILE" > "$out" >X-- TMP_FILE="$out" >X-- ;; >X-- *"compressed data"* | *"compress'd data"*) >X-- out="$TMP_DIR"/tmp-compress >X-- uncompress -c "$TMP_FILE" > "$out" >X-- TMP_FILE="$out" >X-- ;; >X-- "$TMP_FILE: empty") >X-- do_abort "$TMP_FILE is an empty file >X--(probably a bug in Mozilla?)" >X-- ;; >X-- *" tar archive") >X-- ### do sanity checks on the tar archive, to avoid overwriting user files: >X-- dangerous=`tar tf "$TMP_FILE" | egrep '^(/|.*\.\./)'` >X-- [ -z "$dangerous" ] || do_abort "Tar file contains files with absolute paths or \`../' components, >X--which may overwrite user files. Not unpacking it." >X-- ### also check for gzipped DVI files inside the archive ... >X-- out="$TMP_DIR"/`tar tf "$TMP_FILE" | egrep '\.(dvi|dvi.gz|dvi.Z)$' | head -1` >X-- if [ -z "$out" ]; then >X-- do_abort "Tar file does not contain a dvi file." >X-- else >X-- cat "$TMP_FILE" | (cd "$TMP_DIR"; tar xf -) >X-- TMP_FILE="$out" >X-- fi >X-- ;; >X-- *"DVI file"*) >X-- "$DIR"xdvi -safer "$TMP_FILE" >X-- break >X-- ;; >X-- *) >X-- do_abort "$TMP_FILE: Unrecognized file format!" >X-- ;; >X-- esac >X--done >X-- >X--do_cleanup >X-- >X--exit 0 >X diff -udNr source.orig/texk/pxdvik/zeit.c source/texk/pxdvik/zeit.c >X --- source.orig/texk/pxdvik/zeit.c 1970-01-01 09:00:00.000000000 +0900 >X +++ source/texk/pxdvik/zeit.c 2013-03-03 09:30:50.279646567 +0900 >a0783f812383004a6c44a782331d4c22 >echo x - tex-xdvik/Makefile >sed 's/^X//' >tex-xdvik/Makefile << 'b405e2f6eb51f5a98509fac2198ce5f7' >X# $FreeBSD$ >X >XPORTNAME= xdvik >XPORTVERSION= 22.85 >XCATEGORIES= japanese print >XMASTER_SITES= SF/xdvi/${PORTNAME}/${PORTVERSION}:xdvi \ >X http://www.preining.info/software/:ptex >XPKGNAMEPREFIX= ja-tex- >XDISTFILES= ${DISTNAME}${EXTRACT_SUFX}:xdvi \ >X build-tlptexlive-20130815.zip:ptex >XDIST_SUBDIR= TeX >X >XMAINTAINER= none >XCOMMENT= DVI Previewer(kpathsearch) for X + freetype support >X >XLIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \ >X libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \ >X libt1.so:${PORTSDIR}/devel/t1lib >X >XUSES= iconv gmake motif >XUSE_TEX= web2c kpathsea texmf texhash >XTEXHASHDIRS= ${TEXMFDISTDIR} >XUSE_XORG= ice sm x11 xmu xpm xt >XWRKSRC= ${WRKDIR}/${DISTNAME}/texk/xdvik >XPATDIR= ${WRKDIR}/build-tlptexlive-20130815/patches >XUSE_AUTOTOOLS= autoconf automake >XGNU_CONFIGURE= yes >XCONFIGURE_ARGS= --enable-shared \ >X --datarootdir=${LOCALBASE}/share \ >X --with-xdvi-x-toolkit=motif \ >X --with-iconv \ >X --with-iconv-libdir=${LOCALBASE}/lib \ >X --with-xpm \ >X --with-system-kpathsea \ >X --with-kpathsea-includes=${LOCALBASE}/include \ >X --with-kpathsea-libdir=${LOCALBASE}/lib \ >X --with-system-zlib \ >X --with-system-freetype2 \ >X --with-system-t1lib \ >X --with-system-libgs \ >X --with-default-dvips-path=${LOCALBASE}/bin/dvips \ >X --with-default-ps2pdf-path=${LOCALBASE}/bin/ps2pdf >X >XCONFLICTS_INSTALL= tex-xdvik-[0-9]* >X >Xpre-patch: >X ${PATCH} -d ${WRKSRC} -p0 < ${PATCHDIR}/am.diff >X ${PATCH} -d ${PATDIR} -p0 < ${PATCHDIR}/pxdvi-base.diff >X for i in pxdvi-base pxdvi-density pxdvi-uptex; do \ >X ${PATCH} -d ${WRKSRC} -p3 < ${PATDIR}/$$i ; \ >X done >X >Xpre-configure: >X cd ${WRKSRC} && ${AUTORECONF} -i >X >Xdo-install: >X ${INSTALL_PROGRAM} ${WRKSRC}/xdvi-bin ${STAGEDIR}${LOCALBASE}/bin/xdvi-motif >X ${INSTALL_SCRIPT} ${WRKSRC}/xdvi ${STAGEDIR}${LOCALBASE}/bin/xdvi >X ${MKDIR} ${STAGEDIR}${LOCALBASE}/${TEXMFDISTDIR}/xdvi/pixmaps >X for i in xdvi-ptex.sample texmf/XDvi texmf/xdvi.cfg; do \ >X ${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}${LOCALBASE}/${TEXMFDISTDIR}/xdvi ; \ >X done >X for i in toolbar.xpm toolbar2.xpm; do \ >X ${INSTALL_DATA} ${WRKSRC}/pixmaps/$$i \ >X ${STAGEDIR}${LOCALBASE}/${TEXMFDISTDIR}/xdvi/pixmaps ; \ >X done >X >X.include <bsd.port.mk> >b405e2f6eb51f5a98509fac2198ce5f7 >echo x - tex-xdvik/distinfo >sed 's/^X//' >tex-xdvik/distinfo << 'a30c8a966ca0a8db2d1fb38c78f078c8' >XSHA256 (TeX/xdvik-22.85.tar.gz) = 91f08103e53ab46efc83053e648bdd07aa100043233dadcb7384efc83fa2dde8 >XSIZE (TeX/xdvik-22.85.tar.gz) = 4128828 >XSHA256 (TeX/build-tlptexlive-20130815.zip) = fd94a4eddb84218aab5325bea60f36910832c4f6e5007e0c0700621959a8b0a1 >XSIZE (TeX/build-tlptexlive-20130815.zip) = 226696 >a30c8a966ca0a8db2d1fb38c78f078c8 >echo x - tex-xdvik/pkg-descr >sed 's/^X//' >tex-xdvik/pkg-descr << '4c176c45e8e7326e08dced8dbcfbb59b' >Xpxdvi, a DVI previewer for TeXLive >X >XWWW: http://tutimura.ath.cx/ptexlive/?tlptexlive%A5%EA%A5%DD%A5%B8%A5%C8%A5%EA >4c176c45e8e7326e08dced8dbcfbb59b >echo x - tex-xdvik/pkg-plist >sed 's/^X//' >tex-xdvik/pkg-plist << '54d2395fa9c32a0cf6f6073387e7a7ff' >Xbin/xdvi >Xbin/xdvi-motif >X%%TEXMFDISTDIR%%/xdvi/XDvi >X%%TEXMFDISTDIR%%/xdvi/xdvi.cfg >X%%TEXMFDISTDIR%%/xdvi/xdvi-ptex.sample >X%%TEXMFDISTDIR%%/xdvi/pixmaps/toolbar.xpm >X%%TEXMFDISTDIR%%/xdvi/pixmaps/toolbar2.xpm >X@dirrm %%TEXMFDISTDIR%%/xdvi >X@dirrm %%TEXMFDISTDIR%%/xdvi/pixmaps >54d2395fa9c32a0cf6f6073387e7a7ff >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 193306
: 146775