Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] codelite: update to 17.0.0.
@ 2024-01-10 15:03 Calandracas606
  2024-01-10 15:11 ` [PR REVIEW] " Calandracas606
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Calandracas606 @ 2024-01-10 15:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]

There is a new pull request by Calandracas606 against master on the void-packages repository

https://github.com/Calandracas606/void-packages codelite-17.0.0
https://github.com/void-linux/void-packages/pull/48154

codelite: update to 17.0.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-glibc
  - aarch64-musl  (cross)
  - armv7l (cross)
  - armv6l-musl (cross)



A patch file from https://github.com/void-linux/void-packages/pull/48154.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-codelite-17.0.0-48154.patch --]
[-- Type: text/x-diff, Size: 11518 bytes --]

From 0f2589bb1c385ce5e3c0b47413e0aeb56540ba67 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Wed, 10 Jan 2024 10:02:13 -0500
Subject: [PATCH] codelite: update to 17.0.0.

---
 srcpkgs/codelite/patches/ctags-cross.patch   |  19 +++
 srcpkgs/codelite/patches/install-ctags.patch |  11 --
 srcpkgs/codelite/patches/wx-master.patch     |  32 +++++
 srcpkgs/codelite/patches/wx32.patch          | 131 -------------------
 srcpkgs/codelite/template                    |  17 +--
 5 files changed, 55 insertions(+), 155 deletions(-)
 create mode 100644 srcpkgs/codelite/patches/ctags-cross.patch
 delete mode 100644 srcpkgs/codelite/patches/install-ctags.patch
 create mode 100644 srcpkgs/codelite/patches/wx-master.patch
 delete mode 100644 srcpkgs/codelite/patches/wx32.patch

diff --git a/srcpkgs/codelite/patches/ctags-cross.patch b/srcpkgs/codelite/patches/ctags-cross.patch
new file mode 100644
index 0000000000000..9183d600a6444
--- /dev/null
+++ b/srcpkgs/codelite/patches/ctags-cross.patch
@@ -0,0 +1,19 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c88083fd1..ee251c58f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -179,14 +179,6 @@ else(APPLE)
+     set(WX_COMPONENTS "std aui propgrid stc ribbon richtext")
+ endif()
+ 
+-if(UNIX)
+-    find_path(CTAGS_SUBMODULE CMakeLists.txt PATHS ${CMAKE_SOURCE_DIR}/ctags/)
+-    if(NOT CTAGS_SUBMODULE)
+-        message(STATUS "Could not locate `${CMAKE_SOURCE_DIR}/ctags/CMakeLists.txt` file")
+-        message(FATAL_ERROR "Please make sure you have run `git submodule update --init`")
+-    endif()
+-endif()
+-
+ if(WITH_WXPATH)
+     set(ENV{PATH} ${WITH_WXPATH}:$ENV{PATH})
+ endif()
diff --git a/srcpkgs/codelite/patches/install-ctags.patch b/srcpkgs/codelite/patches/install-ctags.patch
deleted file mode 100644
index 8ef1746225e10..0000000000000
--- a/srcpkgs/codelite/patches/install-ctags.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -744,3 +744,8 @@
-     ## Scan for user plugins
-     CL_SCAN_FOR_PLUGINS()
- endif() # NOT WXC_APP
-+
-+if (UNIX)
-+	set_target_properties(ctags PROPERTIES OUTPUT_NAME "codelite-ctags")
-+	install(TARGETS ctags DESTINATION ${CL_PREFIX}/bin PERMISSIONS ${EXE_PERM})
-+endif()
diff --git a/srcpkgs/codelite/patches/wx-master.patch b/srcpkgs/codelite/patches/wx-master.patch
new file mode 100644
index 0000000000000..151411cc8770f
--- /dev/null
+++ b/srcpkgs/codelite/patches/wx-master.patch
@@ -0,0 +1,32 @@
+From c5c975afa30c958b87399255abf13e653138a697 Mon Sep 17 00:00:00 2001
+From: Eran Ifrah <eran@codelite.org>
+Date: Tue, 21 Mar 2023 01:37:47 +0200
+Subject: [PATCH] fixed build against latest wx-master
+
+---
+ LiteEditor/editorsettingsdockingwidows.cpp     | 4 ++--
+ codelitephp/php-plugin/php_open_resource_dlg.h | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/LiteEditor/editorsettingsdockingwidows.cpp b/LiteEditor/editorsettingsdockingwidows.cpp
+index d14341863e..973f194a39 100644
+--- a/LiteEditor/editorsettingsdockingwidows.cpp
++++ b/LiteEditor/editorsettingsdockingwidows.cpp
+@@ -59,7 +59,7 @@ EditorSettingsDockingWindows::EditorSettingsDockingWindows(wxWindow* parent, Opt
+     std::unordered_map<wxString, wxDirection> orientation_map = { { "UP", wxUP }, { "DOWN", wxDOWN } };
+     std::unordered_map<int, wxString> orientation_map_reverse = { { wxUP, "UP" }, { wxDOWN, "DOWN" } };
+ 
+-    AddProperty(_("Workspace tabs orientation"), { "UP", "DOWN" },
++    AddProperty(_("Workspace tabs orientation"), std::vector<wxString>{ "UP", "DOWN" },
+                 orientation_map_reverse[m_options->GetWorkspaceTabsDirection()],
+                 [this, orientation_map](const wxString&, const wxAny& value) mutable {
+                     wxString str_value;
+@@ -67,7 +67,7 @@ EditorSettingsDockingWindows::EditorSettingsDockingWindows(wxWindow* parent, Opt
+                         m_options->SetWorkspaceTabsDirection(orientation_map[str_value]);
+                     }
+                 });
+-    AddProperty(_("Output tabs orientation"), { "UP", "DOWN" },
++    AddProperty(_("Output tabs orientation"), std::vector<wxString>{ "UP", "DOWN" },
+                 orientation_map_reverse[m_options->GetOutputTabsDirection()],
+                 [this, orientation_map](const wxString&, const wxAny& value) mutable {
+                     wxString str_value;
diff --git a/srcpkgs/codelite/patches/wx32.patch b/srcpkgs/codelite/patches/wx32.patch
deleted file mode 100644
index f5535ebaf1b3b..0000000000000
--- a/srcpkgs/codelite/patches/wx32.patch
+++ /dev/null
@@ -1,131 +0,0 @@
-From 427af358d41deb00a4628e5b39c63a929cef894a Mon Sep 17 00:00:00 2001
-From: Eran Ifrah <eran@codelite.org>
-Date: Fri, 10 Jun 2022 10:15:52 +0300
-Subject: [PATCH] macos: hunspell: use the library from brew fixed build
- against wx3.1.7 temporarly: disable building LLDB on macos
-
----
- CMakeLists.txt                               |   5 +-
- SpellChecker/CMakeLists.txt                  |  27 +-
- sdk/hunspell/include/affentry.hxx            | 144 -----------
- sdk/hunspell/include/affixmgr.hxx            | 252 -------------------
- sdk/hunspell/include/atypes.hxx              | 107 --------
- sdk/hunspell/include/baseaffix.hxx           |  32 ---
- sdk/hunspell/include/csutil.hxx              | 223 ----------------
- sdk/hunspell/include/dictmgr.hxx             |  39 ---
- sdk/hunspell/include/filemgr.hxx             |  28 ---
- sdk/hunspell/include/hashmgr.hxx             |  69 -----
- sdk/hunspell/include/htypes.hxx              |  32 ---
- sdk/hunspell/include/hunspell.hxx            | 184 --------------
- sdk/hunspell/include/hunzip.hxx              |  47 ----
- sdk/hunspell/include/langnum.hxx             |  38 ---
- sdk/hunspell/include/phonet.hxx              |  52 ----
- sdk/hunspell/include/replist.hxx             |  30 ---
- sdk/hunspell/include/suggestmgr.hxx          | 115 ---------
- sdk/hunspell/include/w_char.hxx              |  21 --
- sdk/hunspell/lib/osx/libhunspell-1.3.0.dylib | Bin 363876 -> 0 bytes
- wxcrafter/myxh_propgrid.cpp                  |  32 ++-
- 20 files changed, 36 insertions(+), 1441 deletions(-)
- delete mode 100644 sdk/hunspell/include/affentry.hxx
- delete mode 100644 sdk/hunspell/include/affixmgr.hxx
- delete mode 100644 sdk/hunspell/include/atypes.hxx
- delete mode 100644 sdk/hunspell/include/baseaffix.hxx
- delete mode 100644 sdk/hunspell/include/csutil.hxx
- delete mode 100644 sdk/hunspell/include/dictmgr.hxx
- delete mode 100644 sdk/hunspell/include/filemgr.hxx
- delete mode 100644 sdk/hunspell/include/hashmgr.hxx
- delete mode 100644 sdk/hunspell/include/htypes.hxx
- delete mode 100644 sdk/hunspell/include/hunspell.hxx
- delete mode 100644 sdk/hunspell/include/hunzip.hxx
- delete mode 100644 sdk/hunspell/include/langnum.hxx
- delete mode 100644 sdk/hunspell/include/phonet.hxx
- delete mode 100644 sdk/hunspell/include/replist.hxx
- delete mode 100644 sdk/hunspell/include/suggestmgr.hxx
- delete mode 100644 sdk/hunspell/include/w_char.hxx
- delete mode 100755 sdk/hunspell/lib/osx/libhunspell-1.3.0.dylib
-
-diff --git a/wxcrafter/myxh_propgrid.cpp b/wxcrafter/myxh_propgrid.cpp
-index 974bc62f0..3fcb3845d 100644
---- a/wxcrafter/myxh_propgrid.cpp
-+++ b/wxcrafter/myxh_propgrid.cpp
-@@ -1,4 +1,5 @@
- #include "myxh_propgrid.h"
-+
- #include <wx/datetime.h>
- #include <wx/log.h>
- #include <wx/propgrid/advprops.h>
-@@ -48,10 +49,14 @@ wxObject* MyWxPropGridXmlHandler::DoCreateResource()
- 
-         // add the splitter property after the children were added
-         int splitterLeft = GetBool("splitterleft");
--        if(splitterLeft) { m_pgmgr->GetPage(0)->SetSplitterLeft(); }
-+        if(splitterLeft) {
-+            m_pgmgr->SetSplitterLeft();
-+        }
- 
-         int splitterPos = GetLong("splitterpos", wxNOT_FOUND);
--        if(splitterPos != wxNOT_FOUND) { m_pgmgr->GetPage(0)->SetSplitterPosition(splitterPos); }
-+        if(splitterPos != wxNOT_FOUND) {
-+            m_pgmgr->GetPage(0)->SetSplitterPosition(splitterPos);
-+        }
- 
-         m_isInside = false;
-         return m_pgmgr;
-@@ -67,7 +72,9 @@ bool MyWxPropGridXmlHandler::CanHandle(wxXmlNode* node)
- 
- void MyWxPropGridXmlHandler::HandlePgProperty(wxPGProperty* parent)
- {
--    if(!HasParam(wxT("proptype"))) { return; }
-+    if(!HasParam(wxT("proptype"))) {
-+        return;
-+    }
- 
-     // Property
-     wxString proptype = GetText("proptype");
-@@ -116,7 +123,9 @@ void MyWxPropGridXmlHandler::HandlePgProperty(wxPGProperty* parent)
- 
-     } else if(proptype == "wxEnumProperty") {
-         int sel = items.Index(value);
--        if(sel == wxNOT_FOUND) { sel = 0; }
-+        if(sel == wxNOT_FOUND) {
-+            sel = 0;
-+        }
- 
-         prop = DoAppendProperty(parent, new wxEnumProperty(label, wxPG_LABEL, items, wxArrayInt(), sel));
- 
-@@ -143,8 +152,12 @@ void MyWxPropGridXmlHandler::HandlePgProperty(wxPGProperty* parent)
- 
-     // Handle nested children
-     if(prop) {
--        if(bgcol.IsOk()) { prop->SetBackgroundColour(bgcol, bgcolRecurse); }
--        if(!propEditor.IsEmpty()) { prop->SetEditor(propEditor); }
-+        if(bgcol.IsOk()) {
-+            prop->SetBackgroundColour(bgcol, bgcolRecurse);
-+        }
-+        if(!propEditor.IsEmpty()) {
-+            prop->SetEditor(propEditor);
-+        }
-         prop->SetHelpString(tip);
- 
-         // Check to see if this property has children
-@@ -160,12 +173,15 @@ void MyWxPropGridXmlHandler::HandlePgProperty(wxPGProperty* parent)
- 
- wxArrayString MyWxPropGridXmlHandler::GetArray(const wxXmlNode* node) const
- {
--    if(!node) return wxArrayString();
-+    if(!node)
-+        return wxArrayString();
- 
-     wxArrayString items;
-     wxXmlNode* child = node->GetChildren();
-     while(child) {
--        if(child->GetName() == "item") { items.Add(child->GetNodeContent()); }
-+        if(child->GetName() == "item") {
-+            items.Add(child->GetNodeContent());
-+        }
-         child = child->GetNext();
-     }
-     return items;
--- 
-2.42.0
-
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index f8206426888fd..1cee1d75abad8 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -1,8 +1,7 @@
 # Template file for 'codelite'
 pkgname=codelite
-version=16.0.0
-revision=4
-create_wrksrc=yes
+version=17.0.0
+revision=1
 build_style=cmake
 build_helper=cmake-wxWidgets-gtk3
 configure_args="-DWITH_PCH=0 -DWITH_WX_CONFIG=wx-config-gtk3
@@ -16,10 +15,8 @@ short_desc="Open-source, cross platform IDE for the C/C++ programming languages"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later"
 homepage="http://www.codelite.org"
-distfiles="https://github.com/eranif/${pkgname}/archive/${version}.tar.gz
- https://github.com/eranif/ctags/archive/52c724d1132d78ea44894bfe2eaca44f38a9bd85.tar.gz"
-checksum="fb707b98b2f56ae0791c7cb341c6a0240ff26a785dae31f7dcd1038956737957
- 7925adbe15cd240c7e65cf54e8752e7f5dbb24622342b84d151de97d2d75acea"
+distfiles=https://github.com/eranif/codelite/releases/download/${version}/codelite-${version}.tar.gz
+checksum=c0dfe6df38426d761ef5622b7a9ab91481244a09ad751f5daafa37bb9b611d57
 python_version=3
 
 build_options="hunspell lldb sftp"
@@ -33,9 +30,3 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 
 CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
-
-post_extract() {
-	mv codelite-${version}/* .
-	rm -rf universal-ctags
-	mv ctags-52c724d1132d78ea44894bfe2eaca44f38a9bd85 universal-ctags
-}

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-02-14 14:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-10 15:03 [PR PATCH] codelite: update to 17.0.0 Calandracas606
2024-01-10 15:11 ` [PR REVIEW] " Calandracas606
2024-01-10 15:11 ` Calandracas606
2024-01-10 15:11 ` Calandracas606
2024-01-16  1:36 ` sgn
2024-01-16  1:38 ` sgn
2024-01-16  1:38 ` [PR PATCH] [Updated] " sgn
2024-01-16  2:45 ` Calandracas606
2024-01-26 14:38 ` Calandracas606
2024-02-11 18:31 ` Calandracas606
2024-02-11 18:34 ` Calandracas606
2024-02-11 19:10 ` Calandracas606
2024-02-11 19:12 ` [PR REVIEW] " Calandracas606
2024-02-14 14:45 ` [PR PATCH] [Merged]: " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).