[148821] users/mojca/ports
mojca at macports.org
mojca at macports.org
Thu May 19 08:57:37 PDT 2016
Revision: 148821
https://trac.macports.org/changeset/148821
Author: mojca at macports.org
Date: 2016-05-19 08:57:37 -0700 (Thu, 19 May 2016)
Log Message:
-----------
mojca/miktex: experimental package
Added Paths:
-----------
users/mojca/ports/tex/
users/mojca/ports/tex/miktex/
users/mojca/ports/tex/miktex/Portfile
users/mojca/ports/tex/miktex/files/
users/mojca/ports/tex/miktex/files/patch-BuildUtilities-c4p-gram.y.diff
users/mojca/ports/tex/miktex/files/patch-CMakeLists.txt.diff
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: users/mojca/ports/tex/miktex/Portfile
===================================================================
--- users/mojca/ports/tex/miktex/Portfile (rev 0)
+++ users/mojca/ports/tex/miktex/Portfile 2016-05-19 15:57:37 UTC (rev 148821)
@@ -0,0 +1,95 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup cmake 1.0
+PortGroup compiler_blacklist_versions 1.0
+
+name miktex
+version 2.9-2016-05-18
+categories tex
+platforms darwin
+license unknown
+maintainers mojca openmaintainer
+
+description miktex-tools — experimental TeX additions
+long_description ${description}
+
+homepage http://miktex.org/
+
+master_sites http://mirrors.ctan.org/systems/win32/miktex/source/
+use_xz yes
+
+checksums rmd160 e14030b6d16c8032a80ecc86c12eb7eaf6573c7f \
+ sha256 9b91e8c2abf6a1e8288d9ec71572855c6aaf1970eca1fafb9416368a1c943c12
+
+cmake.out_of_source yes
+
+compiler.blacklist-append *gcc* {clang < 500} macports-clang-3.3 macports-clang-3.4
+compiler.fallback-append macports-clang-3.7 macports-clang-3.6 macports-clang-3.5
+
+# some version of python is needed as well (fix!)
+depends_build-append \
+ port:bison \
+ port:dos2unix \
+ port:flex \
+ port:ImageMagick \
+ port:pandoc \
+ port:pkgconfig \
+ port:python27 \
+ port:xsltproc
+depends_lib-append port:apr \
+ port:apr-util \
+ port:botan \
+ port:bzip2 \
+ port:cairo \
+ port:curl \
+ port:expat \
+ port:fontconfig \
+ port:freetype \
+ port:gd2 \
+ port:gmp \
+ port:graphite2 \
+ port:harfbuzz-icu \
+ port:hunspell \
+ port:icu \
+ port:jpeg \
+ port:log4cxx \
+ port:libzzip \
+ port:libpng \
+ port:libpixman \
+ port:log4cxx \
+ port:mpfr \
+ port:poppler \
+ port:popt \
+ port:potrace \
+ port:qt5-qtscript \
+ port:uriparser \
+ port:xz \
+ port:zlib
+
+# 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
+
+configure.args-append \
+ -DWITH_UI_QT=OFF \
+ -DHUNSPELL_LIBRARY=${prefix}/lib/libhunspell-1.3.0.dylib \
+ -DUSE_SYSTEM_MSPACK=OFF
+
+# C++ libraries:
+# -DUSE_SYSTEM_BOTAN=OFF \
+# -DUSE_SYSTEM_POPPLER=OFF \
+# -DUSE_SYSTEM_LOG4CXX=OFF \
+# -DUSE_SYSTEM_HARFBUZZ_ICU=OFF \
+# -DUSE_SYSTEM_HUNSPELL=OFF
+
+platform darwin {
+ if { ${configure.cxx_stdlib} ne "libc++" } {
+ configure.cxx_stdlib libc++
+ depends_lib-append port:libcxx
+ }
+}
Property changes on: users/mojca/ports/tex/miktex/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/mojca/ports/tex/miktex/files/patch-BuildUtilities-c4p-gram.y.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-BuildUtilities-c4p-gram.y.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-BuildUtilities-c4p-gram.y.diff 2016-05-19 15:57:37 UTC (rev 148821)
@@ -0,0 +1,11 @@
+--- 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"
+
Added: users/mojca/ports/tex/miktex/files/patch-CMakeLists.txt.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-CMakeLists.txt.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-CMakeLists.txt.diff 2016-05-19 15:57:37 UTC (rev 148821)
@@ -0,0 +1,19 @@
+--- 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-MiKTeX-Core-Session-SessionImpl.h.diff
===================================================================
--- users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Session-SessionImpl.h.diff (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Session-SessionImpl.h.diff 2016-05-19 15:57:37 UTC (rev 148821)
@@ -0,0 +1,20 @@
+--- Libraries/MiKTeX/Core/Session/SessionImpl.h.diff
++++ Libraries/MiKTeX/Core/Session/SessionImpl.h
+@@ -91,6 +91,17 @@ public:
+ }
+
+ };
++static bool operator< (const LanguageInfo_ & lhs, const LanguageInfo_ & rhs) {
++ if (lhs.key == "english")
++ {
++ return true;
++ }
++ if (rhs.key == "english")
++ {
++ return false;
++ }
++ return lhs.key < rhs.key;
++}
+
+ struct InternalFileTypeInfo : public MiKTeX::Core::FileTypeInfo
+ {
Added: 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 (rev 0)
+++ users/mojca/ports/tex/miktex/files/patch-Libraries-MiKTeX-Core-Utils-AutoTraceTime.h.diff 2016-05-19 15:57:37 UTC (rev 148821)
@@ -0,0 +1,11 @@
+--- Libraries/MiKTeX/Core/Utils/AutoTraceTime.h.orig
++++ Libraries/MiKTeX/Core/Utils/AutoTraceTime.h
+@@ -43,7 +43,7 @@ public:
+ {
+ if (SessionImpl::GetSession()->trace_time->IsEnabled())
+ {
+- SessionImpl::GetSession()->trace_time->WriteFormattedLine("core", "%s %s %s clock ticks", str1.c_str(), str2.c_str(), std::to_string(clock() - start));
++ SessionImpl::GetSession()->trace_time->WriteFormattedLine("core", "%s %s %s clock ticks", str1.c_str(), str2.c_str(), std::to_string(clock() - start).c_str());
+ }
+ }
+ catch (const std::exception &)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160519/1bb35b05/attachment.html>
More information about the macports-changes
mailing list