From b34c45ec12e8676abfa39cddcf3448ac2bee1574 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 30 Nov 2023 17:04:14 +0000 Subject: gentoo auto-resync : 30:11:2023 - 17:04:14 --- app-editors/tea/Manifest | 6 +- app-editors/tea/files/tea-62.1.1-fix-desktop.patch | 26 ++++++++ app-editors/tea/files/tea-62.1.1-qt-option.patch | 41 ++++++++++++ app-editors/tea/metadata.xml | 3 + app-editors/tea/tea-62.1.1.ebuild | 76 ++++++++++++++++++++++ 5 files changed, 151 insertions(+), 1 deletion(-) create mode 100644 app-editors/tea/files/tea-62.1.1-fix-desktop.patch create mode 100644 app-editors/tea/files/tea-62.1.1-qt-option.patch create mode 100644 app-editors/tea/tea-62.1.1.ebuild (limited to 'app-editors/tea') diff --git a/app-editors/tea/Manifest b/app-editors/tea/Manifest index fee9b169c19a..c4be13788b20 100644 --- a/app-editors/tea/Manifest +++ b/app-editors/tea/Manifest @@ -1,3 +1,7 @@ +AUX tea-62.1.1-fix-desktop.patch 1417 BLAKE2B 0993e25f149cf2d4c414cc36633157a903061784499e7e59b913ebcb6e9eb79a62dad96263cbe02f79a39037b6e18aa643ec1cacc7ba7f5996620497fe2a32ad SHA512 3fcb37c833dd18ed7ba79085e78b7fae7272315cfc577f003877c4d889f42bc3120693be5bcc731a00b5a8b15d30beab41787a461201d362450571211901d62e +AUX tea-62.1.1-qt-option.patch 998 BLAKE2B b7a97f938bb35141db76597c4d246655fd5212be7ac3f47905d98a8bd55f3b69f261f8214e3968be42ac0a934dfc01d68aa101d7822a0c5ecdcd992908ac31de SHA512 cd82f0a7ff6afe45417a5a0a9f8ba2926b1ec826fa15978046cb9a82e9992e422ca59aecb4452fbffb2178f06ad25c634d288ea731d578cea308fdc22be5942f DIST tea-47.0.0.tar.bz2 437273 BLAKE2B 8ed36526dedc6df4af74ef0e400c2ee2e19bb533cf2a4fa51df83f21ad78abb0e8e90bce3469e2e8db5f780ba8a900aedf2737c736945431b836ba0a76574b26 SHA512 7136d59383bf43c6a024a31aa29860a3e89893ff091a42f44f9e7088fb318920ab886cd1fdabc8ff6e3c30f8eb3d46d707228d2d45fb085ed7c822a4ffd89d13 +DIST tea-qt-62.1.1.tar.gz 675996 BLAKE2B 2219a7f61fe54426b0216e5612b05048ee6f1451084d4aa66c0744110ce6151c2ba46acf1c7e7b5916ae6194516391fa1c23cb797ecd7ac423e3005a88da85f4 SHA512 1d81b83a6f25f385959a507342f4a79c24be5af20c2841d851f0d233cbd77142c672c9f147a185e3088000172d5d943bd290497dfcbec87c1a3e0b96a40a5217 EBUILD tea-47.0.0.ebuild 1243 BLAKE2B d3526f6247021d043cce9c7b96cade90f6abbe00b50f988fab2e40908f72e101825cc636749d06f5f583d4305e7a93d1dc22d243edaf99ca85e4caa7410dad67 SHA512 ce9fcddf4d71ada0ffac805f227817294bcb07f7a4db8cfa72df1be1546ab72c1803ddbf02f89f45eab6bc25d9b4f6f02a0b433cd5c756e67b9fc20bc249f644 -MISC metadata.xml 738 BLAKE2B efcd8b84093a75b8c7cb020c2cf7a85a37aa5f10e76269a4dd4306be05563306cd8b63486c008d5285a5599d39d60eaad0a146668aa346edddd057a87787cdd8 SHA512 e4bab7faa04cbf916c70b6a2b88a9efba1ee150e05e0f190eda833ebebd598212b584de656032805cb123108fcbc8e53887c6e5fd50f099420ebaf01a7baa51e +EBUILD tea-62.1.1.ebuild 1768 BLAKE2B e345264da56ced359707ddb7c1f086a1f29ddaa8e04e3ee24774a1de4e25d2fbc4460b2ec4843bd41e3174a4d4f054b3fb6698cee43706a22ec5d635361287b6 SHA512 773766d84b08e35d0e67f60e2dd5dccfe935d2ca6f6b806cb72747fde3ee22f2dac331ba239b2cc7d30e597daff73b7ed2e9593ea87ce19a09abf31436b1272b +MISC metadata.xml 820 BLAKE2B eeea7df65b834f68bb40df1aa0362d7f8bdd92d29f8e9ef210b23f52fa8d0d9f0f06f3e8f010b74a247f6805a287f39fe4a1d95464e7782f9b7224e59d6eaca1 SHA512 d899b375f1520030b85935e6361f1d59bab8eb23db0ef0396d7c47a5139c6d22079ab5a7cdcc720ec3ed70c85c088704c9583d3dde874b0aea75156008c6a659 diff --git a/app-editors/tea/files/tea-62.1.1-fix-desktop.patch b/app-editors/tea/files/tea-62.1.1-fix-desktop.patch new file mode 100644 index 000000000000..36af0b5c0027 --- /dev/null +++ b/app-editors/tea/files/tea-62.1.1-fix-desktop.patch @@ -0,0 +1,26 @@ +From 8fb78950cd2e50c76cbf34b5245a413a5f3477f0 Mon Sep 17 00:00:00 2001 +From: Alfred Wingate +Date: Sun, 19 Nov 2023 12:56:05 +0200 +Subject: [PATCH] Remove whitespace at the end the desktop file + + * QA Notice: This package installs one or more .desktop files that do not + * pass validation. + * + * /usr/share/applications/tea.desktop: error: (will be fatal in the future): value "text/plain;application/epub+zip;application/fb2;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.oasis.opendocument.text;application/rtf;application/x-tex; " for key "MimeType" in group "Desktop Entry" contains value " " which is an invalid MIME type: " " does not contain a subtype + * + +Signed-off-by: Alfred Wingate +--- a/desktop/tea.desktop ++++ b/desktop/tea.desktop +@@ -6,7 +6,7 @@ Icon=tea + Exec=tea %F + Categories=Utility;TextEditor; + StartupNotify=false +-MimeType=text/plain;application/epub+zip;application/fb2;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.oasis.opendocument.text;application/rtf;application/x-tex; ++MimeType=text/plain;application/epub+zip;application/fb2;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.oasis.opendocument.text;application/rtf;application/x-tex; + NoDisplay=false + Version=1.1 + Keywords=text editor;text;editor; +-- +2.42.1 + diff --git a/app-editors/tea/files/tea-62.1.1-qt-option.patch b/app-editors/tea/files/tea-62.1.1-qt-option.patch new file mode 100644 index 000000000000..e4f2a580c6e9 --- /dev/null +++ b/app-editors/tea/files/tea-62.1.1-qt-option.patch @@ -0,0 +1,41 @@ +From 2ca1a29e67c9cee591dbab5a323764e435d46b2c Mon Sep 17 00:00:00 2001 +From: Alfred Wingate +Date: Sun, 19 Nov 2023 12:53:11 +0200 +Subject: [PATCH] Make qt6 a cmake option instead of letting automagic + handle it + +* qt_standard_project_setup() is >=qt-6.3 only, so put it under + Qt6_Found. + +Signed-off-by: Alfred Wingate +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -11,8 +11,11 @@ set(CMAKE_AUTORCC ON) + enable_language(CXX) + enable_language(C) + +-find_package(Qt6 COMPONENTS Core Widgets) +-if (NOT Qt6_FOUND) ++option(USE_QT6 "Build against QT6" ON) ++ ++if (USE_QT6) ++ find_package(Qt6 REQUIRED COMPONENTS Core Widgets) ++else() + find_package(Qt5 5.15 REQUIRED COMPONENTS Core Widgets) + endif() + +@@ -22,10 +25,8 @@ message("+ Qt6 found") + set(CMAKE_CXX_STANDARD 17) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + find_package(Qt6 COMPONENTS Core5Compat REQUIRED) +-endif() +- +- + qt_standard_project_setup() ++endif() + + + set(PROJECT "tea-qt") +-- +2.42.1 + diff --git a/app-editors/tea/metadata.xml b/app-editors/tea/metadata.xml index 7bd9ca773d36..f905158e4e39 100644 --- a/app-editors/tea/metadata.xml +++ b/app-editors/tea/metadata.xml @@ -10,6 +10,9 @@ highlighting and a built in file manager as well as a built in image viewer. It can also read lots of 'other' filetypes. + + psemiletov/tea-qt + Enable spellchecking using app-text/aspell Enable spellchecking using app-text/hunspell diff --git a/app-editors/tea/tea-62.1.1.ebuild b/app-editors/tea/tea-62.1.1.ebuild new file mode 100644 index 000000000000..98ca7bb80309 --- /dev/null +++ b/app-editors/tea/tea-62.1.1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg + +MY_P="tea-qt-${PV}" + +DESCRIPTION="Small, lightweight Qt text editor" +HOMEPAGE="https://tea.ourproject.org/" +SRC_URI="https://github.com/psemiletov/tea-qt/archive/${PV}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="aspell djvu pdf" + +# qt6 blocked by poppler[qt6] +DEPEND=" + app-text/hunspell:= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + sys-libs/zlib + aspell? ( app-text/aspell ) + djvu? ( app-text/djvu ) + pdf? ( app-text/poppler:=[qt5] ) +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +DOCS=( AUTHORS ChangeLog NEWS NEWS-RU TODO ) + +PATCHES=( + "${FILESDIR}/tea-62.1.1-qt-option.patch" + "${FILESDIR}/tea-62.1.1-fix-desktop.patch" +) + +src_prepare() { + cmake_src_prepare + + # Replace AUR link with p.g.o link + sed -i \ + -e 's,AUR: aur.archlinux.org/packages/tea-qt-git,Gentoo: https://packages.gentoo.org/packages/app-editors/tea,' \ + tea.cpp translations/{de,es,fr,pl,ru}.ts || die + + # Rename tea to tea-qt to avoid file conflict with dev-util/tea + # bug #917587 + # https://github.com/psemiletov/tea-qt/issues/50 + sed -i -e '/set_target_properties(tea PROPERTIES$/ a\ + OUTPUT_NAME \"tea-qt\"' \ + CMakeLists.txt || die + sed -i -e '/Exec/ { s/tea/tea-qt/ }' desktop/tea.desktop || die +} + +src_configure() { + local mycmakeargs=( + -DUSE_ASPELL=$(usex aspell) + -DUSE_PDF=$(usex pdf) + -DUSE_DJVU=$(usex djvu) + -DUSE_QT6=OFF # blocked by poppler-qt6 + -DUSE_PRINTER=OFF # only for qt6 + ) + + cmake_src_configure +} + +pkg_postinst() { + xdg_pkg_postinst + + if [[ "${REPLACING_VERSIONS}" == "47.0.0" ]]; then + elog "Executable 'tea' has been renamed to 'tea-qt'" + fi +} -- cgit v1.2.3