diff options
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/ansifilter/Manifest | 1 | ||||
-rw-r--r-- | app-text/ansifilter/ansifilter-2.4.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/app-text/ansifilter/Manifest b/app-text/ansifilter/Manifest index 58b1a203b837..7ca757f2846a 100644 --- a/app-text/ansifilter/Manifest +++ b/app-text/ansifilter/Manifest @@ -1 +1,2 @@ DIST ansifilter-2.3.tar.bz2 89746 SHA256 26d5ccd21a05e66a1cf836efd24eaf088243d14c3bf322a26cf635a3dd6a5e48 SHA512 769588a483f174e1d79e4baca844795564889eb15b15a820be1cd31865782e4ffbcfae3ecdcff4ed7c0cf6e976f352eb3bb1835bafb88b7d061db704a6512322 WHIRLPOOL bb3f88baaa459fad395b81c3f86f8b722ba6567c63222a7f7bdd8ffcdfb108cdd95df253ba5d39353e26b1743c9132e6d45f7e84cb89224796a7436ca2b7b21b +DIST ansifilter-2.4.tar.bz2 114180 SHA256 c57cb878afa7191c7b7db3c086a344b4234df814aed632596619a4bda5941d48 SHA512 2eaecd7dc6027c6976775d2a817b8fde0221fb1cce967bd4f6e272230b64e0bb77ed0cbddbc41533aa6087897b94903efa9633dffdd76df57ba029f6776ae6d2 WHIRLPOOL df5f96802c4b988ee3c3326dc0a6ecc2ab594fe766c6e5118d1695a05adf3969d51b0a89b1bfbc0b94cb84325131dc39622334c549a47e0ffa76c0e3fca7a997 diff --git a/app-text/ansifilter/ansifilter-2.4.ebuild b/app-text/ansifilter/ansifilter-2.4.ebuild new file mode 100644 index 000000000000..70efd00474c9 --- /dev/null +++ b/app-text/ansifilter/ansifilter-2.4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2017 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 +} |