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: Sun, 28 Apr 2019 13:18:06
Message-Id: 1556457466.00448e52bf2719717b24df23957ef0fb8bd630ad.kensington@gentoo
1 commit: 00448e52bf2719717b24df23957ef0fb8bd630ad
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 28 13:17:18 2019 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 28 13:17:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00448e52
7
8 app-text/ansifilter: version bump 2.14
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org>
12
13 app-text/ansifilter/Manifest | 1 +
14 app-text/ansifilter/ansifilter-2.14.ebuild | 57 ++++++++++++++++++++++++++++++
15 2 files changed, 58 insertions(+)
16
17 diff --git a/app-text/ansifilter/Manifest b/app-text/ansifilter/Manifest
18 index 1e7b317ef69..716b00cc911 100644
19 --- a/app-text/ansifilter/Manifest
20 +++ b/app-text/ansifilter/Manifest
21 @@ -1 +1,2 @@
22 DIST ansifilter-2.13.tar.bz2 439681 BLAKE2B 4f23bfd05647046f9cb739f9ce0820b5b3ccad397a80558ecd5ca584c695dc4f942c1db3edd2f1b2d5a78b2c1e1b043677b1be3486ff7237090c27072e15f0fb SHA512 0d74607d2155f1cd0f66cf6470d1d83889d27c62475e366518a78b310c9681307e2fe662fea67078f95e6b9ce28e6f15656ab1ffc9e9e825d680808c673b7bfe
23 +DIST ansifilter-2.14.tar.bz2 441884 BLAKE2B 90b3b0330866da11c00b105aa79164178aebecf39131f5c8d8e373091f53d2d8bbced54472c975a61857d594a9fa92ce08d018523f471fde445d4548d48b949b SHA512 a0b7f12ea5b9ef9b5845a03484a2e238a9f60e0e49f8eddca8bf24b47faba48aa0b55f922678b3bf1b3f08857bbe9a8285b3f318f2adec84673bc502e21b6802
24
25 diff --git a/app-text/ansifilter/ansifilter-2.14.ebuild b/app-text/ansifilter/ansifilter-2.14.ebuild
26 new file mode 100644
27 index 00000000000..e993d7be98a
28 --- /dev/null
29 +++ b/app-text/ansifilter/ansifilter-2.14.ebuild
30 @@ -0,0 +1,57 @@
31 +# Copyright 1999-2019 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 ~ppc64 ~x86"
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 +src_prepare() {
56 + default
57 +
58 + # bug 431452
59 + rm src/qt-gui/moc_mydialog.cpp || die
60 +}
61 +
62 +src_configure() {
63 + if use qt5 ; then
64 + pushd src/qt-gui > /dev/null || die
65 + eqmake5
66 + popd > /dev/null || die
67 + fi
68 +}
69 +
70 +src_compile() {
71 + emake -f makefile CC="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} -DNDEBUG -std=c++11"
72 +
73 + if use qt5 ; then
74 + pushd src/qt-gui > /dev/null || die
75 + emake
76 + popd > /dev/null || die
77 + fi
78 +}
79 +
80 +src_install() {
81 + dobin src/${PN}
82 + use qt5 && dobin src/qt-gui/${PN}-gui
83 +
84 + gunzip man/${PN}.1.gz
85 + doman man/${PN}.1
86 + einstalldocs
87 +}