public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/tea/
Date: Wed, 01 Jan 2025 16:48:21 +0000 (UTC)	[thread overview]
Message-ID: <1735750064.ba2f84fde3c835b1733d76c83c6caaecdbeec9c0.asturm@gentoo> (raw)

commit:     ba2f84fde3c835b1733d76c83c6caaecdbeec9c0
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  1 13:11:41 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Jan  1 16:47:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba2f84fd

app-editors/tea: Drop IUSE qt5 (make Qt6 non-optional)

Add missing dev-qt/qtbase:6[gui] USEdep
See also: https://github.com/gentoo/gentoo/pull/34400

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-editors/tea/tea-62.4.0-r1.ebuild | 72 ++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/app-editors/tea/tea-62.4.0-r1.ebuild b/app-editors/tea/tea-62.4.0-r1.ebuild
new file mode 100644
index 000000000000..673249d95bf6
--- /dev/null
+++ b/app-editors/tea/tea-62.4.0-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2025 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"
+
+RESTRICT="test" # no tests
+
+DEPEND="
+	app-text/hunspell:=
+	dev-qt/qt5compat:6
+	dev-qt/qtbase:6[gui,widgets]
+	sys-libs/zlib
+	aspell? ( app-text/aspell )
+	djvu? ( app-text/djvu )
+	pdf? ( app-text/poppler:=[qt6(+)] )
+"
+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_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:[~2025-01-01 16:48 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-01 16:48 Andreas Sturmlechner [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
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-12-22  3:11 Ionen Wolkens
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=1735750064.ba2f84fde3c835b1733d76c83c6caaecdbeec9c0.asturm@gentoo \
    --to=asturm@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