<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/130a632cc626f8563560ffa92fdfc4e5c17df2d4">https://github.com/macports/macports-ports/commit/130a632cc626f8563560ffa92fdfc4e5c17df2d4</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 130a632cc62 EqualX: new port in tex
</span>130a632cc62 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 130a632cc626f8563560ffa92fdfc4e5c17df2d4
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Tue Jan 2 02:36:03 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> EqualX: new port in tex
</span>---
tex/EqualX/Portfile | 55 +++++++++++++++++++++++
tex/EqualX/files/patch-DialogPreferences.cpp.diff | 10 +++++
tex/EqualX/files/patch-MainWindow.cpp.diff | 38 ++++++++++++++++
tex/EqualX/files/patch-defines.h.diff | 31 +++++++++++++
tex/EqualX/files/patch-equalx.pro.diff | 13 ++++++
5 files changed, 147 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/tex/EqualX/Portfile b/tex/EqualX/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..11a2d999487
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tex/EqualX/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,55 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name EqualX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.7.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://equalx.sourceforge.io
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites sourceforge:project/equalx/${name}-0.7/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname equalx-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 03f05c0c0e067e5ebc6dd7a11033c5f077da660b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 7f62e580206bc0e8e83a39bf4161bf6a6b0cd268507d5e1ad0781eeba1191f8b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 275318
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qmake 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ If upon launch ${name} does not recognize location of external binaries it needs,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ please go to Settings:Advanced and click Restore Defaults.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qmake5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories tex science
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description ${name} Equation Editor
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${name} is just a graphical interface to latex and a bunch of conversion programs \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for aiding you write equations faster in latex and export them to other applications.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:exempi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_run-append port:ghostscript \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:poppler \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:texlive-latex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-defines.h.diff patch-DialogPreferences.cpp.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-equalx.pro.diff patch-MainWindow.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s,@PREFIX@,${prefix},g" ${worksrcpath}/equalx.pro ${worksrcpath}/include/defines.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/${name}.app ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set resdir ${prefix}/share/${name}/resources
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${resdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/resources/symbols ${destroot}${resdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 -W ${worksrcpath} LICENSE README ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/tex/EqualX/files/patch-DialogPreferences.cpp.diff b/tex/EqualX/files/patch-DialogPreferences.cpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e265c9b24da
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tex/EqualX/files/patch-DialogPreferences.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/DialogPreferences.cpp.orig 2014-03-27 01:03:41
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/DialogPreferences.cpp 2024-01-02 02:25:08
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19,6 +19,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QButtonGroup>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QFileDialog>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QAction>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "defines.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "DialogPreferences.h"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/tex/EqualX/files/patch-MainWindow.cpp.diff b/tex/EqualX/files/patch-MainWindow.cpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ec2ada1d631
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tex/EqualX/files/patch-MainWindow.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,38 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/MainWindow.cpp.orig 2014-03-27 01:03:41.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/MainWindow.cpp 2024-01-02 01:09:22.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1181,35 +1181,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(reqsAreMeet)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- // search MikTex in Path environment variable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QString pathEnv(qgetenv("Path"));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QStringList pathsList = pathEnv.split(";");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QString MikTexPath;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- foreach(QString path, pathsList){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(path.contains("MikTex", Qt::CaseInsensitive)){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- MikTexPath=path;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- qDebug() << "Found Miktex at: " << MikTexPath;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- pdfLatexPath = QDir::toNativeSeparators(MikTexPath+"pdflatex.exe");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- gsPath = QDir::toNativeSeparators(MikTexPath+"mgs.exe");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- //pdfCairoPath = QDir::toNativeSeparators("pdftocairo.exe");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- settings.setValue("pdflatex", pdfLatexPath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- settings.setValue("pdftocairo", pdfCairoPath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- settings.setValue("gs", gsPath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- settings.endGroup();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- checkPdfLatex = QFile::exists(pdfLatexPath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- checkGS = QFile::exists(gsPath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- checkPdfCairo = QFile::exists(pdfCairoPath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(!(checkPdfLatex && checkPdfCairo && checkGS)){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QMessageBox::critical(this, tr("Error - EqualX"), reqMessage, QMessageBox::Ok);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/tex/EqualX/files/patch-defines.h.diff b/tex/EqualX/files/patch-defines.h.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..885bf30f617
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tex/EqualX/files/patch-defines.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/defines.h.orig 2014-03-27 01:14:15.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/defines.h 2024-01-02 01:10:35.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,7 +23,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define APP_FULL_NAME "EqualX - The LaTeX Equation Editor"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define APP_NAME "EqualX"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define APP_VERSION "0.7.1"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define APP_SITE "http://equalx.sourceforge.net/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define APP_SITE "https://equalx.sourceforge.net/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define AUTHOR_NAME "Mihai Niculescu"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define AUTHOR_EMAIL "q.quark@gmail.com"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -72,15 +72,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // LATEX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef UNIX_PLATFORM
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define DEFAULT_PDFLATEX "/usr/bin/pdflatex"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define DEFAULT_PDFLATEX "@PREFIX@/bin/pdflatex"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define DEFAULT_PDFLATEX_ARGS "-interaction=nonstopmode"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define DEFAULT_PDFCAIRO "/usr/bin/pdftocairo"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define DEFAULT_PDFCAIRO "@PREFIX@/bin/pdftocairo"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define DEFAULT_PDFCAIRO_ARGS ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define DEFAULT_GS "/usr/bin/gs"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define DEFAULT_GS "@PREFIX@/bin/gs"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define DEFAULT_GS_ARGS ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //where to look for symbols.ini and the actual symbols
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define SYMBOLS_PATH "/usr/share/equalx/resources/symbols"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define SYMBOLS_PATH "@PREFIX@/share/EqualX/resources/symbols"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef WIN_PLATFORM
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/tex/EqualX/files/patch-equalx.pro.diff b/tex/EqualX/files/patch-equalx.pro.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4f426b0fec9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tex/EqualX/files/patch-equalx.pro.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- equalx.pro.orig 2014-03-27 01:03:41.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ equalx.pro 2024-01-02 00:15:23.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -12,8 +12,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DEFINES += UNIX_PLATFORM
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CONFIG+= link_pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PKGCONFIG += exempi-2.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-INCLUDEPATH+=/usr/include/exempi-2.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBS += -L/usr/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++INCLUDEPATH+=@PREFIX@/include/exempi-2.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++LIBS += -L@PREFIX@/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OTHER_FILES+=equalx.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SOURCES = src/File.cpp
</span></pre><pre style='margin:0'>
</pre>