Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/ansifilter/
Date: Mon, 08 Feb 2021 09:29:04
Message-Id: 1612776538.bfebc14dbad98a949658715d40321f4882b729ba.kensington@gentoo
1 commit: bfebc14dbad98a949658715d40321f4882b729ba
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 8 09:28:30 2021 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 8 09:28:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfebc14d
7
8 app-text/ansifilter: version bump 2.18
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org>
12
13 app-text/ansifilter/Manifest | 1 +
14 app-text/ansifilter/ansifilter-2.18.ebuild | 64 ++++++++++++++++++++++++++++++
15 2 files changed, 65 insertions(+)
16
17 diff --git a/app-text/ansifilter/Manifest b/app-text/ansifilter/Manifest
18 index efe97c563b6..a09138f4672 100644
19 --- a/app-text/ansifilter/Manifest
20 +++ b/app-text/ansifilter/Manifest
21 @@ -1 +1,2 @@
22 DIST ansifilter-2.17.tar.bz2 436116 BLAKE2B 94a1788cffa66343643f48a18748d5359b090803cde723a02bc38f908c262631f1cd2eb150b6a743d66caa04983ea444ba150cf34ce07bdb456979e19631582f SHA512 ab9d590189482f2a27affd62b456c96b947b04d8c8b1214f1ea967971c8ed7df8a7c15d1079f957164d01916d144dcd5dc4b0ac05b452f9f4b8095273d3d3162
23 +DIST ansifilter-2.18.tar.bz2 436432 BLAKE2B 43c592e83a967ee86404332a464d57d202a73651b2e29da2d1d21163d295b6efba96ecb5861dacfa89b8f567c0367f7a32b8e658f8cefad82c5982f2f2bf70bb SHA512 ef7febed1fc31f5c7503648e4fc0a7aefc3da8e30ea649bd6f03eac2904667fb779049106ccb77ad16fbf655e979f6651b25b84ab126c940c66bedee115a28e2
24
25 diff --git a/app-text/ansifilter/ansifilter-2.18.ebuild b/app-text/ansifilter/ansifilter-2.18.ebuild
26 new file mode 100644
27 index 00000000000..f1a848e9dc4
28 --- /dev/null
29 +++ b/app-text/ansifilter/ansifilter-2.18.ebuild
30 @@ -0,0 +1,64 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit toolchain-funcs qmake-utils
37 +
38 +DESCRIPTION="Handles text files containing ANSI terminal escape codes"
39 +HOMEPAGE="http://www.andre-simon.de/"
40 +SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2"
41 +
42 +LICENSE="GPL-3+"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-macos"
45 +IUSE="qt5"
46 +
47 +RDEPEND="
48 + qt5? (
49 + dev-qt/qtcore:5
50 + dev-qt/qtgui:5
51 + dev-qt/qtwidgets:5
52 + )"
53 +DEPEND="${RDEPEND}"
54 +
55 +DOCS=( ChangeLog.adoc README.adoc )
56 +
57 +src_prepare() {
58 + default
59 +
60 + # bug 431452
61 + rm src/qt-gui/moc_mydialog.cpp || die
62 +
63 + sed -e "s/-O2//" -i src/makefile || die
64 +}
65 +
66 +src_configure() {
67 + if use qt5 ; then
68 + pushd src/qt-gui > /dev/null || die
69 + eqmake5
70 + popd > /dev/null || die
71 + fi
72 +}
73 +
74 +src_compile() {
75 + emake -f makefile CXX="$(tc-getCXX)"
76 +
77 + if use qt5 ; then
78 + pushd src/qt-gui > /dev/null || die
79 + emake
80 + popd > /dev/null || die
81 + fi
82 +}
83 +
84 +src_install() {
85 + dobin src/${PN}
86 + if use qt5 ; then
87 + dobin src/qt-gui/${PN}-gui
88 + insinto /usr/share/applications
89 + doins ${PN}.desktop
90 + fi
91 +
92 + doman man/${PN}.1
93 + einstalldocs
94 +}