summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <perfinion@gentoo.org>2016-11-20 18:54:45 +0800
committerJason Zaman <perfinion@gentoo.org>2016-11-21 00:18:33 +0800
commit9da2545a243b8c618431675a83ea41a01e38058b (patch)
tree8e48fda9371cefcd294cace869d4082f5c816c7b /xfce-extra/xfce4-battery-plugin
parentdev-python/pyyaml: alpha stable wrt bug #544442 (diff)
downloadgentoo-9da2545a243b8c618431675a83ea41a01e38058b.tar.gz
gentoo-9da2545a243b8c618431675a83ea41a01e38058b.tar.bz2
gentoo-9da2545a243b8c618431675a83ea41a01e38058b.zip
xfce-extra/xfce4-battery-plugin: bump version and EAPI6
Package-Manager: portage-2.3.0
Diffstat (limited to 'xfce-extra/xfce4-battery-plugin')
-rw-r--r--xfce-extra/xfce4-battery-plugin/Manifest2
-rw-r--r--xfce-extra/xfce4-battery-plugin/xfce4-battery-plugin-1.1.0.ebuild (renamed from xfce-extra/xfce4-battery-plugin/xfce4-battery-plugin-1.0.99.ebuild)30
2 files changed, 22 insertions, 10 deletions
diff --git a/xfce-extra/xfce4-battery-plugin/Manifest b/xfce-extra/xfce4-battery-plugin/Manifest
index 33b36af8199f..b463eeda1e66 100644
--- a/xfce-extra/xfce4-battery-plugin/Manifest
+++ b/xfce-extra/xfce4-battery-plugin/Manifest
@@ -1,2 +1,2 @@
DIST xfce4-battery-plugin-1.0.5.tar.bz2 403505 SHA256 f659b1af40ab72c93448affaa693ab551827a5600ce9b97a799b7c2419bdeb11 SHA512 f49f33178a771b952442f498cee2c722146c9982cb27453e6547a7c7838eaa0a22588a7d2a56f189f7e9e7b90ed7e5ac7a4e6cfee55dc5e43d32c5ef95b20062 WHIRLPOOL c23fff115afc9b5660ccf64332d71123d2e9161d9d79c5d66cc7aca12e5d904836b51e314053e0b571a044d70dbc64f0bb9592e79596fc9ee87f56376e120735
-DIST xfce4-battery-plugin-1.0.99.tar.bz2 415377 SHA256 d0cf48209b969510da82201b00f7c959105ff63b473fa4cd76e011c784626c41 SHA512 5c9de4d8f688f450f19bfe09ef410c7a8e3049e43ce613aa2dc250ea9097721e2839357e60d2926a4d2812ef7178d079ba7caa8c9899cfac9b78c018bbbf503d WHIRLPOOL 10643cfb4f0c5dd2c6e85fdc979c130a027b5fcf52224a15b957c733267479e8d33451e5e89ab5d1a4669fbcefd0ebc20d19735f180bc2f90f008514825e88b9
+DIST xfce4-battery-plugin-1.1.0.tar.bz2 398621 SHA256 8c9deec8d95da4cc39d6d9091433e5822b6bbe07d80117045dd4dd3480427ece SHA512 d3f5b6d3657abfba2c4c5cb3ab8ddc87f4862f24eb614cb91af48332b3082c3dce7f32eb2e3cb8a9d501ddb01c6259c4fbfbab8ed9c221633e47eb17c623cf09 WHIRLPOOL c331731410c67ef6a231726f9797871daed0f7a95bb2bc167ed09c35ed8184ce51cac359f924cfe43065a134fc4aeb85655bc27ed930cc131cb4ed64faed1ffc
diff --git a/xfce-extra/xfce4-battery-plugin/xfce4-battery-plugin-1.0.99.ebuild b/xfce-extra/xfce4-battery-plugin/xfce4-battery-plugin-1.1.0.ebuild
index 06113d665eec..d407c3f455f7 100644
--- a/xfce-extra/xfce4-battery-plugin/xfce4-battery-plugin-1.0.99.ebuild
+++ b/xfce-extra/xfce4-battery-plugin/xfce4-battery-plugin-1.1.0.ebuild
@@ -2,8 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
-inherit linux-info xfconf
+EAPI=6
+inherit linux-info fdo-mime gnome2-utils
DESCRIPTION="A battery monitor panel plugin for the Xfce desktop environment"
HOMEPAGE="http://goodies.xfce.org/projects/panel-plugins/xfce4-battery-plugin"
@@ -12,7 +12,7 @@ SRC_URI="mirror://xfce/src/panel-plugins/${PN}/${PV%.*}/${P}.tar.bz2"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
-IUSE="debug kernel_linux"
+IUSE="kernel_linux"
RDEPEND=">=dev-libs/glib-2.24:2=
>=x11-libs/gtk+-3.14:3=
@@ -23,15 +23,27 @@ DEPEND="${RDEPEND}
dev-util/intltool
virtual/pkgconfig"
-pkg_setup() {
- XFCONF=(
- $(xfconf_use_debug)
- )
-
- DOCS=( AUTHORS ChangeLog NEWS README )
+DOCS=( AUTHORS ChangeLog NEWS README )
+pkg_setup() {
if use kernel_linux; then
CONFIG_CHECK="~ACPI_BATTERY"
linux-info_pkg_setup
fi
}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}