<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/1942e89b60530da1da08591ac90a80e1f5ea01ad">https://github.com/macports/macports-ports/commit/1942e89b60530da1da08591ac90a80e1f5ea01ad</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 1942e89b605 eiskaltdcpp: new port, DC++ client in Qt4
</span>1942e89b605 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 1942e89b60530da1da08591ac90a80e1f5ea01ad
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sat May 27 02:21:21 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> eiskaltdcpp: new port, DC++ client in Qt4
</span>---
net/eiskaltdcpp/Portfile | 85 +++++++++++++++++++++++++++++
net/eiskaltdcpp/files/patch-CMakeLists.diff | 55 +++++++++++++++++++
net/eiskaltdcpp/files/patch-mac-qt.diff | 35 ++++++++++++
3 files changed, 175 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/eiskaltdcpp/Portfile b/net/eiskaltdcpp/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..cd219231dd2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/eiskaltdcpp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,85 @@
</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;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup openssl 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup qt4 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup eiskaltdcpp eiskaltdcpp 9cf2e0970ed62397b366e488fc2642a0b5cdcb56
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2023.04.29
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories net www
</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;'>+description Direct Connect protocols file sharing
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description EiskaltDC++ is a cross-platform program that uses the Direct Connect (DC aka NMDC) and Advanced Direct Connect (ADC) protocols. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ It is compatible with DC++, AirDC++, FlylinkDC++ and other DC clients. EiskaltDC++ also interoperates with all common DC hub software.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 59b9fd1ee58fba95f1ab7138af2a36c32151ba0e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 b61082c76d217b567d5b4259073a4128550d814e92ff69de4b7add82c6dbd203 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 5904219
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append port:gettext \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:git
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:bzip2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gettext-runtime \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libiconv \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libidn2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libnotify \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:miniupnpc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pango \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:sqlite3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/eiskaltdcpp/eiskaltdcpp/issues/501
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-CMakeLists.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-mac-qt.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DBUILD_STATIC=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCHECK_GTK_DEPRECATED=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDBUS_NOTIFY=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DENABLE_STACKTRACE=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DFREE_SPACE_BAR_C=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DGETTEXT_SEARCH_PATH=${prefix}/bin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DHAIKU_PKG=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DINSTALL_RUNTIME_PATH=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DJSONRPC_DAEMON=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLOCAL_ASPELL_DATA=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLOCAL_JSONCPP=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLUA_SCRIPT=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DNO_UI_DAEMON=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DPERL_REGEX=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_ASPELL=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_CCACHE=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_CLI_JSONRPC=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_CLI_XMLRPC=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_GTK=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_GTK3=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_IDN2=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_JS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_LIBCANBERRA=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_LIBGNOME2=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_LIBNOTIFY=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_MINIUPNP=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_PROGRESS_BARS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_QT=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_QT5=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_QT_QML=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_QT_SQLITE=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DUSE_XATTR=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_DEV_FILES=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_DHT=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_EMOTICONS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_EXAMPLES=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_LUASCRIPTS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DWITH_SOUNDS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DXMLRPC_DAEMON=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2014
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${applications_dir}/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/${name}.app ${destroot}${applications_dir}/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/eiskaltdcpp-daemon.app ${destroot}${applications_dir}/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/eiskaltdcpp/files/patch-CMakeLists.diff b/net/eiskaltdcpp/files/patch-CMakeLists.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4912c48a7b2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/eiskaltdcpp/files/patch-CMakeLists.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,55 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig 2023-04-29 19:01:20.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2023-05-25 02:59:02.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7,7 +7,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set (SO_VERSION "2.4") # Library version (incremented after changes in API or ABI)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (WIN32 OR APPLE OR HAIKU)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set (PROJECT_NAME_GLOBAL "${PROJECT_NAME}") # Package name is the same as project name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set (PROJECT_NAME_GLOBAL "eiskaltdcpp") # Package name is the same as project name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set (PROJECT_NAME_GLOBAL "eiskaltdcpp") # Simplifies packaging in GNU/Linux distros
</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;'>+--- eiskaltdcpp-qt/CMakeLists.txt.orig 2023-04-29 19:01:20.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ eiskaltdcpp-qt/CMakeLists.txt 2023-05-25 02:55:07.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -187,7 +187,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ARGS "${TS}" -qm "${QM}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endforeach ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if (WIN32 OR APPLE OR INSTALL_QT_TRANSLATIONS OR BUILD_STATIC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if (WIN32 OR INSTALL_QT_TRANSLATIONS OR BUILD_STATIC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Qt translations
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ get_target_property (QtCore_location Qt5::Core LOCATION)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ get_filename_component (QtCore_DIR "${QtCore_location}" PATH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -548,29 +548,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (USE_QT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- install (DIRECTORY ${QT_LIBRARY_DIR}/QtGui.framework/Resources/qt_menu.nib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install (DIRECTORY ${QT_LIBRARY_DIR}/Resources/qt_menu.nib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DESTINATION ${PROJECT_NAME_GLOBAL}.app/Contents/Resources)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- install (CODE "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- file(WRITE \"\${CMAKE_INSTALL_PREFIX}/${qtconf_dest_dir}/qt.conf\" \"\")")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- install (CODE "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- file(GLOB_RECURSE QTPLUGINS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- \"\${CMAKE_INSTALL_PREFIX}/${plugin_dest_dir}/plugins/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- include(BundleUtilities)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- elseif (USE_QT5)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (${_qt5Core_install_prefix} STREQUAL "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message(WARNING "Warning! \"_qt5Core_install_prefix\" is not set, macdeployqt found in PATH will be used")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set (MACDEPLOYQT "macdeployqt")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- else (${_qt5Core_install_prefix} STREQUAL "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set (MACDEPLOYQT "${_qt5Core_install_prefix}/bin/macdeployqt")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endif (${_qt5Core_install_prefix} STREQUAL "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- install (CODE "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- execute_process(COMMAND ${MACDEPLOYQT} ${PROJECT_NAME_GLOBAL}.app -verbose=2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WORKING_DIRECTORY \${CMAKE_INSTALL_PREFIX})")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- endif (USE_QT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set (CPACK_BINARY_DRAGNDROP ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ endif ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif (APPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-include(CPack)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/eiskaltdcpp/files/patch-mac-qt.diff b/net/eiskaltdcpp/files/patch-mac-qt.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9d33c1fc641
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/eiskaltdcpp/files/patch-mac-qt.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,35 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- eiskaltdcpp-qt/src/EiskaltApp_mac.h 2023-04-29 19:01:20.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ eiskaltdcpp-qt/src/EiskaltApp_mac.h.orig 2023-05-25 03:43:54.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -28,7 +28,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void clickedOnDock();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- EiskaltEventFilter(): counter(0), has_activity(true), prevAppState(Qt::ApplicationHidden) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ EiskaltEventFilter(): counter(0), has_activity(true) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ timer.setInterval(60000);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ connect(&timer, SIGNAL(timeout()), this, SLOT(tick()));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -54,15 +54,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</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;'>+- case QEvent::ApplicationStateChange:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- // https://stackoverflow.com/questions/15143369/qt-on-os-x-how-to-detect-clicking-the-app-dock-icon/46488514#46488514
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QApplicationStateChangeEvent *ev = static_cast<QApplicationStateChangeEvent*>(event);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (prevAppState == Qt::ApplicationActive && ev->applicationState() == Qt::ApplicationActive) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- emit clickedOnDock();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- prevAppState = ev->applicationState();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ has_activity = false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -98,7 +89,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QTimer timer;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int counter;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bool has_activity;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- Qt::ApplicationState prevAppState;
</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;'>+ class EiskaltApp: public QtSingleCoreApplication{
</span></pre><pre style='margin:0'>
</pre>