From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 83D89158009 for ; Sun, 18 Jun 2023 03:12:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 55C30E08EF; Sun, 18 Jun 2023 03:12:29 +0000 (UTC) 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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 053CAE08D4 for ; Sun, 18 Jun 2023 03:12:29 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0E90340F03 for ; Sun, 18 Jun 2023 03:12:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 09CCEA74 for ; Sun, 18 Jun 2023 03:12:26 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1687057926.55685e396376f0fe3cc6d31b9420ec2b5e604508.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/ansifilter/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/ansifilter/Manifest app-text/ansifilter/ansifilter-2.20.ebuild X-VCS-Directories: app-text/ansifilter/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 55685e396376f0fe3cc6d31b9420ec2b5e604508 X-VCS-Branch: master Date: Sun, 18 Jun 2023 03:12:26 +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: 179d4c67-a2b4-4894-9ad7-ad0cf836b39e X-Archives-Hash: eedb90e3af88432208e62b6cc8a868d1 commit: 55685e396376f0fe3cc6d31b9420ec2b5e604508 Author: Sam James gentoo org> AuthorDate: Sun Jun 18 02:51:54 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jun 18 03:12:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55685e39 app-text/ansifilter: add 2.20 Signed-off-by: Sam James gentoo.org> app-text/ansifilter/Manifest | 1 + app-text/ansifilter/ansifilter-2.20.ebuild | 80 ++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/app-text/ansifilter/Manifest b/app-text/ansifilter/Manifest index ea7987ca87eb..cdf2801444d8 100644 --- a/app-text/ansifilter/Manifest +++ b/app-text/ansifilter/Manifest @@ -1,2 +1,3 @@ DIST ansifilter-2.18.tar.bz2 436432 BLAKE2B 43c592e83a967ee86404332a464d57d202a73651b2e29da2d1d21163d295b6efba96ecb5861dacfa89b8f567c0367f7a32b8e658f8cefad82c5982f2f2bf70bb SHA512 ef7febed1fc31f5c7503648e4fc0a7aefc3da8e30ea649bd6f03eac2904667fb779049106ccb77ad16fbf655e979f6651b25b84ab126c940c66bedee115a28e2 DIST ansifilter-2.19.tar.bz2 439141 BLAKE2B de720a10e96e9b55d205b3e19620c85ae7cfeb5a6f15194c78ec01901ab7d6af1a655d7a8ceb810de5923a0fb0c21f3e3b3149495ce04b976796892401f9c1e7 SHA512 2346f41bbfde9a8f38996a24a1c8207d65183ce58b8ba86831cebbd2da8a356d7bbd5503c7fc34f6f2d06bd7157f5811e857e6a03c85a46ce2f1696b0493a0c1 +DIST ansifilter-2.20.tar.bz2 439551 BLAKE2B 71a24e904d7d3769bd0fed4ce93d960fbe434b117dc9f0e0d6b43ced40ce78d315ad58a5b83925ea0d16595e79e0ae415fc1e52323a0c367c63edc1ede57c039 SHA512 f05942eee53513cc81054bfb853fa9a946ffc0c488564975b06e3d1feb15d8ee7be05c561905cdc5944f4d083f04196af0f7c90665b8048ca7e400537517498c diff --git a/app-text/ansifilter/ansifilter-2.20.ebuild b/app-text/ansifilter/ansifilter-2.20.ebuild new file mode 100644 index 000000000000..c6a5f8516a3d --- /dev/null +++ b/app-text/ansifilter/ansifilter-2.20.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs qmake-utils xdg + +DESCRIPTION="Handles text files containing ANSI terminal escape codes" +HOMEPAGE="http://www.andre-simon.de/" +SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="gui" + +RDEPEND=" + gui? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) +" +DEPEND="${RDEPEND}" + +DOCS=( ChangeLog.adoc README.adoc ) + +src_prepare() { + default + + # bug 431452 + rm src/qt-gui/moc_mydialog.cpp || die + + 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 + eqmake5 + 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="${D}" \ + doc_dir="/usr/share/doc/${PF}" \ + -j1 \ + install $(usev gui install-gui) + + einstalldocs +} + +pkg_preinst() { + use gui && xdg_pkg_preinst +} + +pkg_postrm() { + use gui && xdg_pkg_postrm +} + +pkg_postinst() { + use gui && xdg_pkg_postinst +}