diff options
author | Michael Weber <xmw@gentoo.org> | 2010-08-24 15:14:12 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2010-08-24 15:14:12 +0000 |
commit | ab971b59655c932643f133e171d5be068c5c0416 (patch) | |
tree | 1bdeafd2aafc8717e2c6271f3dc5985e679df303 /gnome-extra | |
parent | Migrate changes from Gentoo Prefix overlay. KEYWORDS and add eautoreconf. App... (diff) | |
download | historical-ab971b59655c932643f133e171d5be068c5c0416.tar.gz historical-ab971b59655c932643f133e171d5be068c5c0416.tar.bz2 historical-ab971b59655c932643f133e171d5be068c5c0416.zip |
Initial import for gnome-hdaps-applet
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'gnome-extra')
5 files changed, 97 insertions, 0 deletions
diff --git a/gnome-extra/gnome-hdaps-applet/ChangeLog b/gnome-extra/gnome-hdaps-applet/ChangeLog new file mode 100644 index 000000000000..04ab622bfd7f --- /dev/null +++ b/gnome-extra/gnome-hdaps-applet/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for gnome-extra/gnome-hdaps-applet +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-hdaps-applet/ChangeLog,v 1.1 2010/08/24 15:14:12 xmw Exp $ + +*gnome-hdaps-applet-20081204 (24 Aug 2010) + + 24 Aug 2010; Michael Weber (xmw) <xmw@gentoo.org> + +gnome-hdaps-applet-20081204.ebuild, + +files/gnome-hdaps-applet-20081204-include-and-unused.patch, + +metadata.xml: + Initial commit for gnome-hdaps-applet. Fixes bug #272212. + diff --git a/gnome-extra/gnome-hdaps-applet/Manifest b/gnome-extra/gnome-hdaps-applet/Manifest new file mode 100644 index 000000000000..b661516b899c --- /dev/null +++ b/gnome-extra/gnome-hdaps-applet/Manifest @@ -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 1389 RMD160 a31ba8acbf62c6b7ba0943ca7a5ed0e17367a546 SHA1 f2da8ce110c7ca76fec98139629b29c30b7f774b SHA256 20cf71687c713bb108caaa8c017790bd68e49131ea645b5038c2249b13006dfb +MISC ChangeLog 506 RMD160 53906c158d07cc69d50523aa807cbca488c87c0b SHA1 1592eedd5ca1b0c9357996793ee1b89aa206d671 SHA256 bd913b78d547d976c3c340bc76d7c6beab23ef6bca7dac985b445da8acf98a48 +MISC metadata.xml 251 RMD160 41f1cd13c3e8d490821e3851b65bc9ae63fefd4d SHA1 777aaf72323d6ab574208f255222d0c79db13f58 SHA256 4fa54c21d7b0f911d48ebe655b51364f2dff42d2d906bf63752cad5e12b7b4a2 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 index 000000000000..4a285747bf82 --- /dev/null +++ b/gnome-extra/gnome-hdaps-applet/files/gnome-hdaps-applet-20081204-include-and-unused.patch @@ -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 index 000000000000..97883901b161 --- /dev/null +++ b/gnome-extra/gnome-hdaps-applet/gnome-hdaps-applet-20081204.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-hdaps-applet/gnome-hdaps-applet-20081204.ebuild,v 1.1 2010/08/24 15:14:12 xmw Exp $ + +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 index 000000000000..3cce2cd0af2f --- /dev/null +++ b/gnome-extra/gnome-hdaps-applet/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<email>xmw@gentoo.org</email> +<name>Michael Weber (xmw)</name> +</maintainer> +</pkgmetadata> + |