xfce-extra/xfce4-kbdleds-plugin: Port to EAPI=6
authorMichał Górny <mgorny@gentoo.org>
Sun, 8 Apr 2018 08:49:24 +0000 (10:49 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 8 Apr 2018 08:51:10 +0000 (10:51 +0200)
xfce-extra/xfce4-kbdleds-plugin/xfce4-kbdleds-plugin-0.0.6-r1.ebuild [new file with mode: 0644]

diff --git a/xfce-extra/xfce4-kbdleds-plugin/xfce4-kbdleds-plugin-0.0.6-r1.ebuild b/xfce-extra/xfce4-kbdleds-plugin/xfce4-kbdleds-plugin-0.0.6-r1.ebuild
new file mode 100644 (file)
index 0000000..6b6f67c
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2-utils
+
+DESCRIPTION="A panel plug-in to show state of Caps, Num and Scroll Lock keys"
+HOMEPAGE="https://goodies.xfce.org/projects/panel-plugins/xfce4-kbdleds-plugin"
+SRC_URI="http://compas.com.ua/oco/file/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=xfce-base/libxfce4ui-4.8
+       >=xfce-base/libxfce4util-4.8
+       >=xfce-base/xfce4-panel-4.8
+       >=x11-libs/gtk+-2.20:2"
+DEPEND="${RDEPEND}
+       dev-util/intltool
+       virtual/pkgconfig
+       sys-devel/gettext"
+
+src_install() {
+       default
+       find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+}