forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
8d22a86
commit af66a28
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
# Sam James <[email protected]> (2023-06-17) | ||
# Qt 5 not keyworded here | ||
app-text/ansifilter gui | ||
|
||
# Matt Turner <[email protected]> (2023-05-30) | ||
# sys-apps/dbus-broker is not keyworded | ||
app-accessibility/at-spi2-core dbus-broker | ||
|