Skip to content

Commit

Permalink
tea: update to 63.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Aug 17, 2024
1 parent b34034d commit e0fdc77
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 4 deletions.
22 changes: 18 additions & 4 deletions editors/tea/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
PortSystem 1.0
PortGroup github 1.0

github.setup psemiletov tea-qt 62.1.2
github.setup psemiletov tea-qt 63.1.0
revision 0
checksums rmd160 76b783e22cfa22a1666f1505ac0e60e7e27cd6ad \
sha256 c1bf26c179bf80d1992e59bfdf17bfe7e7d2063197fdf1259e964a6676630eba \
size 676295
checksums rmd160 87acec8cf51a3a78b4cb8fd03a268ae61fdf782e \
sha256 15eba879907e31c1d2d061fae38fb5e43e1084689cbc057b5421cc3fb0a6a38d \
size 715890

name tea
description TEA is the powerful text editor for GNU/Linux and *BSD.
Expand All @@ -28,11 +28,23 @@ depends_lib-append port:aspell \

patchfiles-append tea-qmake.pro.patch

# Backport from upstream, drop on next update:
patchfiles-append 7126a9aef1f8313a2e97b7e3b1b8280f8f088935.patch

if {[string match *clang* ${configure.cxx}]} {
configure.ldflags-append \
-stdlib=${configure.cxx_stdlib}
}

# https://github.com/psemiletov/tea-qt/issues/68
if {[string match *gcc* ${configure.compiler}]} {
configure.cxxflags-append \
-fpermissive
}

# atypes.hxx: error: ‘nullptr’ was not declared in this scope
compiler.cxx_standard 2011

destroot {
copy ${worksrcpath}/bin/tea.app ${destroot}${applications_dir}
}
Expand Down Expand Up @@ -61,8 +73,10 @@ variant qt5 conflicts qt4 description {Use Qt 5} {}

if {[variant_isset qt4]} {
PortGroup qmake 1.0

}

if {[variant_isset qt5]} {
PortGroup qmake5 1.0

}
62 changes: 62 additions & 0 deletions editors/tea/files/7126a9aef1f8313a2e97b7e3b1b8280f8f088935.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
From 7126a9aef1f8313a2e97b7e3b1b8280f8f088935 Mon Sep 17 00:00:00 2001
From: Petr Semiletov <[email protected]>
Date: Fri, 16 Aug 2024 19:17:11 +0300
Subject: [PATCH] possible MACOS 12 fix

---
CMakeLists.txt | 6 ++++--
src/spellchecker.h | 9 +++++++++
2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ae72b1..5a2a0e3 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -8,6 +8,10 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

+set(PROJECT "tea-qt")
+project ($PROJECT VERSION 63.1.0 LANGUAGES CXX C)
+
+
enable_language(CXX)
enable_language(C)

@@ -32,8 +36,6 @@ set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)


-set(PROJECT "tea-qt")
-project ($PROJECT VERSION 63.1.0 LANGUAGES CXX C)
qt_add_resources(QT_RESOURCES resources.qrc)

add_definitions(-DVERSION_NUMBER="\\"${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}\\"")
diff --git a/src/spellchecker.h b/src/spellchecker.h
index feb4a47..81c9d9f 100644
--- src/spellchecker.h
+++ src/spellchecker.h
@@ -33,7 +33,12 @@

//#include <iostream>

+#ifdef __APPLE__

+#include <stdint.h>
+#define UTF16TEXT char16_t
+
+#else
#if QT_VERSION >= 0x050000
#include <uchar.h>
#define UTF16TEXT char16_t
@@ -41,6 +46,10 @@
#define UTF16TEXT ushort
#endif

+#endif
+
+
+
#ifdef HUNSPELL_ENABLE
#include <hunspell/hunspell.hxx>
#endif

0 comments on commit e0fdc77

Please sign in to comment.