public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/tea/
Date: Fri, 22 Dec 2023 03:11:04 +0000 (UTC)	[thread overview]
Message-ID: <1703214470.fe2516525314f060d5f9def43d0f71d194e7af66.ionen@gentoo> (raw)

commit:     fe2516525314f060d5f9def43d0f71d194e7af66
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Thu Dec 21 19:49:00 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Dec 22 03:07:50 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe251652

app-editors/tea: add 62.2.1

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34400
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-editors/tea/Manifest          |  1 +
 app-editors/tea/tea-62.2.1.ebuild | 83 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

diff --git a/app-editors/tea/Manifest b/app-editors/tea/Manifest
index 172827e37b93..a27b6e87f7d5 100644
--- a/app-editors/tea/Manifest
+++ b/app-editors/tea/Manifest
@@ -1,2 +1,3 @@
 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
+DIST tea-qt-62.2.1.tar.gz 676570 BLAKE2B f4fa2756d6016d84c0c20c572dc2e03013d8f5b12d726d6d0aa4edbdcb5784552c8330c52f4016dcb85c0d8e1923bfdc90d39dd4dee4f378ac8c07182f1e7eee SHA512 0e2adf21023867466b7a4228c56ac1d05533b27f4abee672529c1f506f8d5e2880216bae35e1ff5ad0e0dc64c22c7536144c54c347c9d8f1d569fb74261101d0

diff --git a/app-editors/tea/tea-62.2.1.ebuild b/app-editors/tea/tea-62.2.1.ebuild
new file mode 100644
index 000000000000..b0c1f115ab1c
--- /dev/null
+++ b/app-editors/tea/tea-62.2.1.ebuild
@@ -0,0 +1,83 @@
+# 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 qt6 pdf"
+
+RESTRICT="test" # no tests
+
+DEPEND="
+	app-text/hunspell:=
+	sys-libs/zlib
+	aspell? ( app-text/aspell )
+	djvu? ( app-text/djvu )
+	qt6? (
+		dev-qt/qtbase:6[widgets]
+		dev-qt/qt5compat:6
+		pdf? ( app-text/poppler:=[qt6(-)] )
+	)
+	!qt6? (
+		dev-qt/qtcore:5
+		dev-qt/qtgui:5
+		dev-qt/qtwidgets:5
+		pdf? ( app-text/poppler:=[qt5] )
+	)
+"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog NEWS NEWS-RU TODO )
+
+PATCHES=(
+	"${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_PRINTER=OFF # appears to be setup wrong
+		$(cmake_use_find_package qt6 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
+}


             reply	other threads:[~2023-12-22  3:11 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-22  3:11 Ionen Wolkens [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-15  9:29 [gentoo-commits] repo/gentoo:master commit in: app-editors/tea/ Ulrich Müller
2025-01-01 16:48 Andreas Sturmlechner
2025-01-01 16:48 Andreas Sturmlechner
2024-06-06 17:09 Arthur Zamarin
2024-06-06 16:58 Arthur Zamarin
2024-05-05  6:08 Joonas Niilola
2024-05-05  6:05 Joonas Niilola
2024-05-04 18:37 Arthur Zamarin
2023-11-30 14:46 Ionen Wolkens
2021-10-29 13:31 Yixun Lan
2019-04-01 20:45 Andreas Sturmlechner
2019-04-01 19:58 Thomas Deutschmann
2019-03-24 10:01 Agostino Sarubbo
2019-02-15 23:07 Andreas Sturmlechner
2018-06-29 23:47 Michael Palimaka
2018-06-29 23:47 Michael Palimaka
2017-12-22 10:53 Michael Palimaka
2017-09-30  7:22 Michael Palimaka
2017-09-30  7:22 Michael Palimaka
2017-07-29  3:42 Michael Palimaka
2017-06-18 10:33 Michael Palimaka
2017-04-27 12:17 Michael Palimaka
2017-04-26  7:40 Agostino Sarubbo
2016-10-28 13:42 Michael Palimaka
2016-10-28 13:42 Michael Palimaka
2016-08-11 15:02 Michael Palimaka
2016-08-11 15:02 Michael Palimaka
2016-05-30 17:00 Davide Pesavento
2016-05-08 16:39 Davide Pesavento
2016-02-19 13:40 Michael Palimaka
2015-12-15 18:07 Michael Palimaka
2015-12-15 18:07 Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1703214470.fe2516525314f060d5f9def43d0f71d194e7af66.ionen@gentoo \
    --to=ionen@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox