[151837] users/mojca/ports/tex/miktex
mojca at macports.org
mojca at macports.org
Tue Aug 23 03:34:38 PDT 2016
Revision: 151837
https://trac.macports.org/changeset/151837
Author: mojca at macports.org
Date: 2016-08-23 03:34:38 -0700 (Tue, 23 Aug 2016)
Log Message:
-----------
mojca/miktex: further changes, not yet fully functional
Modified Paths:
--------------
users/mojca/ports/tex/miktex/Portfile
users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Session-SessionImpl.h.diff
users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Utils-AutoTraceTime.h.diff
Added Paths:
-----------
users/mojca/ports/tex/miktex/files/fix-libraries-first.sh
users/mojca/ports/tex/miktex/files/fix-libraries.sh
users/mojca/ports/tex/miktex/files/patch-Libraries-3rd-gsoap-source-gsoap-stdsoap2.cpp.diff
users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-App-CMakeLists.txt.diff
users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-KPathSeaEmulation-StdAfx.h.diff
users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-KPathSeaEmulation-kpsemu.cpp.diff
users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Web2CEmulation-StdAfx.h.diff
users/mojca/ports/tex/miktex/files/patch-Programs-Converters-tex4ht-source-tex4ht.c.diff
users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-Setup-miktexsetup-miktexsetup.cpp.diff
users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-initexmf-initexmf.cpp.diff
users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-makex-internal.h.diff
users/mojca/ports/tex/miktex/files/patch-Programs-TeXAndFriends-xetex-xetex.cc.diff
Removed Paths:
-------------
users/mojca/ports/tex/miktex/files/patch-BuildUtilities-c4p-gram.y.diff
users/mojca/ports/tex/miktex/files/patch-CMakeLists.txt.diff
Modified: users/mojca/ports/tex/miktex/Portfile
===================================================================
--- users/mojca/ports/tex/miktex/Portfile 2016-08-23 09:57:55 UTC (rev 151836)
+++ users/mojca/ports/tex/miktex/Portfile 2016-08-23 10:34:38 UTC (rev 151837)
@@ -4,9 +4,10 @@
PortSystem 1.0
PortGroup cmake 1.0
PortGroup compiler_blacklist_versions 1.0
+# java
name miktex
-version 2.9-2016-05-18
+version 2.9-2016-06-27
categories tex
platforms darwin
license unknown
@@ -20,8 +21,8 @@
master_sites http://mirrors.ctan.org/systems/win32/miktex/source/
use_xz yes
-checksums rmd160 e14030b6d16c8032a80ecc86c12eb7eaf6573c7f \
- sha256 9b91e8c2abf6a1e8288d9ec71572855c6aaf1970eca1fafb9416368a1c943c12
+checksums rmd160 a95e1244b4e658889046aede32ad1833681c5ed0 \
+ sha256 c3b1e2b35113d5f7d9d78c827a1d9ff07253e0b4725263e5664e1dc66f00b0b0
cmake.out_of_source yes
@@ -33,11 +34,12 @@
port:bison \
port:dos2unix \
port:flex \
+ port:fop \
port:ImageMagick \
- port:pandoc \
port:pkgconfig \
port:python27 \
- port:xsltproc
+ port:libxslt
+ #port:pandoc
depends_lib-append port:apr \
port:apr-util \
port:botan \
@@ -70,11 +72,11 @@
# port:mspack
-patchfiles patch-CMakeLists.txt.diff \
- patch-BuildUtilities-c4p-gram.y.diff \
- patch-Libraries-MiKTeX-Core-Utils-AutoTraceTime.h.diff \
- patch-Libraries-MiKTeX-Core-Session-SessionImpl.h.diff
+#patchfiles \
+# patch-Libraries-MiKTeX-Core-Session-SessionImpl.h.diff
+# patch-Libraries-MiKTeX-App-CMakeLists.txt.diff
+
configure.args-append \
-DWITH_UI_QT=OFF \
-DHUNSPELL_LIBRARY=${prefix}/lib/libhunspell-1.3.0.dylib \
@@ -93,3 +95,14 @@
depends_lib-append port:libcxx
}
}
+
+# https://sourceforge.net/p/miktex/bugs/2484/
+
+# https://sourceforge.net/p/miktex/bugs/2487/
+
+# https://sourceforge.net/p/miktex/bugs/2491/
+
+# https://sourceforge.net/p/miktex/bugs/2492/
+# - move man to ${prefix/share/
+# - move texmfs to ${prefix}/share/texmfs (but this might be hardcoded somewhere, so not sure if it can be moved easily)
+
Added: users/mojca/ports/tex/miktex/files/fix-libraries-first.sh
===================================================================
--- users/mojca/ports/tex/miktex/files/fix-libraries-first.sh (rev 0)
+++ users/mojca/ports/tex/miktex/files/fix-libraries-first.sh 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+list="app core extractor kpathsea lua52 md5 mspack packagemanager tangle teckit texmf trace util web2c findtexmf"
+
+for la in $list; do
+ for lb in $list; do
+ cmd="install_name_tool -change /opt/local/lib/libMiKTeX209-${la}.1.dylib @executable_path/libMiKTeX209-${la}.1.dylib libMiKTeX209-${lb}.2.9.dylib"
+ echo $cmd
+ $cmd
+ done
+ cmd="install_name_tool -change /opt/local/lib/libMiKTeX209-${la}.1.dylib @executable_path/libMiKTeX209-${la}.1.dylib libMiKTeX209-findtexmf.dylib"
+ echo $cmd
+ $cmd
+done
+for la in $list; do
+ #for lb in initctangle ctangle findtexmf initexmf; do
+ for lb in initexmf; do
+ cmd="install_name_tool -change /opt/local/lib/libMiKTeX209-${la}.1.dylib @executable_path/libMiKTeX209-${la}.1.dylib ./${lb}"
+ #cmd="install_name_tool -change /opt/local/lib/libMiKTeX209-${la}.dylib @executable_path/libMiKTeX209-${la}.dylib ./${lb}"
+ echo $cmd
+ $cmd
+ done
+done
+
Added: users/mojca/ports/tex/miktex/files/fix-libraries.sh
===================================================================
--- users/mojca/ports/tex/miktex/files/fix-libraries.sh (rev 0)
+++ users/mojca/ports/tex/miktex/files/fix-libraries.sh 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+list="app core extractor kpathsea lua52 md5 mspack packagemanager tangle teckit texmf trace util web2c"
+
+list_bins="ctangle findtexmf-2.9 initexmf miktex-tangle"
+
+prefix="/opt/local"
+olddir=$PWD
+cd "./$prefix/lib"
+# run this in destroot/opt/local/lib
+for la in $list; do
+ for lb in $list; do
+ cmd="install_name_tool -change @executable_path/libMiKTeX209-${la}.1.dylib ${prefix}/lib/libMiKTeX209-${la}.1.dylib libMiKTeX209-${lb}.2.9.dylib"
+ echo $cmd
+ $cmd
+ done
+done
+for la in $list; do
+ for lb in findtexmf; do
+ cmd="install_name_tool -change @executable_path/libMiKTeX209-${la}.1.dylib ${prefix}/lib/libMiKTeX209-${la}.1.dylib libMiKTeX209-${lb}.dylib"
+ echo $cmd
+ $cmd
+ done
+done
+
+cd $olddir
+cd "./$prefix/bin"
+for la in $list; do
+ for lb in $list_bins; do
+ cmd="install_name_tool -change @executable_path/libMiKTeX209-${la}.1.dylib ${prefix}/lib/libMiKTeX209-${la}.1.dylib ${lb}"
+ echo $cmd
+ $cmd
+ done
+done
+for la in findtexmf; do
+ for lb in $list_bins; do
+ cmd="install_name_tool -change @executable_path/libMiKTeX209-${la}.dylib ${prefix}/lib/libMiKTeX209-${la}.dylib ${lb}"
+ echo $cmd
+ $cmd
+ done
+done
+
Deleted: users/mojca/ports/tex/miktex/files/patch-BuildUtilities-c4p-gram.y.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-BuildUtilities-c4p-gram.y.diff 2016-08-23 09:57:55 UTC (rev 151836)
+++ users/mojca/ports/tex/miktex/files/patch-BuildUtilities-c4p-gram.y.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -1,11 +0,0 @@
---- BuildUtilities/c4p/gram.y.orig
-+++ BuildUtilities/c4p/gram.y
-@@ -23,7 +23,7 @@
- #include <cstring>
- #include <cstdlib>
- #include <cctype>
--#include <malloc.h>
-+#include <malloc/malloc.h>
-
- #include "common.h"
-
Deleted: users/mojca/ports/tex/miktex/files/patch-CMakeLists.txt.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-CMakeLists.txt.diff 2016-08-23 09:57:55 UTC (rev 151836)
+++ users/mojca/ports/tex/miktex/files/patch-CMakeLists.txt.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -1,19 +0,0 @@
---- CMakeLists.txt.orig
-+++ CMakeLists.txt
-@@ -49,7 +49,7 @@ set(MIKTEX_PRODUCT_NAME "MiKTeX")
-
- if(NOT MSVC)
- #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
-- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14")
-+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
- endif()
-
- ###############################################################################
-@@ -507,7 +507,6 @@ endif()
- set(required_programs
- cat
- dos2unix
-- pandoc
- sed
- xsltproc
- )
Added: users/mojca/ports/tex/miktex/files/patch-Libraries-3rd-gsoap-source-gsoap-stdsoap2.cpp.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Libraries-3rd-gsoap-source-gsoap-stdsoap2.cpp.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Libraries-3rd-gsoap-source-gsoap-stdsoap2.cpp.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,13 @@
+https://sourceforge.net/p/miktex/bugs/2483/
+
+--- Libraries/3rd/gsoap/source/gsoap/stdsoap2.cpp.orig
++++ Libraries/3rd/gsoap/source/gsoap/stdsoap2.cpp
+@@ -5351,7 +5351,7 @@ soap_bind(struct soap *soap, const char *host, int port, int backlog)
+ }
+ #endif
+ #ifdef TCP_FASTOPEN
+- if (!(soap->omode & SOAP_IO_UDP) && setsockopt(soap->master, SOL_TCP, TCP_FASTOPEN, (char*)&set, sizeof(int)))
++ if (!(soap->omode & SOAP_IO_UDP) && setsockopt(soap->master, IPPROTO_TCP, TCP_FASTOPEN, (char*)&set, sizeof(int)))
+ { /* silently ignore */
+ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "setsockopt TCP_FASTOPEN failed in soap_bind()\n"));
+ }
Added: users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-App-CMakeLists.txt.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-App-CMakeLists.txt.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-App-CMakeLists.txt.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,13 @@
+https://sourceforge.net/p/miktex/bugs/2484/
+# doesn't work
+
+--- Libraries/MiKTeX/App/CMakeLists.txt.orig
++++ Libraries/MiKTeX/App/CMakeLists.txt
+@@ -22,6 +22,7 @@ set(MIKTEX_CURRENT_FOLDER "${MIKTEX_IDE_MIKTEX_LIBRARIES_FOLDER}/app")
+ include_directories(BEFORE
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
++ ${CMAKE_CURRENT_SOURCE_DIR}/../UI/include
+ )
+
+ set(public_include_directories
Modified: users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Session-SessionImpl.h.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Session-SessionImpl.h.diff 2016-08-23 09:57:55 UTC (rev 151836)
+++ users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Session-SessionImpl.h.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -1,9 +1,9 @@
---- Libraries/MiKTeX/Core/Session/SessionImpl.h.diff
+--- Libraries/MiKTeX/Core/Session/SessionImpl.h.orig
+++ Libraries/MiKTeX/Core/Session/SessionImpl.h
-@@ -91,6 +91,17 @@ public:
+@@ -89,6 +89,17 @@ inline bool operator< (const LanguageInfo_ & lhs, const LanguageInfo_ & rhs)
}
-
- };
+ return lhs.key < rhs.key;
+ }
+static bool operator< (const LanguageInfo_ & lhs, const LanguageInfo_ & rhs) {
+ if (lhs.key == "english")
+ {
Modified: users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Utils-AutoTraceTime.h.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Utils-AutoTraceTime.h.diff 2016-08-23 09:57:55 UTC (rev 151836)
+++ users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Utils-AutoTraceTime.h.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -1,3 +1,5 @@
+https://sourceforge.net/p/miktex/bugs/2481/
+
--- Libraries/MiKTeX/Core/Utils/AutoTraceTime.h.orig
+++ Libraries/MiKTeX/Core/Utils/AutoTraceTime.h
@@ -43,7 +43,7 @@ public:
Added: users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-KPathSeaEmulation-StdAfx.h.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-KPathSeaEmulation-StdAfx.h.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-KPathSeaEmulation-StdAfx.h.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,13 @@
+https://sourceforge.net/p/miktex/bugs/2480/
+
+--- Libraries/MiKTeX/KPathSeaEmulation/StdAfx.h.orig
++++ Libraries/MiKTeX/KPathSeaEmulation/StdAfx.h
+@@ -23,7 +23,7 @@
+
+ #include <cstdarg>
+ #include <cstdlib>
+-#include <malloc.h>
++#include <malloc/malloc.h>
+ #if defined(MIKTEX_UNIX)
+ #include <sys/time.h>
+ #endif
Added: users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-KPathSeaEmulation-kpsemu.cpp.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-KPathSeaEmulation-kpsemu.cpp.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-KPathSeaEmulation-kpsemu.cpp.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,31 @@
+https://sourceforge.net/p/miktex/patches/10/
+
+--- Libraries/MiKTeX/KPathSeaEmulation/kpsemu.cpp.orig
++++ Libraries/MiKTeX/KPathSeaEmulation/kpsemu.cpp
+@@ -463,6 +463,12 @@ MIKTEXKPSCEEAPI(int) miktex_xfseeko64(FILE * pfile, MIKTEX_INT64 offset, int whe
+ MIKTEX_FATAL_CRT_ERROR_2("fseeko64", "fileName", lpszFileName);
+ }
+ return 0;
++#elif defined(__APPLE__)
++ if (fseeko(pfile, offset, where) != 0)
++ {
++ MIKTEX_FATAL_CRT_ERROR_2("fseeko", "fileName", lpszFileName);
++ }
++ return 0;
+ #else
+ # error Unimplemented: miktex_xfseeko64()
+ #endif
+@@ -505,6 +511,13 @@ MIKTEXKPSCEEAPI(MIKTEX_INT64) miktex_xftello64(FILE * pfile, const char * lpszFi
+ }
+ return pos;
+
++#elif defined(__APPLE__)
++ MIKTEX_INT64 pos = ftello(pfile);
++ if (pos < 0)
++ {
++ MIKTEX_FATAL_CRT_ERROR_2("ftello", "fileName", lpszFileName);
++ }
++ return pos;
+ #else
+ # error Unimplemented: miktex_xftello64
+ #endif
Added: users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Web2CEmulation-StdAfx.h.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Web2CEmulation-StdAfx.h.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Web2CEmulation-StdAfx.h.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,13 @@
+https://sourceforge.net/p/miktex/bugs/2480/
+
+--- Libraries/MiKTeX/Web2CEmulation/StdAfx.h.orig
++++ Libraries/MiKTeX/Web2CEmulation/StdAfx.h
+@@ -22,7 +22,7 @@
+ #pragma once
+
+ #include <cstdlib>
+-#include <malloc.h>
++#include <malloc/malloc.h>
+ #if defined(MIKTEX_UNIX)
+ #include <sys/time.h>
+ #endif
Added: users/mojca/ports/tex/miktex/files/patch-Programs-Converters-tex4ht-source-tex4ht.c.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Programs-Converters-tex4ht-source-tex4ht.c.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Programs-Converters-tex4ht-source-tex4ht.c.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,15 @@
+https://sourceforge.net/p/miktex/bugs/2488/
+
+--- Programs/Converters/tex4ht/source/tex4ht.c.orig
++++ Programs/Converters/tex4ht/source/tex4ht.c
+@@ -3996,8 +3996,8 @@ if( (file = f_open(str, flags)) != NULL ){
+
+
+ str[i] = '\0';
+- return subs? search_file_ext( name, str, flags):
+- FALSE;
++ return (subs ? search_file_ext( name, str, flags):
++ NULL);
+ }
+
+
Added: users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-Setup-miktexsetup-miktexsetup.cpp.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-Setup-miktexsetup-miktexsetup.cpp.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-Setup-miktexsetup-miktexsetup.cpp.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,13 @@
+://sourceforge.net/p/miktex/bugs/2481/
+
+--- Programs/MiKTeX/Setup/miktexsetup/miktexsetup.cpp.orig
++++ Programs/MiKTeX/Setup/miktexsetup/miktexsetup.cpp
+@@ -670,7 +670,7 @@ void Application::Main(int argc, const char ** argv)
+ }
+ else
+ {
+- Error(T_("Unknown/unsupported setup task: %s"), leftovers[0]);
++ Error(T_("Unknown/unsupported setup task: %s"), leftovers[0].c_str());
+ }
+
+ if (optShared)
Added: users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-initexmf-initexmf.cpp.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-initexmf-initexmf.cpp.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-initexmf-initexmf.cpp.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,13 @@
+https://sourceforge.net/p/miktex/bugs/2481/
+
+--- Programs/MiKTeX/initexmf/initexmf.cpp.orig
++++ Programs/MiKTeX/initexmf/initexmf.cpp
+@@ -2739,7 +2739,7 @@ void IniTeXMFApp::MakeMaps(bool force)
+ }
+ if (printOnly)
+ {
+- PrintOnly("mkfntmap %s", arguments.ToString());
++ PrintOnly("mkfntmap %s", arguments.ToString().c_str());
+ }
+ else
+ {
Added: users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-makex-internal.h.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-makex-internal.h.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Programs-MiKTeX-makex-internal.h.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,13 @@
+https://sourceforge.net/p/miktex/bugs/2480/
+
+--- Programs/MiKTeX/makex/internal.h.orig
++++ Programs/MiKTeX/makex/internal.h
+@@ -40,7 +40,7 @@
+ #include <cstdlib>
+ #include <string>
+
+-#include <malloc.h>
++#include <malloc/malloc.h>
+
+ #include <getopt.h>
+
Added: users/mojca/ports/tex/miktex/files/patch-Programs-TeXAndFriends-xetex-xetex.cc.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Programs-TeXAndFriends-xetex-xetex.cc.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Programs-TeXAndFriends-xetex-xetex.cc.diff 2016-08-23 10:34:38 UTC (rev 151837)
@@ -0,0 +1,141 @@
+https://sourceforge.net/p/miktex/bugs/2490/
+
+This patch belongs to the build tree
+
+--- Programs/TeXAndFriends/xetex/xetex.cc.orig
++++ Programs/TeXAndFriends/xetex/xetex.cc
+@@ -3704,7 +3704,7 @@ copynativeglyphinfo (halfword src, halfword dest)
+ {
+ C4P_integer glyphcount;
+ C4P_PROC_ENTRY (69);
+- if (g_mem[ src + (C4P_integer) 5l ].c4p_P2.ptr != (C4P_integer) nullptr ())
++ if (g_mem[ src + (C4P_integer) 5l ].c4p_P2.ptr != nullptr ())
+ {
+ glyphcount = g_mem[ src + (C4P_integer) 4l ].c4p_P2.qqqq.b3;
+ g_mem[ dest + (C4P_integer) 5l ].c4p_P2.ptr = xmallocchararray (glyphcount * (C4P_integer) 10l);
+@@ -5426,7 +5426,7 @@ flushnodelist (halfword p)
+ case 41l:
+ {
+ {
+- if (g_mem[ p + (C4P_integer) 5l ].c4p_P2.ptr != (C4P_integer) nullptr ())
++ if (g_mem[ p + (C4P_integer) 5l ].c4p_P2.ptr != nullptr ())
+ {
+ libcfree (g_mem[ p + (C4P_integer) 5l ].c4p_P2.ptr);
+ g_mem[ p + (C4P_integer) 5l ].c4p_P2.ptr = nullptr ();
+@@ -13673,7 +13673,7 @@ effectivechar (C4P_boolean errp, internalfontnumber f, quarterword c)
+ C4P_integer c4p_result;
+
+ C4P_PROC_ENTRY (185);
+- if ( (! g_xtxligaturepresent) && (g_fontmapping[ f ] != (C4P_integer) nullptr ()) )
++ if ( (! g_xtxligaturepresent) && (g_fontmapping[ f ] != nullptr ()) )
+ c = applytfmfontmapping (g_fontmapping[ f ], c);
+ g_xtxligaturepresent = false;
+ result = c;
+@@ -19457,7 +19457,7 @@ effectivecharinfo (internalfontnumber f, quarterword c)
+ fourquarters c4p_result;
+
+ C4P_PROC_ENTRY (228);
+- if ( (! g_xtxligaturepresent) && (g_fontmapping[ f ] != (C4P_integer) nullptr ()) )
++ if ( (! g_xtxligaturepresent) && (g_fontmapping[ f ] != nullptr ()) )
+ c = applytfmfontmapping (g_fontmapping[ f ], c);
+ g_xtxligaturepresent = false;
+ if (! g_mltexenabledp)
+@@ -19612,7 +19612,7 @@ newnativecharacter (internalfontnumber f, unicodescalar c)
+ halfword c4p_result;
+
+ C4P_PROC_ENTRY (231);
+- if (g_fontmapping[ f ] != (C4P_integer) 0l)
++ if (g_fontmapping[ f ] != 0l)
+ {
+ if (c > (C4P_integer) 65535l)
+ {
+@@ -19882,7 +19882,7 @@ loadnativefont (halfword u, strnumber nom, strnumber aire, scaled s)
+ C4P_PROC_ENTRY (235);
+ c4p_result = 0l;
+ fontengine = findnativefont (g_nameoffile, s);
+- if (fontengine == (C4P_integer) 0l)
++ if (fontengine == 0l)
+ goto c4p_L30;
+ if (s >= (C4P_integer) 0l)
+ actualsize = s;
+@@ -20177,7 +20177,7 @@ getinputnormalizationstate (void)
+ C4P_integer c4p_result;
+
+ C4P_PROC_ENTRY (238);
+- if (g_eqtb == (C4P_integer) nullptr ())
++ if (g_eqtb == nullptr ())
+ c4p_result = 0l;
+ else
+ c4p_result = g_eqtb[ 8938816l ].c4p_P2.c4p_int;
+@@ -22696,7 +22696,7 @@ hlistout (void)
+ do {
+ g_f = g_mem[ p ].c4p_P2.hh.c4p_P1.c4p_P0.b0;
+ g_c = g_mem[ p ].c4p_P2.hh.c4p_P1.c4p_P0.b1;
+- if ( (p != (C4P_integer) g_memtop - (C4P_integer) 12l) && (g_fontmapping[ g_f ] != (C4P_integer) nullptr ()) )
++ if ( (p != (C4P_integer) g_memtop - (C4P_integer) 12l) && (g_fontmapping[ g_f ] != nullptr ()) )
+ g_c = applytfmfontmapping (g_fontmapping[ g_f ], g_c);
+ if (g_f != (C4P_integer) g_dvif)
+ {
+@@ -23111,7 +23111,7 @@ hlistout (void)
+ {
+ if (g_mem[ p ].c4p_P2.hh.c4p_P1.c4p_P0.b1 == (C4P_integer) 41l)
+ {
+- if ( (g_mem[ p + (C4P_integer) 4l ].c4p_P2.qqqq.b2 > (C4P_integer) 0l) || (g_mem[ p + (C4P_integer) 5l ].c4p_P2.ptr != (C4P_integer) nullptr ()) )
++ if ( (g_mem[ p + (C4P_integer) 4l ].c4p_P2.qqqq.b2 > (C4P_integer) 0l) || (g_mem[ p + (C4P_integer) 5l ].c4p_P2.ptr != nullptr ()) )
+ {
+ {
+ g_dvibuf[ g_dviptr ] = 254l;
+@@ -23143,7 +23143,7 @@ hlistout (void)
+ }
+ else
+ {
+- if (g_mem[ p + (C4P_integer) 5l ].c4p_P2.ptr != (C4P_integer) nullptr ())
++ if (g_mem[ p + (C4P_integer) 5l ].c4p_P2.ptr != nullptr ())
+ {
+ {
+ g_dvibuf[ g_dviptr ] = 253l;
+@@ -24390,7 +24390,7 @@ charpw (halfword p, smallnumber side)
+ goto c4p_L10;
+ if ( ( ( (p) != (C4P_integer) - (C4P_integer) 268435455l && (! (p >= (C4P_integer) g_himemmin) ) && (g_mem[ p ].c4p_P2.hh.c4p_P1.c4p_P0.b0 == (C4P_integer) 8l) && ( (g_mem[ p ].c4p_P2.hh.c4p_P1.c4p_P0.b1 == (C4P_integer) 40l) || (g_mem[ p ].c4p_P2.hh.c4p_P1.c4p_P0.b1 == (C4P_integer) 41l) ) ) ) )
+ {
+- if (g_mem[ p + (C4P_integer) 5l ].c4p_P2.ptr != (C4P_integer) nullptr ())
++ if (g_mem[ p + (C4P_integer) 5l ].c4p_P2.ptr != nullptr ())
+ {
+ f = g_mem[ p + (C4P_integer) 4l ].c4p_P2.qqqq.b1;
+ c4p_result = roundxnoverd (g_fontinfo[ 6l + (C4P_integer) g_parambase[ f ] ].c4p_P2.c4p_int, getnativewordcp (p, side), 1000l);
+@@ -27615,7 +27615,7 @@ makemathaccent (halfword q)
+ if ( (w2 < (C4P_integer) 0l) )
+ {
+ otassemblyptr = getotassemblyptr (f, c, 1l);
+- if (otassemblyptr != (C4P_integer) nullptr ())
++ if (otassemblyptr != nullptr ())
+ {
+ freenode (p, 5l);
+ p = buildopentypeassembly (f, otassemblyptr, w, 1l);
+@@ -27913,7 +27913,7 @@ makeop (halfword q)
+ if ( (h2 < (C4P_integer) 0l) )
+ {
+ otassemblyptr = getotassemblyptr (g_curf, c, 0l);
+- if (otassemblyptr != (C4P_integer) nullptr ())
++ if (otassemblyptr != nullptr ())
+ {
+ freenode (p, 5l);
+ p = buildopentypeassembly (g_curf, otassemblyptr, h1, 0l);
+@@ -43101,7 +43101,7 @@ storefmtfile (void)
+ printnl (66673l);
+ printesc (g_hash[ 2243238l + (C4P_integer) k ].rh);
+ printchar (61l);
+- if ( ( (g_fontarea[ k ] == (C4P_integer) 65535l) || (g_fontarea[ k ] == (C4P_integer) 65534l) ) || (g_fontmapping[ k ] != (C4P_integer) 0l) )
++ if ( ( (g_fontarea[ k ] == (C4P_integer) 65535l) || (g_fontarea[ k ] == (C4P_integer) 65534l) ) || (g_fontmapping[ k ] != 0l) )
+ {
+ printfilename (g_fontname[ k ], 65622l, 65622l);
+ {
+@@ -45394,7 +45394,7 @@ maincontrol (void)
+ }
+
+ c4p_L72:
+- if ( (g_fontmapping[ g_mainf ] != (C4P_integer) 0l) )
++ if ( (g_fontmapping[ g_mainf ] != 0l) )
+ {
+ g_maink = applymapping (g_fontmapping[ g_mainf ], g_nativetext, g_nativelen);
+ g_nativelen = 0l;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160823/51bbd0b3/attachment-0001.html>
More information about the macports-changes
mailing list