commit:     a6f6acf3890f733903e9827d84bcdb03ae2e161d
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 17 18:39:01 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat Sep 17 18:39:11 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6f6acf3

app-text/ansifilter: version bump

Gentoo-bug: 593904

Package-Manager: portage-2.3.0

 app-text/ansifilter/Manifest              |  1 +
 app-text/ansifilter/ansifilter-2.2.ebuild | 56 +++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/app-text/ansifilter/Manifest b/app-text/ansifilter/Manifest
index 6b1a5c9..c8c489a 100644
--- a/app-text/ansifilter/Manifest
+++ b/app-text/ansifilter/Manifest
@@ -1,2 +1,3 @@
 DIST ansifilter-2.0.tar.bz2 89274 SHA256 
4e9065f5bad6ffbb578054ae57253fbab4fcde7730da5234f9328e1132977a02 SHA512 
aff26a90faffa1116576246a24bb3184cf5732733f17ff849febc19542a23362329c0a95697f10e2809a529bece2cfd3d8b29b0e762d8f9ffba62e3512b9c53f
 WHIRLPOOL 
146f4a04f0e5c6b2afd40e617a5f03430182cc574696b5b284389f313aafdc379b6f5f504ea1b29b918da7c8ea800aa6d52debb4ab1c5759f7f3148cfcc4d6ae
 DIST ansifilter-2.1.tar.bz2 89286 SHA256 
9614d637694d8b4144ac5b7c4815520187021f1ab78ebce7bcc1e54b60809b83 SHA512 
c14b41a4c7bcc652a15bb52e2ee4045d35744fcdd843a0ac2270bd25861989902eee631c6cabea577b1d671d1203b92ef2373f7248c43d685f83ea116aabf408
 WHIRLPOOL 
9107812bdec710b65d2ca404e4a4fb82321eb7a2f89f9a666bf9522eced0fe933b96511505261f2d2a2ea575c9a88322128bf546a0a0223d1ee053f260751e2f
+DIST ansifilter-2.2.tar.bz2 89697 SHA256 
af862f9c381100d9307fa20a7cc66888bf582581249c0fc79b2447dbc41c30b9 SHA512 
feb04c9b5fc4f6f78406c156d9158d9c08ddc561bcdf760b2d07ac1ccd58079c7b188cab47eb936ca95e647074f02e980e1af4e0050a75f000863005ef3843ce
 WHIRLPOOL 
a576c8fde2906986c9327e31b23d978afbc99701255e195742d93097bd7a8bd83aba9c19882967054fe01a2123166b2d5742803412b7495338dc72ee75c77b98

diff --git a/app-text/ansifilter/ansifilter-2.2.ebuild 
b/app-text/ansifilter/ansifilter-2.2.ebuild
new file mode 100644
index 00000000..198b13a
--- /dev/null
+++ b/app-text/ansifilter/ansifilter-2.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs qmake-utils
+
+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 ~x86"
+IUSE="qt5"
+
+RDEPEND="
+       qt5? (
+               dev-qt/qtcore:5
+               dev-qt/qtgui:5
+               dev-qt/qtwidgets:5
+       )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       default
+
+       # bug 431452
+       rm src/qt-gui/moc_mydialog.cpp || die
+}
+
+src_configure() {
+       if use qt5 ; then
+               pushd src/qt-gui > /dev/null || die
+               eqmake5
+               popd > /dev/null || die
+       fi
+}
+
+src_compile() {
+       emake -f makefile CC="$(tc-getCXX)" CFLAGS="${CFLAGS} -c -std=c++11" 
LDFLAGS="${LDFLAGS}"
+
+       if use qt5 ; then
+               pushd src/qt-gui > /dev/null || die
+               emake
+               popd > /dev/null || die
+       fi
+}
+
+src_install() {
+       dobin src/${PN}
+       use qt5 && dobin src/qt-gui/${PN}-gui
+       doman man/${PN}.1.gz
+       einstalldocs
+}

Reply via email to