summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2007-10-21 12:18:52 +0000
committerCédric Krier <cedk@gentoo.org>2007-10-21 12:18:52 +0000
commitc19405f567890cc7ea5288c11082954182babe42 (patch)
tree1f6282299a9159e7df505936bb353385a1c07fcf /app-laptop/pommed
parentversion bump (diff)
downloadgentoo-2-c19405f567890cc7ea5288c11082954182babe42.tar.gz
gentoo-2-c19405f567890cc7ea5288c11082954182babe42.tar.bz2
gentoo-2-c19405f567890cc7ea5288c11082954182babe42.zip
Version bump
(Portage version: 2.1.3.9)
Diffstat (limited to 'app-laptop/pommed')
-rw-r--r--app-laptop/pommed/ChangeLog8
-rw-r--r--app-laptop/pommed/files/digest-pommed-1.103
-rw-r--r--app-laptop/pommed/files/pommed-1.10.patch21
-rw-r--r--app-laptop/pommed/pommed-1.10.ebuild97
4 files changed, 128 insertions, 1 deletions
diff --git a/app-laptop/pommed/ChangeLog b/app-laptop/pommed/ChangeLog
index 9a8b763f93e5..eaa2a5857093 100644
--- a/app-laptop/pommed/ChangeLog
+++ b/app-laptop/pommed/ChangeLog
@@ -1,6 +1,12 @@
# 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.11 2007/09/09 00:30:36 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v 1.12 2007/10/21 12:18:51 cedk Exp $
+
+*pommed-1.10 (21 Oct 2007)
+
+ 21 Oct 2007; Cédric Krier <cedk@gentoo.org> +files/pommed-1.10.patch,
+ +pommed-1.10.ebuild:
+ Version bump
09 Sep 2007; Joseph Jezak <josejx@gentoo.org> pommed-1.5.ebuild,
pommed-1.7.ebuild, pommed-1.8.ebuild:
diff --git a/app-laptop/pommed/files/digest-pommed-1.10 b/app-laptop/pommed/files/digest-pommed-1.10
new file mode 100644
index 000000000000..ea9b7f135482
--- /dev/null
+++ b/app-laptop/pommed/files/digest-pommed-1.10
@@ -0,0 +1,3 @@
+MD5 7c149a142e61af6a2694e5ab275852a9 pommed-1.10.tar.gz 985681
+RMD160 8b3948ca9fa47dbbe7f25b1dcf192eb5b6b46575 pommed-1.10.tar.gz 985681
+SHA256 75419f06630501d36160a110659b9bdee221213f0a867f9553d7105cba491db7 pommed-1.10.tar.gz 985681
diff --git a/app-laptop/pommed/files/pommed-1.10.patch b/app-laptop/pommed/files/pommed-1.10.patch
new file mode 100644
index 000000000000..f5227d3376df
--- /dev/null
+++ b/app-laptop/pommed/files/pommed-1.10.patch
@@ -0,0 +1,21 @@
+diff -ru pommed-1.10~/pommed/Makefile pommed-1.10/pommed/Makefile
+--- pommed-1.10~/pommed/Makefile 2007-10-21 14:04:18.000000000 +0200
++++ pommed-1.10/pommed/Makefile 2007-10-21 14:05:16.000000000 +0200
+@@ -14,7 +14,7 @@
+ CONFUSE_CFLAGS = $(shell pkg-config libconfuse --cflags)
+ CONFUSE_LIBS = $(shell pkg-config libconfuse --libs)
+
+-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS)
++CFLAGS += -g -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS)
+
+ ifeq ($(ARCH), ppc)
+ OFLIB ?=
+@@ -39,7 +39,7 @@
+
+ else
+
+-LDFLAGS = -lz -lsmbios $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS)
++LDFLAGS = -lz -lsmbios -lstdc++ $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS)
+
+ SOURCES = pommed.c cd_eject.c evdev.c conffile.c audio.c dbus.c power.c beep.c \
+ mactel/x1600_backlight.c mactel/gma950_backlight.c \
diff --git a/app-laptop/pommed/pommed-1.10.ebuild b/app-laptop/pommed/pommed-1.10.ebuild
new file mode 100644
index 000000000000..14b9318467df
--- /dev/null
+++ b/app-laptop/pommed/pommed-1.10.ebuild
@@ -0,0 +1,97 @@
+# 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.10.ebuild,v 1.1 2007/10/21 12:18:51 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"
+ALIOTH_NUMBER="2156"
+SRC_URI="http://alioth.debian.org/frs/download.php/${ALIOTH_NUMBER}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gtk X"
+
+DEPEND="media-libs/alsa-lib
+ x86? ( sys-apps/pciutils
+ >=sys-libs/libsmbios-0.13.6 )
+ amd64? ( sys-apps/pciutils
+ >=sys-libs/libsmbios-0.13.6 )
+ dev-libs/confuse
+ sys-apps/dbus
+ sys-libs/zlib
+ gtk? ( >=x11-libs/gtk+-2
+ >=gnome-base/libglade-2
+ media-libs/audiofile )
+ X? ( x11-libs/libX11 )"
+RDEPEND="${DEPEND}
+ virtual/eject"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch ${FILESDIR}/${P}.patch
+}
+
+src_compile() {
+ cd "${S}"/pommed
+ emake CC="$(tc-getCC)" OFLIB=1 || 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
+ if use x86 || use amd64; then
+ newins pommed.conf.mactel pommed.conf
+ elif use ppc; then
+ newins pommed.conf.pmac pommed.conf
+ fi
+
+ insinto /etc/dbus-1/system.d
+ newins dbus-policy.conf pommed.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
+ doins gpomme/gpomme-c.desktop
+ insinto /usr/share/gpomme/
+ doins -r gpomme/themes
+ doins gpomme/gpomme.glade
+ fi
+
+ if use X ; then
+ dobin wmpomme/wmpomme
+ fi
+}