summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-laptop/pommed/ChangeLog8
-rw-r--r--app-laptop/pommed/files/digest-pommed-1.53
-rw-r--r--app-laptop/pommed/files/pommed-1.5.patch21
-rw-r--r--app-laptop/pommed/pommed-1.5.ebuild97
4 files changed, 128 insertions, 1 deletions
diff --git a/app-laptop/pommed/ChangeLog b/app-laptop/pommed/ChangeLog
index 58ca758fd6d2..6a567cf9524b 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.5 2007/05/14 21:31:45 cedk Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v 1.6 2007/05/21 20:54:14 cedk Exp $
+
+*pommed-1.5 (21 May 2007)
+
+ 21 May 2007; Cédric Krier <cedk@gentoo.org> +files/pommed-1.5.patch,
+ +pommed-1.5.ebuild:
+ Version bump
14 May 2007; Cédric Krier <cedk@gentoo.org> files/pommed.rc,
pommed-1.4.ebuild:
diff --git a/app-laptop/pommed/files/digest-pommed-1.5 b/app-laptop/pommed/files/digest-pommed-1.5
new file mode 100644
index 000000000000..3c20526294b3
--- /dev/null
+++ b/app-laptop/pommed/files/digest-pommed-1.5
@@ -0,0 +1,3 @@
+MD5 991742c5c2b3d5d2dda373b96619e732 pommed-1.5.tar.gz 924010
+RMD160 89ff695e38f081ca0266c45cea89df0345f0b9dc pommed-1.5.tar.gz 924010
+SHA256 ee7c668fcd5c200b70b0173d1adb348689e258c937038d9602c67cdccae1d132 pommed-1.5.tar.gz 924010
diff --git a/app-laptop/pommed/files/pommed-1.5.patch b/app-laptop/pommed/files/pommed-1.5.patch
new file mode 100644
index 000000000000..4c6a8d42e019
--- /dev/null
+++ b/app-laptop/pommed/files/pommed-1.5.patch
@@ -0,0 +1,21 @@
+diff -ru pommed-1.5~/pommed/Makefile pommed-1.5/pommed/Makefile
+--- pommed-1.5~/pommed/Makefile 2007-04-28 13:44:15.000000000 +0200
++++ pommed-1.5/pommed/Makefile 2007-05-21 22:44:23.000000000 +0200
+@@ -11,7 +11,7 @@
+ CONFUSE_CFLAGS = $(shell pkg-config libconfuse --cflags)
+ CONFUSE_LIBS = $(shell pkg-config libconfuse --libs)
+
+-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(CONFUSE_CFLAGS)
++CFLAGS += -g -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(CONFUSE_CFLAGS)
+
+ ifeq ($(ARCH), ppc)
+ OFLIB ?=
+@@ -36,7 +36,7 @@
+
+ else
+
+-LDFLAGS = -lz -lsmbios $(DBUS_LIBS) $(ALSA_LIBS) $(CONFUSE_LIBS)
++LDFLAGS = -lz -lsmbios -lstdc++ $(DBUS_LIBS) $(ALSA_LIBS) $(CONFUSE_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/pommed-1.5.ebuild b/app-laptop/pommed/pommed-1.5.ebuild
new file mode 100644
index 000000000000..506d7f05f1a9
--- /dev/null
+++ b/app-laptop/pommed/pommed-1.5.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.5.ebuild,v 1.1 2007/05/21 20:54:14 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="1976"
+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) || 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
+}