From deb2610b8270093cb31398f7d389d9a9de11dad8 Mon Sep 17 00:00:00 2001 From: Aisha Tammy Date: Wed, 11 Nov 2020 16:49:26 -0500 Subject: [PATCH] gui-apps/nwg-launchers: add icons from the package has additional fixes for the icons to display correctly Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Aisha Tammy --- .../files/icons/system-lock-screen.svg | 60 +++++++++++++++++ .../files/icons/system-log-out.svg | 61 ++++++++++++++++++ .../files/icons/system-reboot.svg | 1 + .../files/icons/system-shutdown.svg | 64 +++++++++++++++++++ gui-apps/nwg-launchers/files/index.theme | 14 ++++ .../nwg-launchers-0.4.2-r1.ebuild | 39 +++++++++++ .../nwg-launchers/nwg-launchers-9999.ebuild | 11 +++- 7 files changed, 247 insertions(+), 3 deletions(-) create mode 100644 gui-apps/nwg-launchers/files/icons/system-lock-screen.svg create mode 100644 gui-apps/nwg-launchers/files/icons/system-log-out.svg create mode 100644 gui-apps/nwg-launchers/files/icons/system-reboot.svg create mode 100644 gui-apps/nwg-launchers/files/icons/system-shutdown.svg create mode 100644 gui-apps/nwg-launchers/files/index.theme create mode 100644 gui-apps/nwg-launchers/nwg-launchers-0.4.2-r1.ebuild diff --git a/gui-apps/nwg-launchers/files/icons/system-lock-screen.svg b/gui-apps/nwg-launchers/files/icons/system-lock-screen.svg new file mode 100644 index 0000000000..6e14c8a7a4 --- /dev/null +++ b/gui-apps/nwg-launchers/files/icons/system-lock-screen.svg @@ -0,0 +1,60 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/gui-apps/nwg-launchers/files/icons/system-log-out.svg b/gui-apps/nwg-launchers/files/icons/system-log-out.svg new file mode 100644 index 0000000000..bf3ac82302 --- /dev/null +++ b/gui-apps/nwg-launchers/files/icons/system-log-out.svg @@ -0,0 +1,61 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/gui-apps/nwg-launchers/files/icons/system-reboot.svg b/gui-apps/nwg-launchers/files/icons/system-reboot.svg new file mode 100644 index 0000000000..1ccae13c60 --- /dev/null +++ b/gui-apps/nwg-launchers/files/icons/system-reboot.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/gui-apps/nwg-launchers/files/icons/system-shutdown.svg b/gui-apps/nwg-launchers/files/icons/system-shutdown.svg new file mode 100644 index 0000000000..362a0c75f9 --- /dev/null +++ b/gui-apps/nwg-launchers/files/icons/system-shutdown.svg @@ -0,0 +1,64 @@ + + + + + + image/svg+xml + + + + + + + + + + diff --git a/gui-apps/nwg-launchers/files/index.theme b/gui-apps/nwg-launchers/files/index.theme new file mode 100644 index 0000000000..caa1544411 --- /dev/null +++ b/gui-apps/nwg-launchers/files/index.theme @@ -0,0 +1,14 @@ +[Icon Theme] +Name=nwg-launchers +Comment=user customized icon theme by inheritance + +Inherits=gnome,Adwaita,hicolor + +Directories=icons + +[icons] +Context=Applications +Size=96 +MinSize=8 +MaxSize=192 +Type=Scalable diff --git a/gui-apps/nwg-launchers/nwg-launchers-0.4.2-r1.ebuild b/gui-apps/nwg-launchers/nwg-launchers-0.4.2-r1.ebuild new file mode 100644 index 0000000000..914a82d851 --- /dev/null +++ b/gui-apps/nwg-launchers/nwg-launchers-0.4.2-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [[ "${PV}" == 9999 ]] +then + inherit git-r3 + EGIT_REPO_URI="https://github.com/nwg-piotr/nwg-launchers.git" +else + SRC_URI="https://github.com/nwg-piotr/nwg-launchers/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi +inherit meson + +DESCRIPTION="GTK+ launchers for sway, i3 and some other WMs" +HOMEPAGE="https://github.com/nwg-piotr/nwg-launchers" +LICENSE="GPL-3 CC-BY-SA-3.0" + +SLOT="0" + +RDEPEND=" + x11-libs/gtk+:3 + dev-cpp/gtkmm:3.0 + dev-cpp/nlohmann_json" +DEPEND="${RDEPEND}" + +IUSE="+bar +dmenu +grid" + +src_configure() { + meson_src_configure $(meson_use bar) $(meson_use dmenu) $(meson_use grid) +} + +src_install() { + meson_src_install + + insinto /usr/share/icons/nwg-launchers + doins -r "${FILESDIR}"/. +} diff --git a/gui-apps/nwg-launchers/nwg-launchers-9999.ebuild b/gui-apps/nwg-launchers/nwg-launchers-9999.ebuild index dee57da34a..914a82d851 100644 --- a/gui-apps/nwg-launchers/nwg-launchers-9999.ebuild +++ b/gui-apps/nwg-launchers/nwg-launchers-9999.ebuild @@ -15,7 +15,7 @@ inherit meson DESCRIPTION="GTK+ launchers for sway, i3 and some other WMs" HOMEPAGE="https://github.com/nwg-piotr/nwg-launchers" -LICENSE="GPL-3" +LICENSE="GPL-3 CC-BY-SA-3.0" SLOT="0" @@ -27,8 +27,13 @@ DEPEND="${RDEPEND}" IUSE="+bar +dmenu +grid" -RESTRICT="mirror test" - src_configure() { meson_src_configure $(meson_use bar) $(meson_use dmenu) $(meson_use grid) } + +src_install() { + meson_src_install + + insinto /usr/share/icons/nwg-launchers + doins -r "${FILESDIR}"/. +}