From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DAA031582EF for ; Sat, 01 Mar 2025 16:33:49 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id B3D8534310B for ; Sat, 01 Mar 2025 16:33:49 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 0A5281102F2; Sat, 01 Mar 2025 16:33:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id EF6561102D2 for ; Sat, 01 Mar 2025 16:33:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A68893430D4 for ; Sat, 01 Mar 2025 16:33:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3B97F2731 for ; Sat, 01 Mar 2025 16:33:43 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1740846801.985f4ed84d7ac33d14a783f8bf36011d26ec7223.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/ansifilter/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/ansifilter/ansifilter-2.21-r1.ebuild X-VCS-Directories: app-text/ansifilter/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 985f4ed84d7ac33d14a783f8bf36011d26ec7223 X-VCS-Branch: master Date: Sat, 01 Mar 2025 16:33:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 859df78c-28e6-4710-8d2b-5bf84a72cb16 X-Archives-Hash: 46e9b1650ec394862aaa6411b1b6e2e6 commit: 985f4ed84d7ac33d14a783f8bf36011d26ec7223 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Feb 26 23:24:51 2025 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Mar 1 16:33:21 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=985f4ed8 app-text/ansifilter: Switch IUSE gui to Qt6 Bug: https://bugs.gentoo.org/947408 Signed-off-by: Andreas Sturmlechner gentoo.org> app-text/ansifilter/ansifilter-2.21-r1.ebuild | 100 ++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/app-text/ansifilter/ansifilter-2.21-r1.ebuild b/app-text/ansifilter/ansifilter-2.21-r1.ebuild new file mode 100644 index 000000000000..9765dda9cfcd --- /dev/null +++ b/app-text/ansifilter/ansifilter-2.21-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop toolchain-funcs qmake-utils verify-sig xdg-utils + +DESCRIPTION="Handles text files containing ANSI terminal escape codes" +HOMEPAGE=" + http://andre-simon.de/doku/ansifilter/en/ansifilter.php + https://gitlab.com/saalen/ansifilter/ +" +SRC_URI=" + http://andre-simon.de/zip/${P}.tar.bz2 + gui? ( https://gitlab.com/uploads/-/system/project/avatar/6678914/ansifilter2_logo_256.png ) + verify-sig? ( http://andre-simon.de/zip/${P}.tar.bz2.asc ) +" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="gui" + +DEPEND=" + gui? ( dev-qt/qtbase:6[gui,widgets] ) +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + verify-sig? ( >=sec-keys/openpgp-keys-andresimon-20240906 ) +" + +DOCS=( ChangeLog.adoc README.adoc ) + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/andresimon.asc + +src_unpack() { + if use verify-sig ; then + verify-sig_verify_detached "${DISTDIR}"/${P}.tar.bz2{,.asc} + fi + + default +} + +src_prepare() { + default + + sed \ + -e "/GZIP/d" \ + -e "/COPYING/d" \ + -i makefile || die + + sed \ + -e "s/-O2//" \ + -i src/makefile || die +} + +src_configure() { + if use gui ; then + pushd src/qt-gui > /dev/null || die + eqmake6 + popd > /dev/null || die + fi +} + +src_compile() { + emake -f makefile CXX="$(tc-getCXX)" + + if use gui ; then + emake -C src/qt-gui + fi +} + +src_install() { + emake -f makefile \ + DESTDIR="${ED}" \ + doc_dir="/usr/share/doc/${PF}" \ + -j1 \ + install $(usev gui install-gui) + + einstalldocs + if use gui; then + newicon -s 256 "${DISTDIR}"/ansifilter2_logo_256.png "${PN}".png + fi +} + +pkg_postrm() { + if use gui; then + xdg_desktop_database_update + xdg_icon_cache_update + fi +} + +pkg_postinst() { + if use gui; then + xdg_desktop_database_update + xdg_icon_cache_update + fi +}