diff options
author | Cédric Krier <cedk@gentoo.org> | 2007-03-04 19:31:03 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2007-03-04 19:31:03 +0000 |
commit | 1aa3e7a72ee6102e9180d047657c2ba2164402f2 (patch) | |
tree | 33e9a3c2926d78762ff441eb68f5c47db0a93e35 /app-laptop | |
parent | Version bump. (diff) | |
download | gentoo-2-1aa3e7a72ee6102e9180d047657c2ba2164402f2.tar.gz gentoo-2-1aa3e7a72ee6102e9180d047657c2ba2164402f2.tar.bz2 gentoo-2-1aa3e7a72ee6102e9180d047657c2ba2164402f2.zip |
app-laptop/pommed: New ebuild for bug #163497
(Portage version: 2.1.2-r9)
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/pommed/ChangeLog | 11 | ||||
-rw-r--r-- | app-laptop/pommed/Manifest | 24 | ||||
-rw-r--r-- | app-laptop/pommed/files/digest-pommed-1.2 | 3 | ||||
-rw-r--r-- | app-laptop/pommed/files/pommed-1.2.patch | 33 | ||||
-rwxr-xr-x | app-laptop/pommed/files/pommed.rc | 19 | ||||
-rw-r--r-- | app-laptop/pommed/metadata.xml | 14 | ||||
-rw-r--r-- | app-laptop/pommed/pommed-1.2.ebuild | 87 |
7 files changed, 191 insertions, 0 deletions
diff --git a/app-laptop/pommed/ChangeLog b/app-laptop/pommed/ChangeLog new file mode 100644 index 000000000000..c79948d07076 --- /dev/null +++ b/app-laptop/pommed/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-laptop/pommed +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v 1.1 2007/03/04 19:31:03 cedk Exp $ + +*pommed-1.2 (04 Mar 2007) + + 04 Mar 2007; Cedric Krier <cedk@gentoo.org> +files/pommed-1.2.patch, + +files/pommed.rc, +metadata.xml, +pommed-1.2.ebuild: + New ebuild for bug #163497 thanks to Daniel Vianna, Guillaume Pujol, Markus + Rothe + diff --git a/app-laptop/pommed/Manifest b/app-laptop/pommed/Manifest new file mode 100644 index 000000000000..6ecd2c2df2fe --- /dev/null +++ b/app-laptop/pommed/Manifest @@ -0,0 +1,24 @@ +AUX pommed-1.2.patch 1205 RMD160 c1924e2878f8edf741e35aed175c7b73a1c817a0 SHA1 f8dec5f4921871b9b5491175784ad5016736ddda SHA256 0614b86c9221e377f77fa01ff91e0d90ba1f88c8b6db48b04d9d2718cd0384b6 +MD5 07a710781d74a7a5764c2f09e4dd5cd2 files/pommed-1.2.patch 1205 +RMD160 c1924e2878f8edf741e35aed175c7b73a1c817a0 files/pommed-1.2.patch 1205 +SHA256 0614b86c9221e377f77fa01ff91e0d90ba1f88c8b6db48b04d9d2718cd0384b6 files/pommed-1.2.patch 1205 +AUX pommed.rc 372 RMD160 04acb2328527483af1ebcc50ce723b90df859b32 SHA1 8c1f734a4e07c7347c6e22fdb258eebc23fa0722 SHA256 986d87fd7fd87b0fe43d1fb01d357aa70575f34e90d2e37df5d69aa5134b9d92 +MD5 1876e395575ae94ce382e769bf8ed8af files/pommed.rc 372 +RMD160 04acb2328527483af1ebcc50ce723b90df859b32 files/pommed.rc 372 +SHA256 986d87fd7fd87b0fe43d1fb01d357aa70575f34e90d2e37df5d69aa5134b9d92 files/pommed.rc 372 +DIST pommed-1.2.tar.gz 833703 RMD160 408d2423a27a41db855f6a7167b3cacc202679fe SHA1 f08ec24227a52c9f7c7218c74a5f017340fdd261 SHA256 9d902eb7d227c289fb5f888b7e518ad431228501109eb4b7c22839b7a0142268 +EBUILD pommed-1.2.ebuild 1823 RMD160 5fd3cace5e4151b94e2348294408d8850f4690a7 SHA1 fcdbb4b91b9f275ffae0a6d8e76cade5f57125f9 SHA256 85468140cff6aa64627342623ca8137b15cbd075b3fb934fb847a33fd19d765b +MD5 d931ce17b5ac227d6cfb8326ff2ce83f pommed-1.2.ebuild 1823 +RMD160 5fd3cace5e4151b94e2348294408d8850f4690a7 pommed-1.2.ebuild 1823 +SHA256 85468140cff6aa64627342623ca8137b15cbd075b3fb934fb847a33fd19d765b pommed-1.2.ebuild 1823 +MISC ChangeLog 358 RMD160 501dafa9c2efa7bd64ed761c910cb5dd363247ce SHA1 a7b2c74a8caf411e4151fc6d182310017a30f29f SHA256 87d81c2a9ef7396431a404f029feb8874b8a828a80e56dec40a4a601e3768989 +MD5 3ed5ba7d109471525224f811fd044fcb ChangeLog 358 +RMD160 501dafa9c2efa7bd64ed761c910cb5dd363247ce ChangeLog 358 +SHA256 87d81c2a9ef7396431a404f029feb8874b8a828a80e56dec40a4a601e3768989 ChangeLog 358 +MISC metadata.xml 650 RMD160 f7daee13a933d338a74f6d96ab6cf50ca14c41fe SHA1 55e4fd4f2955d2874a1a6b01897d3ee979a9b886 SHA256 98d730e05d016004e5fe2e7de97c0b2d08ec7f6c5a3521bda0d6ab3d16c0e327 +MD5 d67d39ae1e7d303eecb7e6a896c00762 metadata.xml 650 +RMD160 f7daee13a933d338a74f6d96ab6cf50ca14c41fe metadata.xml 650 +SHA256 98d730e05d016004e5fe2e7de97c0b2d08ec7f6c5a3521bda0d6ab3d16c0e327 metadata.xml 650 +MD5 df5a9fdf9d032e01906f55c26a34aec2 files/digest-pommed-1.2 232 +RMD160 cc3e05221d218d2c2f294271d1421bb16386010a files/digest-pommed-1.2 232 +SHA256 00c00d132b45d094b1b661226106358ad194b9012a46af7fd34d7b85018f0b5d files/digest-pommed-1.2 232 diff --git a/app-laptop/pommed/files/digest-pommed-1.2 b/app-laptop/pommed/files/digest-pommed-1.2 new file mode 100644 index 000000000000..a11d458c7239 --- /dev/null +++ b/app-laptop/pommed/files/digest-pommed-1.2 @@ -0,0 +1,3 @@ +MD5 00be2db3f5648755da2ba75d1f35f0b4 pommed-1.2.tar.gz 833703 +RMD160 408d2423a27a41db855f6a7167b3cacc202679fe pommed-1.2.tar.gz 833703 +SHA256 9d902eb7d227c289fb5f888b7e518ad431228501109eb4b7c22839b7a0142268 pommed-1.2.tar.gz 833703 diff --git a/app-laptop/pommed/files/pommed-1.2.patch b/app-laptop/pommed/files/pommed-1.2.patch new file mode 100644 index 000000000000..83281f41e831 --- /dev/null +++ b/app-laptop/pommed/files/pommed-1.2.patch @@ -0,0 +1,33 @@ +diff -ru pommed-1.2~/gpomme/conffile.c pommed-1.2/gpomme/conffile.c +--- pommed-1.2~/gpomme/conffile.c 2007-03-04 19:12:57.000000000 +0100 ++++ pommed-1.2/gpomme/conffile.c 2007-03-04 20:12:36.000000000 +0100 +@@ -32,6 +32,8 @@ + #include "gpomme.h" + #include "theme.h" + ++#include "conffile.h" ++ + #define CONFFILE "/.gpommerc" + + static cfg_opt_t cfg_opts[] = +diff -ru pommed-1.2~/pommed/Makefile pommed-1.2/pommed/Makefile +--- pommed-1.2~/pommed/Makefile 2007-03-04 19:12:57.000000000 +0100 ++++ pommed-1.2/pommed/Makefile 2007-03-04 20:09:49.000000000 +0100 +@@ -11,7 +11,7 @@ + CONFUSE_CFLAGS = $(shell pkg-config libconfuse --cflags) + CONFUSE_LIBS = $(shell pkg-config libconfuse --libs) + +-CFLAGS = -g -O2 -Wall $(CONFUSE_CFLAGS) $(DBUS_CFLAGS) $(ALSA_CFLAGS) ++CFLAGS += -Wall $(CONFUSE_CFLAGS) $(DBUS_CFLAGS) $(ALSA_CFLAGS) + + ifeq ($(ARCH), ppc) + LDFLAGS = -lz $(CONFUSE_LIBS) $(DBUS_LIBS) $(ALSA_LIBS) +@@ -29,7 +29,7 @@ + + else + +-LDFLAGS = -lz -lsmbios $(CONFUSE_LIBS) $(DBUS_LIBS) $(ALSA_LIBS) ++LDFLAGS = -lz -lsmbios -lstdc++ $(CONFUSE_LIBS) $(DBUS_LIBS) $(ALSA_LIBS) + + SOURCES = pommed.c cd_eject.c evdev.c conffile.c audio.c dbus.c \ + mactel/x1600_backlight.c mactel/gma950_backlight.c \ diff --git a/app-laptop/pommed/files/pommed.rc b/app-laptop/pommed/files/pommed.rc new file mode 100755 index 000000000000..a214c826b3f5 --- /dev/null +++ b/app-laptop/pommed/files/pommed.rc @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need dbus +} + +start() { + ebegin "Running pommed daemon" + start-stop-daemon --start --quiet --exec /usr/bin/pommed + eend $? +} + +stop() { + ebegin "Stopping pommed daemon" + start-stop-daemon --stop --pidfile /var/run/pommed.pid + eend $? +} diff --git a/app-laptop/pommed/metadata.xml b/app-laptop/pommed/metadata.xml new file mode 100644 index 000000000000..589747db7201 --- /dev/null +++ b/app-laptop/pommed/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>cedk@gentoo.org</email> +</maintainer> +<longdescription> pommed handles the hotkeys found on the Apple MacBook Pro, +MacBook and PowerBook laptops and adjusts the LCD backlight, sound volume, +keyboard backlight or ejects the CD-ROM drive accordingly. +pommed also monitors the ambient light sensors to automatically light up the +keyboard backlight on the MacBook Pro and the latest PowerBook. +Optional support for the Apple Remote control is available.</longdescription> +</pkgmetadata> diff --git a/app-laptop/pommed/pommed-1.2.ebuild b/app-laptop/pommed/pommed-1.2.ebuild new file mode 100644 index 000000000000..3a9f907dc206 --- /dev/null +++ b/app-laptop/pommed/pommed-1.2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/pommed-1.2.ebuild,v 1.1 2007/03/04 19:31:03 cedk Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Daemon managing special features such as screen and keyboard \ +backlight on Apple MacBook Pro/PowerBook laptops" +HOMEPAGE="http://technologeek.org/projects/pommed/index.html" +SRC_URI="http://alioth.debian.org/frs/download.php/1831/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="gtk X" + +DEPEND="sys-apps/pciutils + media-libs/alsa-lib + sys-libs/libsmbios + dev-libs/confuse + sys-apps/dbus + sys-libs/zlib + gtk? ( x11-libs/gtk+ + media-libs/audiofile ) + X? ( x11-libs/libX11 )" +RDEPEND="${DEPEND} + sys-apps/eject" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch ${FILESDIR}/${P}.patch +} + +src_compile() { + cd "${S}"/pommed + emake CC=$(tc-getCC) || die "emake pommed failed" + + if use gtk; then + cd "${S}"/gpomme + local POFILES="" + for LANG in ${LINGUAS}; do + if [ -f po/${LANG}.po ]; then + POFILES="${POFILES} po/${LANG}.po" + fi + done + emake CC=$(tc-getCC) POFILES="${POFILES}" || die "emake gpomme failed" + fi + if use X; then + cd "${S}"/wmpomme + emake CC=$(tc-getCC) || die "emake wmpomme failed" + fi +} + +src_install() { + insinto /etc + doins pommed.conf.{pmac,mactel} + + insinto /etc/dbus-1/system.d + doins dbus-policy.conf + + dobin pommed/pommed + + newinitd ${FILESDIR}/pommed.rc pommed + + dodoc AUTHORS ChangeLog README TODO + + if use gtk ; then + dobin gpomme/gpomme + for LANG in ${LINGUAS}; do + if [ -f gpomme/po/${LANG}.mo ]; then + einfo "Installing lang ${LANG}" + insinto /usr/share/locale/${LANG}/LC_MESSAGES/ + doins gpomme/po/${LANG}.mo + fi + done + + insinto /usr/share/applications + doins gpomme/gpomme.desktop + insinto /usr/share/gpomme/ + doins -r gpomme/themes + fi + + if use X ; then + dobin wmpomme/wmpomme + fi +} |