diff options
author | Sam James <sam@gentoo.org> | 2023-06-17 02:03:31 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-06-17 02:38:21 +0100 |
commit | af66a282f60eaf4ab629e5bfa972d2fdde50c2f0 (patch) | |
tree | 646c859d1f67e0f3d11d5981f0c9d1471e9cec9f /app-text | |
parent | sci-libs/arborx: drop 1.2 (diff) | |
download | gentoo-af66a282f60eaf4ab629e5bfa972d2fdde50c2f0.tar.gz gentoo-af66a282f60eaf4ab629e5bfa972d2fdde50c2f0.tar.bz2 gentoo-af66a282f60eaf4ab629e5bfa972d2fdde50c2f0.zip |
app-text/ansifilter: add 2.19
Switch to Makefile which gets us the shell completions and at least
installs an xpm icon.
Bug: https://bugs.gentoo.org/882699
Closes: https://bugs.gentoo.org/906382
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/ansifilter/Manifest | 1 | ||||
-rw-r--r-- | app-text/ansifilter/ansifilter-2.19.ebuild | 80 |
2 files changed, 81 insertions, 0 deletions
diff --git a/app-text/ansifilter/Manifest b/app-text/ansifilter/Manifest index 2012c7b48072..ea7987ca87eb 100644 --- a/app-text/ansifilter/Manifest +++ b/app-text/ansifilter/Manifest @@ -1 +1,2 @@ DIST ansifilter-2.18.tar.bz2 436432 BLAKE2B 43c592e83a967ee86404332a464d57d202a73651b2e29da2d1d21163d295b6efba96ecb5861dacfa89b8f567c0367f7a32b8e658f8cefad82c5982f2f2bf70bb SHA512 ef7febed1fc31f5c7503648e4fc0a7aefc3da8e30ea649bd6f03eac2904667fb779049106ccb77ad16fbf655e979f6651b25b84ab126c940c66bedee115a28e2 +DIST ansifilter-2.19.tar.bz2 439141 BLAKE2B de720a10e96e9b55d205b3e19620c85ae7cfeb5a6f15194c78ec01901ab7d6af1a655d7a8ceb810de5923a0fb0c21f3e3b3149495ce04b976796892401f9c1e7 SHA512 2346f41bbfde9a8f38996a24a1c8207d65183ce58b8ba86831cebbd2da8a356d7bbd5503c7fc34f6f2d06bd7157f5811e857e6a03c85a46ce2f1696b0493a0c1 diff --git a/app-text/ansifilter/ansifilter-2.19.ebuild b/app-text/ansifilter/ansifilter-2.19.ebuild new file mode 100644 index 000000000000..c6a5f8516a3d --- /dev/null +++ b/app-text/ansifilter/ansifilter-2.19.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs qmake-utils xdg + +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 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="gui" + +RDEPEND=" + gui? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) +" +DEPEND="${RDEPEND}" + +DOCS=( ChangeLog.adoc README.adoc ) + +src_prepare() { + default + + # bug 431452 + rm src/qt-gui/moc_mydialog.cpp || die + + sed \ + -e "/GZIP/d" \ + -e "/COPYING/d" \ + -i makefile || die + + sed \ + -e "s/-O2//" \ + -i src/makefile || die +} + +src_configure() { + if use gui ; then + pushd src/qt-gui > /dev/null || die + eqmake5 + popd > /dev/null || die + fi +} + +src_compile() { + emake -f makefile CXX="$(tc-getCXX)" + + if use gui ; then + emake -C src/qt-gui + fi +} + +src_install() { + emake -f makefile \ + DESTDIR="${D}" \ + doc_dir="/usr/share/doc/${PF}" \ + -j1 \ + install $(usev gui install-gui) + + einstalldocs +} + +pkg_preinst() { + use gui && xdg_pkg_preinst +} + +pkg_postrm() { + use gui && xdg_pkg_postrm +} + +pkg_postinst() { + use gui && xdg_pkg_postinst +} |