diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-30 17:04:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-30 17:04:14 +0000 |
commit | b34c45ec12e8676abfa39cddcf3448ac2bee1574 (patch) | |
tree | 9587fa672dfdc5a5f761d15c9689d2aca8d521b0 /app-editors/tea/tea-62.1.1.ebuild | |
parent | 18a69c52453e0db481bfa441cf1d9616c97c9928 (diff) |
gentoo auto-resync : 30:11:2023 - 17:04:14
Diffstat (limited to 'app-editors/tea/tea-62.1.1.ebuild')
-rw-r--r-- | app-editors/tea/tea-62.1.1.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
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 +} |