> Hello ports,
>
> The attached diff updates devel/poedit to the latest release. The
> changelog for this version is:
>
> 1. Crowdin integration was greatly improved and now supports editing of
> any kind of localization: files from Crowdin projects, not just POs.
> 2. Improvements to editor user interface.
> 3. [macOS] Fixes to light/dark mode switching.
>
> 1) and 3) does not affects this ports, as crowdin integration is
> disabled (we miss a port for C++ rest), but the 2) is interesting, since
> I'm finally able to read the "Notes for translators".
>
> To successfully build without the C++ rest library the added patch is
> necessary. Upstream already half-fixed it, see github pr 653[0].
>
> Cheers!
>
> [0]: https://github.com/vslavik/poedit/pull/653
ping :)
Upstream committed also the other half of the patch. Diff reattached
for convenience.
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/poedit/Makefile,v
retrieving revision 1.32
diff -u -p -r1.32 Makefile
--- Makefile 5 Jul 2020 09:30:52 -0000 1.32
+++ Makefile 10 Aug 2020 16:58:39 -0000
@@ -2,7 +2,7 @@
COMMENT= cross-platform gettext catalogs (PO-files) editor
-V= 2.3.1
+V= 2.4
DISTNAME= poedit-${V}
CATEGORIES= devel
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/poedit/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo 5 Jul 2020 09:30:52 -0000 1.5
+++ distinfo 10 Aug 2020 16:58:39 -0000
@@ -1,2 +1,2 @@
-SHA256 (poedit-2.3.1.tar.gz) = oDFcpSqQi56gpuQ46mDOHpLZjB9Hf+1Y0LTmF+Ua/sQ=
-SIZE (poedit-2.3.1.tar.gz) = 2891956
+SHA256 (poedit-2.4.tar.gz) = smmyOWHdxPWOQdTc70UVs43U9Gf62my8MM/uM0a/jNc=
+SIZE (poedit-2.4.tar.gz) = 2905290
Index: patches/patch-src_crowdin_gui_h
===================================================================
RCS file: patches/patch-src_crowdin_gui_h
diff -N patches/patch-src_crowdin_gui_h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_crowdin_gui_h 10 Aug 2020 16:58:39 -0000
@@ -0,0 +1,32 @@
+$OpenBSD$
+
+Fix compilation if !HAVE_HTTP_CLIENT. See github pr #653
+
+Index: src/crowdin_gui.h
+--- src/crowdin_gui.h.orig
++++ src/crowdin_gui.h
+@@ -26,9 +26,10 @@
+ #ifndef Poedit_crowdin_gui_h
+ #define Poedit_crowdin_gui_h
+
++#include "catalog.h"
++
+ #ifdef HAVE_HTTP_CLIENT
+
+-#include "catalog.h"
+ #include "cloud_sync.h"
+ #include "customcontrols.h"
+
+@@ -120,6 +121,12 @@ void CrowdinOpenFile(wxWindow *parent, std::function<v
+ */
+ void CrowdinSyncFile(wxWindow *parent, std::shared_ptr<Catalog> catalog,
+ std::function<void(std::shared_ptr<Catalog>)> onDone);
++
++#else // !HAVE_HTTP_CLIENT
++
++// convenience stubs to avoid additional checks all over other code:
++inline bool CanSyncWithCrowdin(CatalogPtr) { return false; }
++inline bool ShouldSyncToCrowdinAutomatically(CatalogPtr) { return false; }
+
+ #endif // HAVE_HTTP_CLIENT
+