summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-09-01 05:54:14 +1000
committerMichael Palimaka <kensington@gentoo.org>2016-09-01 05:58:43 +1000
commit9b28e5e6efc1685e54e53bf089142bdf01679a73 (patch)
tree0c637c7032fa7a0e41e3394c106f066dfb16a68d /app-text/ansifilter
parentapp-crypt/monkeysphere: New upstream version 0.39 (diff)
downloadgentoo-9b28e5e6efc1685e54e53bf089142bdf01679a73.tar.gz
gentoo-9b28e5e6efc1685e54e53bf089142bdf01679a73.tar.bz2
gentoo-9b28e5e6efc1685e54e53bf089142bdf01679a73.zip
app-text/ansifilter: version bump
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-text/ansifilter')
-rw-r--r--app-text/ansifilter/Manifest1
-rw-r--r--app-text/ansifilter/ansifilter-2.0.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/app-text/ansifilter/Manifest b/app-text/ansifilter/Manifest
index f4fc43e7299c..e661a6d87add 100644
--- a/app-text/ansifilter/Manifest
+++ b/app-text/ansifilter/Manifest
@@ -1,2 +1,3 @@
DIST ansifilter-1.11.tar.bz2 54132 SHA256 fcd550428203225483c4b049b56c5ac3ce786b4863c7eff5ab9b16b141692434 SHA512 db22a6eca7bd580683b9270abb11711c7fbee1b1a17fd710fd880518207a4c65f1df04d21565b22754109dea9a81e9d4fdba0f8e01eb9dac8555041bb83f4acc WHIRLPOOL d961c7e15381bebde1c11182bd38b119596fdadda8afbe019d7227c32546fd74fab2569b444806fb32ede1295f6237f749146410bf490347c519b037755a56d7
DIST ansifilter-1.15.tar.bz2 79966 SHA256 65dc20cc1a03d4feba990f830186404c90462d599e5f4b37610d4d822d67aec4 SHA512 7b624b11579c4a88271325054a6023d139ea7ff67fc5552b8ab8387eb16ea54c40c586f242a5ab7f8dd6bf226041bc61a03b5c6acb50e8f915341bd7cd9cdff8 WHIRLPOOL 3e7bd5088b4696bf957ed1c1bbe2c20f6b11f50d856129c1da3651af24f2887ea65c0917db1e85d0d32e5cd6e2bce2177fdd50e0c6d197b05ee07f71415d44a1
+DIST ansifilter-2.0.tar.bz2 89274 SHA256 4e9065f5bad6ffbb578054ae57253fbab4fcde7730da5234f9328e1132977a02 SHA512 aff26a90faffa1116576246a24bb3184cf5732733f17ff849febc19542a23362329c0a95697f10e2809a529bece2cfd3d8b29b0e762d8f9ffba62e3512b9c53f WHIRLPOOL 146f4a04f0e5c6b2afd40e617a5f03430182cc574696b5b284389f313aafdc379b6f5f504ea1b29b918da7c8ea800aa6d52debb4ab1c5759f7f3148cfcc4d6ae
diff --git a/app-text/ansifilter/ansifilter-2.0.ebuild b/app-text/ansifilter/ansifilter-2.0.ebuild
new file mode 100644
index 000000000000..198b13ab6f1d
--- /dev/null
+++ b/app-text/ansifilter/ansifilter-2.0.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
+}