summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2005-11-13 12:22:46 +0000
committerMarius Mauch <genone@gentoo.org>2005-11-13 12:22:46 +0000
commit79bba2cd9f5c01023d2df2a06b7c6b752236d2d3 (patch)
tree46ffe29aecc7de3cfdbd49446d8dd332f80a8800 /mail-client
parentApply the gcc4 patch to 0.8.9 too, bug #110361. (diff)
downloadgentoo-2-79bba2cd9f5c01023d2df2a06b7c6b752236d2d3.tar.gz
gentoo-2-79bba2cd9f5c01023d2df2a06b7c6b752236d2d3.tar.bz2
gentoo-2-79bba2cd9f5c01023d2df2a06b7c6b752236d2d3.zip
new package
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/sylpheed-claws-acpi-notifier/ChangeLog12
-rw-r--r--mail-client/sylpheed-claws-acpi-notifier/Manifest3
-rw-r--r--mail-client/sylpheed-claws-acpi-notifier/files/acpi_notifier-0.3-ibm.patch19
-rw-r--r--mail-client/sylpheed-claws-acpi-notifier/files/digest-sylpheed-claws-acpi-notifier-0.31
-rw-r--r--mail-client/sylpheed-claws-acpi-notifier/metadata.xml15
-rw-r--r--mail-client/sylpheed-claws-acpi-notifier/sylpheed-claws-acpi-notifier-0.3.ebuild56
6 files changed, 106 insertions, 0 deletions
diff --git a/mail-client/sylpheed-claws-acpi-notifier/ChangeLog b/mail-client/sylpheed-claws-acpi-notifier/ChangeLog
new file mode 100644
index 000000000000..aeb0c41e059c
--- /dev/null
+++ b/mail-client/sylpheed-claws-acpi-notifier/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for mail-client/sylpheed-claws-acpi-notifier
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/sylpheed-claws-acpi-notifier/ChangeLog,v 1.1 2005/11/13 12:22:46 genone Exp $
+
+*sylpheed-claws-acpi-notifier-0.3 (13 Nov 2005)
+
+ 13 Nov 2005; Marius Mauch <genone@gentoo.org>
+ +files/acpi_notifier-0.3-ibm.patch,
+ +sylpheed-claws-acpi-notifier-0.3.ebuild:
+ New package, ebuild based on submission by TGL <degrenier@easyconnect.fr>
+ from bug 111481.
+
diff --git a/mail-client/sylpheed-claws-acpi-notifier/Manifest b/mail-client/sylpheed-claws-acpi-notifier/Manifest
new file mode 100644
index 000000000000..d55d98d9bf81
--- /dev/null
+++ b/mail-client/sylpheed-claws-acpi-notifier/Manifest
@@ -0,0 +1,3 @@
+MD5 178a873ac50643d22ef0bea2cbf11f15 files/acpi_notifier-0.3-ibm.patch 611
+MD5 306d22889cf1447ec6182916ecd22260 files/digest-sylpheed-claws-acpi-notifier-0.3 92
+MD5 c5242ad581c26c98a098c01979726265 sylpheed-claws-acpi-notifier-0.3.ebuild 1390
diff --git a/mail-client/sylpheed-claws-acpi-notifier/files/acpi_notifier-0.3-ibm.patch b/mail-client/sylpheed-claws-acpi-notifier/files/acpi_notifier-0.3-ibm.patch
new file mode 100644
index 000000000000..0e79c790fbb5
--- /dev/null
+++ b/mail-client/sylpheed-claws-acpi-notifier/files/acpi_notifier-0.3-ibm.patch
@@ -0,0 +1,19 @@
+--- src/acpi_notifier.c.orig 2005-11-04 14:22:00.000000000 +0100
++++ src/acpi_notifier.c 2005-11-04 14:22:05.000000000 +0100
+@@ -55,6 +55,7 @@
+ {"Other", "", "", ""},
+ {"ACER", "1", "0", "/proc/driver/acerhk/led"},
+ {"ASUS", "1", "0", "/proc/acpi/asus/mled"},
++ {"IBM", "7 on", "7 off", "/proc/acpi/ibm/led"},
+ {NULL, NULL, NULL, NULL}
+ };
+
+@@ -545,7 +546,7 @@
+ if (on) {
+ fwrite(acpiprefs.on_param, 1, strlen(acpiprefs.on_param), fp);
+ } else {
+- fwrite(acpiprefs.off_param, 1, strlen(acpiprefs.on_param), fp);
++ fwrite(acpiprefs.off_param, 1, strlen(acpiprefs.off_param), fp);
+ }
+ fclose(fp);
+ }
diff --git a/mail-client/sylpheed-claws-acpi-notifier/files/digest-sylpheed-claws-acpi-notifier-0.3 b/mail-client/sylpheed-claws-acpi-notifier/files/digest-sylpheed-claws-acpi-notifier-0.3
new file mode 100644
index 000000000000..bf1ee54b79de
--- /dev/null
+++ b/mail-client/sylpheed-claws-acpi-notifier/files/digest-sylpheed-claws-acpi-notifier-0.3
@@ -0,0 +1 @@
+MD5 3c53408600fca845f14790dbfe715383 sylpheed-claws-external-plugins-1.9.100.tar.gz 3191395
diff --git a/mail-client/sylpheed-claws-acpi-notifier/metadata.xml b/mail-client/sylpheed-claws-acpi-notifier/metadata.xml
new file mode 100644
index 000000000000..770af1a84c86
--- /dev/null
+++ b/mail-client/sylpheed-claws-acpi-notifier/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-mail</herd>
+<maintainer>
+ <email>genone@gentoo.org</email>
+ <description>Primary maintainer</description>
+</maintainer>
+<maintainer>
+ <email>seemant@gentoo.org</email>
+</maintainer>
+<maintainer>
+ <email>bcowan@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/mail-client/sylpheed-claws-acpi-notifier/sylpheed-claws-acpi-notifier-0.3.ebuild b/mail-client/sylpheed-claws-acpi-notifier/sylpheed-claws-acpi-notifier-0.3.ebuild
new file mode 100644
index 000000000000..b46e8650994d
--- /dev/null
+++ b/mail-client/sylpheed-claws-acpi-notifier/sylpheed-claws-acpi-notifier-0.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/sylpheed-claws-acpi-notifier/sylpheed-claws-acpi-notifier-0.3.ebuild,v 1.1 2005/11/13 12:22:46 genone Exp $
+
+inherit eutils
+
+MY_PN="${PN#sylpheed-claws-}"
+MY_PN="${MY_PN/-/_}"
+MY_P="${MY_PN}-${PV}"
+SC_BASE="1.9.100"
+
+DESCRIPTION="This plugin enables mail notification via LEDs on some laptops."
+HOMEPAGE="http://claws.sylpheed.org"
+SRC_URI="mirror://sourceforge/sylpheed-claws/sylpheed-claws-external-plugins-${SC_BASE}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+DEPEND=">=mail-client/sylpheed-claws-${SC_BASE}"
+
+S="${WORKDIR}/sylpheed-claws-external-plugins-${SC_BASE}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${MY_P}-ibm.patch"
+}
+
+src_install() {
+ make DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README
+
+ # kill useless files
+ rm -f ${D}usr/lib*/sylpheed-claws/plugins/*.{a,la}
+}
+
+pkg_postinst() {
+ PROC_IFACES="/proc/driver/acerhk/led /proc/acpi/asus/mled /proc/acpi/ibm/led"
+
+ local procfile
+ local message_shown=false
+
+ echo
+ for procfile in ${PROC_IFACES}; do
+ if [[ -f ${procfile} ]]; then
+ einfo "Make sure ${procfile} is writable by users of this plugin."
+ message_shown=true
+ fi
+ done
+ if ! $message_shown; then
+ einfo "To use this plugin, you will have to find the /proc interface"
+ einfo "that controls your LED. Whatever it is, make sure it's writable"
+ einfo "by users who will run this plugin."
+ fi
+ echo
+}