]> Pileus Git - ~andy/sunrise/commitdiff
gnome-extra/gnome-hdaps-applet: New ebuild for bug 272212
authorMichael Weber <xmw@gentoo.org>
Fri, 9 Apr 2010 09:58:51 +0000 (09:58 +0000)
committerMichael Weber <xmw@gentoo.org>
Fri, 9 Apr 2010 09:58:51 +0000 (09:58 +0000)
svn path=/sunrise/; revision=10418

gnome-extra/gnome-hdaps-applet/ChangeLog [new file with mode: 0644]
gnome-extra/gnome-hdaps-applet/Manifest [new file with mode: 0644]
gnome-extra/gnome-hdaps-applet/files/gnome-hdaps-applet-20081204-include-and-unused.patch [new file with mode: 0644]
gnome-extra/gnome-hdaps-applet/gnome-hdaps-applet-20081204.ebuild [new file with mode: 0644]
gnome-extra/gnome-hdaps-applet/metadata.xml [new file with mode: 0644]

diff --git a/gnome-extra/gnome-hdaps-applet/ChangeLog b/gnome-extra/gnome-hdaps-applet/ChangeLog
new file mode 100644 (file)
index 0000000..4a2422c
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for gnome-extra/hdaps-applet
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  09 Apr 2010; Michael Weber (xmw) <gentoo@xmw.de>
+  +gnome-hdaps-applet-20081204.ebuild,
+  +files/gnome-hdaps-applet-20081204-include-and-unused.patch,
+  +metadata.xml:
+  New ebuild for bug 272212
+
diff --git a/gnome-extra/gnome-hdaps-applet/Manifest b/gnome-extra/gnome-hdaps-applet/Manifest
new file mode 100644 (file)
index 0000000..72bb120
--- /dev/null
@@ -0,0 +1,5 @@
+AUX gnome-hdaps-applet-20081204-include-and-unused.patch 532 RMD160 930f26d7eba8bdcacfe46cf75f63b60e80328f49 SHA1 311b9e42889f16e92c2766afd7d5762f0dfa4137 SHA256 462c0d89b89d50f2b14f622e16589b0a75867fb54161db445db8c1742e5c5051
+DIST gnome-hdaps-applet-20081204.tar.gz 7245 RMD160 5ccb511833e62a80874747bb986c3fc1c3d745f9 SHA1 53158981a7b70ba5d5de27f13e315abede3e8c6f SHA256 1f463c9d39e2c79e8b16cbeb95022997bf6851407d5dc7054545e1131e34da8d
+EBUILD gnome-hdaps-applet-20081204.ebuild 1265 RMD160 b07a6fab127d756da1081d4a1544726b03435a66 SHA1 78ce1c097dacae9460be5f53e67bf17c23116e2f SHA256 492ab1e77c337cb856ac53e9fcb26cbfaedbb602056788c75e28b87ba626faf4
+MISC ChangeLog 324 RMD160 66dea109c321b0e18a8802187cdae50502f88cc2 SHA1 7557795e8f5db868f3d75a9d08cec760bdbdd49e SHA256 350c9fa076c094df89654e0897857212a34138c74134a8f9c56056f7f5a6ec34
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/gnome-extra/gnome-hdaps-applet/files/gnome-hdaps-applet-20081204-include-and-unused.patch b/gnome-extra/gnome-hdaps-applet/files/gnome-hdaps-applet-20081204-include-and-unused.patch
new file mode 100644 (file)
index 0000000..4a28574
--- /dev/null
@@ -0,0 +1,20 @@
+--- gnome-hdaps-applet.c       2008-12-04 22:58:58.000000000 +0100
++++ gnome-hdaps-applet.c       2010-04-04 02:16:48.000000000 +0200
+@@ -21,6 +21,8 @@
+ #include <string.h>
+ #include <panel-applet.h>
+ #include <gtk/gtk.h>
++#include <unistd.h>
++#include <stdlib.h>
+ #define BUF_LEN                               32
+ #define SYSFS_PROTECT_FILE_HDA                "/sys/block/hda/queue/protect"
+@@ -50,8 +52,6 @@
+       GtkWidget *image = gdata;
+       GtkWidget *applet;
+       GtkTooltipsData *tooltips_data;
+-      static int timerval = 0;
+-      gchar *text_label;
+       int status;
+       applet = image->parent;
diff --git a/gnome-extra/gnome-hdaps-applet/gnome-hdaps-applet-20081204.ebuild b/gnome-extra/gnome-hdaps-applet/gnome-hdaps-applet-20081204.ebuild
new file mode 100644 (file)
index 0000000..1d26214
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+ETYPE=gcc-library
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="Visualization of the Hard Disc Active Protection System State as Gnome applet"
+HOMEPAGE="http://www.zen24593.zen.co.uk/hdaps/"
+SRC_URI="http://www.zen24593.zen.co.uk/hdaps/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="gnome-base/gnome-panel
+       x11-libs/gtk+:2"
+DEPEND="${COMMON_DEPEND}
+       dev-util/pkgconfig"
+RDEPEND="${COMMON_DEPEND}
+       app-laptop/hdapsd"
+
+S=${WORKDIR}
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-include-and-unused.patch
+}
+
+src_compile() {
+       $(tc-getCC) -c -Wall ${CFLAGS} \
+               $($(tc-getPKG_CONFIG) --cflags gtk+-2.0) \
+               $($(tc-getPKG_CONFIG) --cflags libpanelapplet-2.0) \
+               -o ${PN}.o ${PN}.c || die
+       $(tc-getCC) -Wall ${LDFLAGS} -Wl,--as-needed \
+               -o ${PN} ${PN}.o \
+               $($(tc-getPKG_CONFIG) --libs-only-L gtk+-2.0) \
+               $($(tc-getPKG_CONFIG) --libs-only-L libpanelapplet-2.0) \
+               -lgtk-x11-2.0 -lpanel-applet-2 || die
+}
+
+src_install() {
+       dobin ${PN} || die
+       insinto /usr/share/pixmaps/${PN}
+       doins hdaps-*.png || die
+       insinto /usr/$(get_libdir)/bonobo/servers
+       doins GNOME_HDAPS_StatusApplet.server || die
+}
diff --git a/gnome-extra/gnome-hdaps-applet/metadata.xml b/gnome-extra/gnome-hdaps-applet/metadata.xml
new file mode 100644 (file)
index 0000000..7e32869
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>