diff options
author | Elijah El Lazkani <ThyArmageddon+GentooOverlay@Gmail.com> | 2013-03-21 20:09:32 -0400 |
---|---|---|
committer | Elijah El Lazkani <ThyArmageddon+GentooOverlay@Gmail.com> | 2013-03-21 20:09:32 -0400 |
commit | 12dab9a5daccf89c99d7aa64a21ff9798b6d436d (patch) | |
tree | 89b937d27e22447e5cc831c43741e3c6a1f08599 | |
parent | Minor changes to the tree permissions... (diff) | |
download | Armageddon-12dab9a5daccf89c99d7aa64a21ff9798b6d436d.tar.gz Armageddon-12dab9a5daccf89c99d7aa64a21ff9798b6d436d.tar.bz2 Armageddon-12dab9a5daccf89c99d7aa64a21ff9798b6d436d.zip |
Added GdMap 0.8.1...
-rw-r--r-- | sys-fs/gdmap/Manifest | 1 | ||||
-rw-r--r-- | sys-fs/gdmap/files/gtk-fix.patch | 39 | ||||
-rw-r--r-- | sys-fs/gdmap/gdmap-0.8.1.ebuild | 48 | ||||
-rw-r--r-- | sys-fs/gdmap/metadata.xml | 9 |
4 files changed, 97 insertions, 0 deletions
diff --git a/sys-fs/gdmap/Manifest b/sys-fs/gdmap/Manifest new file mode 100644 index 0000000..87b50f4 --- /dev/null +++ b/sys-fs/gdmap/Manifest @@ -0,0 +1 @@ +DIST gdmap-0.8.1.tar.gz 190823 SHA256 a200c98004b349443f853bf611e49941403fce46f2335850913f85c710a2285b SHA512 3aaf4da393aaafc350703962c05bdc2ecd8f244a9a1d614011d2073dbbd3c6bd01b77e3794068f5fc0ce2e7adb39c75a8856f2df070c7bbb685c03b976df0cf5 WHIRLPOOL ab67fd92990123b25c77d63384eed4632e4c952dd7c05458c409f20e5df97be06a3c89f1e07de7baae94c96a9761b5e092730ca3466e35e113870c099a745774 diff --git a/sys-fs/gdmap/files/gtk-fix.patch b/sys-fs/gdmap/files/gtk-fix.patch new file mode 100644 index 0000000..e82afe2 --- /dev/null +++ b/sys-fs/gdmap/files/gtk-fix.patch @@ -0,0 +1,39 @@ +--- src/gui_support.c ++++ src/gui_support.c +@@ -85,7 +85,11 @@ + const char* text; + + (void)event; ++#if GTK_CHECK_VERSION(2,20,0) ++ if (gtk_widget_get_sensitive(GTK_WIDGET(label))) { ++#else + if (GTK_WIDGET_SENSITIVE(label)) { ++#endif + char* temp; + + text = g_object_get_data(G_OBJECT(label), "label"); +@@ -129,7 +133,11 @@ + void ui_event_label_set_sensitive(GtkWidget* ebox, gboolean set) { + gpointer callback = g_object_get_data(G_OBJECT(ebox), "callback"); + GtkWidget* child = GTK_BIN(ebox)->child; ++#if GTK_CHECK_VERSION(2,20,0) ++ if (gtk_widget_get_sensitive(child) == set) return; ++#else + if (GTK_WIDGET_SENSITIVE(child) == set) return; ++#endif + + if (set && !callback) return; + gtk_widget_set_sensitive(child, set); +@@ -164,8 +172,11 @@ + // GDK_FOCUS_CHANGE_MASK | + GDK_ENTER_NOTIFY_MASK | + GDK_LEAVE_NOTIFY_MASK); ++#if GTK_CHECK_VERSION(2,22,0) ++ gtk_widget_set_can_focus(ebox, TRUE); ++#else + GTK_WIDGET_SET_FLAGS(ebox, GTK_CAN_FOCUS); +- ++#endif + gtk_widget_show(ebox); + + temp = g_strdup_printf(EVENT_FMT, text); diff --git a/sys-fs/gdmap/gdmap-0.8.1.ebuild b/sys-fs/gdmap/gdmap-0.8.1.ebuild new file mode 100644 index 0000000..28d97d6 --- /dev/null +++ b/sys-fs/gdmap/gdmap-0.8.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit eutils autotools gnome2-utils + +DESCRIPTION=" GdMap is a tool which allows to visualize disk space" +HOMEPAGE="http://gdmap.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="" + +RDEPEND="dev-libs/glib:2 +x11-libs/gtk+:2 +dev-libs/libxml2:2" +DEPEND="${RDEPEND} +dev-util/intltool +sys-devel/gettext" + +src_prepare() { + epatch "${FILESDIR}/gtk-fix.patch" + eautoreconf +} + +src_install() { + dobin src/${PN} + doicon -s 256 data/${PN}_icon.png + make_desktop_entry gdmap GdMap gdmap_icon "Filesystem;Utility;GTK;" + doman data/${PN}.1 + domo po/*.gmo +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/sys-fs/gdmap/metadata.xml b/sys-fs/gdmap/metadata.xml new file mode 100644 index 0000000..710f3f7 --- /dev/null +++ b/sys-fs/gdmap/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>ThyArmageddon+Gentoo@Gmail.com</email> + <name>Elijah El Lazkani</name> + </maintainer> + <longdescription lang="en">GdMap is a tool which allows to visualize disk space</longdescription> +</pkgmetadata> |