[82095] users/dports/ports/tex/texlive-bin

dports at macports.org dports at macports.org
Sun Aug 7 22:12:05 PDT 2011


Revision: 82095
          http://trac.macports.org/changeset/82095
Author:   dports at macports.org
Date:     2011-08-07 22:12:01 -0700 (Sun, 07 Aug 2011)
Log Message:
-----------
texlive-bin: hack to make +atsui work on Lion (mostly; some of it uses
APIs that have been removed)

Modified Paths:
--------------
    users/dports/ports/tex/texlive-bin/Portfile

Added Paths:
-----------
    users/dports/ports/tex/texlive-bin/files/patch-texk_web2c_xetexdir_XeTeX_ext.h.diff

Modified: users/dports/ports/tex/texlive-bin/Portfile
===================================================================
--- users/dports/ports/tex/texlive-bin/Portfile	2011-08-08 02:33:51 UTC (rev 82094)
+++ users/dports/ports/tex/texlive-bin/Portfile	2011-08-08 05:12:01 UTC (rev 82095)
@@ -222,8 +222,16 @@
 }
 
 variant atsui description {Use ATSUI instead of freetype for XeTeX font rendering (forces 32-bit)} {
-    # force 32-bit build
+    # ATSUI is a deprecated interface, not available on 64-bit archs,
+    # so force 32-bit build
     supported_archs i386 ppc
+
+    # ...and on 10.7 and above, enough of the APIs are broken that we
+    # can't build xdv2pdf, and need to use a hack to make xetex build
+    if {${os.platform} == "darwin" && ${os.major} >= 11} {
+        configure.args-append --disable-xdv2pdf
+        patchfiles-append patch-texk_web2c_xetexdir_XeTeX_ext.h.diff
+    }
 }
 
 if {![variant_isset "atsui"]} {

Added: users/dports/ports/tex/texlive-bin/files/patch-texk_web2c_xetexdir_XeTeX_ext.h.diff
===================================================================
--- users/dports/ports/tex/texlive-bin/files/patch-texk_web2c_xetexdir_XeTeX_ext.h.diff	                        (rev 0)
+++ users/dports/ports/tex/texlive-bin/files/patch-texk_web2c_xetexdir_XeTeX_ext.h.diff	2011-08-08 05:12:01 UTC (rev 82095)
@@ -0,0 +1,16 @@
+--- texk/web2c/xetexdir/XeTeX_ext.h.orig	2011-08-08 00:14:45.000000000 -0400
++++ texk/web2c/xetexdir/XeTeX_ext.h	2011-08-08 00:17:19.000000000 -0400
+@@ -313,6 +314,13 @@
+ 	void atsugetfontmetrics(ATSUStyle style, integer* ascent, integer* descent, integer* xheight, integer* capheight, integer* slant);
+ 
+ #ifdef XETEX_MAC
++
++#include <ApplicationServices/ApplicationServices.h>
++/* These functions have been removed on 10.7; as a workaround, just do
++ * a cast as the ATSFontRef and ATSUFontID should have the same value... */
++#define FMGetFontFromATSFontRef(x) ((ATSUFontID) x)
++#define FMGetATSFontRefFromFont(x) ((ATSFontRef) x)
++
+ /* functions in XeTeX_mac.c */
+ 	void* loadAATfont(ATSFontRef fontRef, integer scaled_size, const char* cp1);
+ 	void DoAtsuiLayout(void* node, int justify);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110807/8b3e3eb4/attachment.html>


More information about the macports-changes mailing list