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