diff options
-rw-r--r-- | app-text/ansifilter/Manifest | 1 | ||||
-rw-r--r-- | app-text/ansifilter/ansifilter-2.13.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/app-text/ansifilter/Manifest b/app-text/ansifilter/Manifest index e206d9a77b7f..607550687a27 100644 --- a/app-text/ansifilter/Manifest +++ b/app-text/ansifilter/Manifest @@ -1,2 +1,3 @@ DIST ansifilter-2.10.tar.bz2 436180 BLAKE2B b00a76867c17c63fa457c6e3ff6a57cfaedb6218df240d8afb52ec4acb46745f02b785fdbde294deb606a77564b9e6deb52e652cc4fdff32ebbb4c3a2ffcc846 SHA512 b2b2f7ec9d3343701cb1de19a1a3cb678ca9a908cc72e26e0eaf1e4cdf61cf7237edb4221bcde3159299aee3c05a84c46cf5706ad4f74b96ccec41b161ad44ec DIST ansifilter-2.12.tar.bz2 438051 BLAKE2B 112993b6f93d5fce6fc72c5e2d51dd99ba550902212098b3e75a6b4d910ccb9f49e9705a9f93d8d14f1423ae8a36e2ec0c442894241733a58a3b2a6c742e5691 SHA512 fd4e50f654c5e975f96bed8af1705c21d47d9e7f87f22411b2c7403362d4ee09c1be6fb5b31647daf6bea509d66f44e379ef7476a116470217d9c176302f7ffe +DIST ansifilter-2.13.tar.bz2 439681 BLAKE2B 4f23bfd05647046f9cb739f9ce0820b5b3ccad397a80558ecd5ca584c695dc4f942c1db3edd2f1b2d5a78b2c1e1b043677b1be3486ff7237090c27072e15f0fb SHA512 0d74607d2155f1cd0f66cf6470d1d83889d27c62475e366518a78b310c9681307e2fe662fea67078f95e6b9ce28e6f15656ab1ffc9e9e825d680808c673b7bfe diff --git a/app-text/ansifilter/ansifilter-2.13.ebuild b/app-text/ansifilter/ansifilter-2.13.ebuild new file mode 100644 index 000000000000..a6d2e9316671 --- /dev/null +++ b/app-text/ansifilter/ansifilter-2.13.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~ppc64 ~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)" CXXFLAGS="${CXXFLAGS} -DNDEBUG -std=c++11" + + 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 + + gunzip man/${PN}.1.gz + doman man/${PN}.1 + einstalldocs +} |