2021-01-02 02:53:41 +01:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-04-23 14:21:33 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2021-01-02 02:53:41 +01:00
|
|
|
inherit gnome2-utils meson xdg
|
2020-04-23 14:21:33 +02:00
|
|
|
|
|
|
|
DESCRIPTION="A minimal terminal for GNOME"
|
|
|
|
HOMEPAGE="https://gitlab.gnome.org/ZanderBrown/kgx"
|
|
|
|
|
|
|
|
if [[ "${PV}" == *9999* ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://gitlab.gnome.org/ZanderBrown/${PN}.git"
|
|
|
|
else
|
|
|
|
SRC_URI="https://gitlab.gnome.org/ZanderBrown/${PN}/-/archive/${PV}/${P}.tar.gz"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
RESTRICT="
|
|
|
|
!test? ( test )
|
|
|
|
mirror
|
|
|
|
"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
2021-01-02 02:53:41 +01:00
|
|
|
IUSE="doc generic test"
|
2020-04-23 14:21:33 +02:00
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
${PYTHON_DEPS}
|
|
|
|
>=dev-libs/glib-2.58.0
|
|
|
|
>=dev-libs/libpcre2-10.32
|
2021-01-02 02:53:41 +01:00
|
|
|
>=gnome-base/libgtop-2.38.0
|
2020-04-23 14:21:33 +02:00
|
|
|
>=x11-libs/vte-0.54.4
|
|
|
|
dev-libs/appstream-glib[introspection]
|
|
|
|
dev-util/desktop-file-utils
|
|
|
|
dev-util/meson
|
|
|
|
gnome-base/gsettings-desktop-schemas
|
2020-12-28 17:06:50 +01:00
|
|
|
gui-libs/libhandy:0.0
|
2020-04-23 14:21:33 +02:00
|
|
|
x11-libs/gtk+:3
|
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
${DEPEND}
|
|
|
|
"
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local emesonargs=(
|
|
|
|
-Dgeneric=$(usex generic true false)
|
2020-12-28 17:06:50 +01:00
|
|
|
-Dgir=false
|
|
|
|
-Dgtk_doc=$(usex doc true false)
|
|
|
|
-Dgtk_doc=false
|
2021-01-02 02:53:41 +01:00
|
|
|
-Dgtop=true
|
2020-04-23 14:21:33 +02:00
|
|
|
-Dtests=$(usex test true false)
|
2020-12-28 17:06:50 +01:00
|
|
|
-Dvapi=false
|
2020-04-23 14:21:33 +02:00
|
|
|
)
|
|
|
|
meson_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
meson_src_install
|
2021-01-02 02:53:41 +01:00
|
|
|
rm -rf "${ED}/usr/share/appdata" || die
|
2020-04-23 14:21:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_preinst() {
|
|
|
|
gnome2_schemas_savelist
|
|
|
|
xdg_environment_reset
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
gnome2_gconf_install
|
|
|
|
gnome2_schemas_update
|
2021-01-02 02:53:41 +01:00
|
|
|
xdg_pkg_postinst
|
2020-04-23 14:21:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
gnome2_gconf_uninstall
|
|
|
|
gnome2_schemas_update
|
2021-01-02 02:53:41 +01:00
|
|
|
xdg_pkg_postrm
|
2020-04-23 14:21:33 +02:00
|
|
|
}
|