Ticket #30745: texlive-bin.3.patch

File texlive-bin.3.patch, 2.3 KB (added by pguyot (Paul Guyot), 13 years ago)

Patch to texlive-bin to fix xdvipdfmx and get it to work with freetype in trunk (without --with-old-mac-fonts)

  • files/patch-texk_xdvipdfmx_src_cidtype2.c.diff

     
     1--- texk/xdvipdfmx/src/cidtype2.c       2010-03-30 02:14:53.000000000 +0200
     2+++ texk/xdvipdfmx/src/cidtype2.c       2011-08-15 19:34:36.000000000 +0200
     3@@ -559,7 +559,7 @@
     4       ERROR("Invalid TTC index in %s.", font->ident);
     5     break;
     6   case SFNT_TYPE_TRUETYPE:
     7-#ifndef XETEX_MAC
     8+#ifndef XETEX
     9     if (font->options->index > 0)
     10       ERROR("Found TrueType font file while expecting TTC file (%s).", font->ident);
     11 #endif
     12@@ -962,7 +962,7 @@
     13     offset = ttc_read_offset(sfont, opt->index);
     14     break;
     15   case SFNT_TYPE_TRUETYPE:
     16-#ifdef XETEX_MAC /* disable the index check here because of how .dfonts are handled */
     17+#ifdef XETEX /* disable the index check here because of how .dfonts are handled */
     18     offset = 0;
     19 #else
     20     if (opt->index > 0) {
  • Portfile

     
    66
    77name            texlive-bin
    88version         2011
     9revision        1
    910
    1011categories      tex
    1112maintainers     dports
     
    6566                patch-texk_texlive_context_mtxrun.diff \
    6667                patch-texk_texlive_linked_scripts_Makefile.in.diff \
    6768                patch-texk_xdvik_xdvi-sh.in.diff \
     69                patch-texk_xdvipdfmx_src_cidtype2.c.diff \
    6870                patch-utils_chktex_Makefile.in.diff
    6971   
    7072
     
    100102        reinplace "s|kpse_cv_have_Carbon=yes|kpse_cv_have_Carbon=no|" ${worksrcpath}/texk/xdv2pdf/configure
    101103    }
    102104   
    103     # Do the same for xdvipdfmx regardless of whether +atsui is set,
    104     # because it will want to use deprecated fontconfig APIs that are
    105     # only available if fontconfig is compiled with
    106     # --with-old-mac-fonts
     105    # Force xdvipdfmx to use multi-platform freetype API as freetype is not
     106    # compiled with --with-old-mac-fonts. A patch helps xdvipdfmx accept dfont
     107    # files that freetype can handle.
    107108    reinplace "s|kpse_cv_have_ApplicationServices=yes|kpse_cv_have_ApplicationServices=no|" ${worksrcpath}/texk/xdvipdfmx/configure
    108109}
    109110