From 8e336a2d769f8b67d81d81597f85e699d54fe7f1 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Wed, 22 Nov 2023 09:28:12 +0200 Subject: [PATCH] net-analyzer/nutty: eapi 8 and other updates Signed-off-by: Alfred Wingate --- net-analyzer/nutty/nutty-1.1.1-r1.ebuild | 70 ++++++++++++++++++++++++ net-analyzer/nutty/nutty-9999.ebuild | 37 +++++++------ 2 files changed, 89 insertions(+), 18 deletions(-) create mode 100644 net-analyzer/nutty/nutty-1.1.1-r1.ebuild diff --git a/net-analyzer/nutty/nutty-1.1.1-r1.ebuild b/net-analyzer/nutty/nutty-1.1.1-r1.ebuild new file mode 100644 index 0000000..ca44bb2 --- /dev/null +++ b/net-analyzer/nutty/nutty-1.1.1-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome2-utils meson vala xdg + +DESCRIPTION="A simple application to provide essential information on network related aspects" +HOMEPAGE="https://github.com/babluboy/nutty" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/babluboy/${PN}.git" +else + SRC_URI="https://github.com/babluboy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" + +# tests are just data file validation +RESTRICT="test" + +DEPEND=" + >=dev-db/sqlite-3.5.9:3 + >=dev-libs/granite-0.5:= + >=dev-libs/libgee-0.8:= + dev-libs/glib:2 + dev-libs/libxml2 + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libnotify +" +RDEPEND=" + ${DEPEND} + net-analyzer/nethogs + net-analyzer/nmap + net-analyzer/traceroute + net-analyzer/vnstat + net-misc/curl + net-wireless/wireless-tools + sys-apps/iproute2 + sys-apps/net-tools + sys-apps/pciutils +" +BDEPEND=" + sys-devel/gettext +" + +DOCS=( AUTHORS README.md ) + +pkg_setup() { + vala_setup +} + +pkg_preinst() { + xdg_pkg_preinst + gnome2_schemas_savelist +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/net-analyzer/nutty/nutty-9999.ebuild b/net-analyzer/nutty/nutty-9999.ebuild index fa52fd6..ca44bb2 100644 --- a/net-analyzer/nutty/nutty-9999.ebuild +++ b/net-analyzer/nutty/nutty-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit gnome2-utils meson vala xdg @@ -16,17 +16,24 @@ else KEYWORDS="~amd64" fi -RESTRICT="mirror" LICENSE="GPL-3" SLOT="0" +# tests are just data file validation +RESTRICT="test" + DEPEND=" - dev-libs/granite + >=dev-db/sqlite-3.5.9:3 + >=dev-libs/granite-0.5:= + >=dev-libs/libgee-0.8:= + dev-libs/glib:2 + dev-libs/libxml2 + x11-libs/gdk-pixbuf:2 x11-libs/gtk+:3 + x11-libs/libnotify " RDEPEND=" ${DEPEND} - dev-db/sqlite net-analyzer/nethogs net-analyzer/nmap net-analyzer/traceroute @@ -37,29 +44,23 @@ RDEPEND=" sys-apps/net-tools sys-apps/pciutils " +BDEPEND=" + sys-devel/gettext +" DOCS=( AUTHORS README.md ) -src_prepare() { - xdg_src_prepare - vala_src_prepare - default -} - -src_configure() { - meson_src_configure -} - -src_install() { - meson_src_install +pkg_setup() { + vala_setup } pkg_preinst() { + xdg_pkg_preinst gnome2_schemas_savelist } pkg_postinst() { - xdg_pkg_preinst + xdg_pkg_postinst gnome2_schemas_update }