diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-laptop/pommed | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-laptop/pommed')
-rw-r--r-- | app-laptop/pommed/Manifest | 1 | ||||
-rw-r--r-- | app-laptop/pommed/files/pommed-1.21-r1.patch | 75 | ||||
-rw-r--r-- | app-laptop/pommed/files/pommed-1.30.patch | 75 | ||||
-rw-r--r-- | app-laptop/pommed/files/pommed-1.31.patch | 75 | ||||
-rw-r--r-- | app-laptop/pommed/files/pommed-1.39.patch | 89 | ||||
-rwxr-xr-x | app-laptop/pommed/files/pommed.rc | 19 | ||||
-rw-r--r-- | app-laptop/pommed/files/pommed.service | 10 | ||||
-rw-r--r-- | app-laptop/pommed/metadata.xml | 13 | ||||
-rw-r--r-- | app-laptop/pommed/pommed-1.39-r1.ebuild | 108 |
9 files changed, 465 insertions, 0 deletions
diff --git a/app-laptop/pommed/Manifest b/app-laptop/pommed/Manifest new file mode 100644 index 00000000000..b6bbff7157f --- /dev/null +++ b/app-laptop/pommed/Manifest @@ -0,0 +1 @@ +DIST pommed-1.39.tar.gz 995020 SHA256 d715cf1f85525a62bb18a3f9ebd229a2f586906ab8c9306fc9d2aa192bf79da2 SHA512 26568e359d8ef853710b1d86f397981e87245a84b2ff006964035ea8643e97df44fe52b01841d085eb8dd1aee586e1c8b60c44089f463e2a64b2b95c010a9d10 WHIRLPOOL cdb214162f87e24f8add4023d126a8a0fe2db0714a29dc43ec844dc4eb8b02edecc6866ba41555fea13881c30e6fb5439c99b452ee5f2240db9969e9504ab298 diff --git a/app-laptop/pommed/files/pommed-1.21-r1.patch b/app-laptop/pommed/files/pommed-1.21-r1.patch new file mode 100644 index 00000000000..5b899a369f1 --- /dev/null +++ b/app-laptop/pommed/files/pommed-1.21-r1.patch @@ -0,0 +1,75 @@ +diff -ru pommed-1.21~/gpomme/Makefile pommed-1.21/gpomme/Makefile +--- pommed-1.21~/gpomme/Makefile 2008-12-21 13:38:27.000000000 +0100 ++++ pommed-1.21/gpomme/Makefile 2008-12-21 14:06:46.000000000 +0100 +@@ -17,8 +17,8 @@ + + INOTIFY_CFLAGS = $(shell test -e /usr/include/sys/inotify.h || echo -DNO_SYS_INOTIFY_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(CONFUSE_CFLAGS) $(GLADE_CFLAGS) $(INOTIFY_CFLAGS) +-LDFLAGS = -lpthread $(DBUS_LIBS) $(DBUSGLIB_LIBS) $(GTK_LIBS) $(CONFUSE_LIBS) $(GLADE_LIBS) ++CFLAGS += -g -Wall $(DBUS_CFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(CONFUSE_CFLAGS) $(GLADE_CFLAGS) $(INOTIFY_CFLAGS) ++LDFLAGS += -lpthread $(DBUS_LIBS) $(DBUSGLIB_LIBS) $(GTK_LIBS) $(CONFUSE_LIBS) $(GLADE_LIBS) + + SOURCES = gpomme.c theme.c conffile.c \ + ../client-common/dbus-client.c \ +@@ -33,6 +33,7 @@ + mo: $(MOFILES) + + gpomme: $(OBJS) $(LIBS) ++ ${CC} -o $@ ${OBJS} ${LIBS} ${LDFLAGS} + + gpomme.o: gpomme.c gpomme.h theme.h ../client-common/dbus-client.h ../client-common/video-client.h + +diff -ru pommed-1.21~/pommed/Makefile pommed-1.21/pommed/Makefile +--- pommed-1.21~/pommed/Makefile 2008-12-21 13:38:27.000000000 +0100 ++++ pommed-1.21/pommed/Makefile 2008-12-21 14:04:52.000000000 +0100 +@@ -16,9 +16,9 @@ + + INOTIFY_CFLAGS = $(shell test -e /usr/include/sys/inotify.h || echo -DNO_SYS_INOTIFY_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) ++CFLAGS += -g -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) + +-LDFLAGS = -pthread -lrt $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS) ++LDFLAGS += -pthread -lrt $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS) + + ifneq (, $(findstring ppc, $(ARCH))) + OFLIB ?= +@@ -50,6 +50,7 @@ + + CFLAGS += $(LIBPCI_CFLAGS) + LDFLAGS += $(LIBPCI_LIBS) ++ LIBS = $(LIBPCI_LIBS) + else + LIBS = /usr/lib/libpci.a + LDFLAGS += -lz +@@ -66,6 +67,7 @@ + + + pommed: $(OBJS) $(LIBS) ++ ${CC} -o $@ ${OBJS} ${LIBS} ${LDFLAGS} + + pommed.o: pommed.c pommed.h evloop.h kbd_backlight.h lcd_backlight.h cd_eject.h evdev.h conffile.h audio.h dbus.h beep.h + +diff -ru pommed-1.21~/wmpomme/Makefile pommed-1.21/wmpomme/Makefile +--- pommed-1.21~/wmpomme/Makefile 2008-12-21 13:38:27.000000000 +0100 ++++ pommed-1.21/wmpomme/Makefile 2008-12-21 14:07:09.000000000 +0100 +@@ -3,8 +3,8 @@ + DBUS_CFLAGS = $(shell pkg-config dbus-1 --cflags) -DDBUS_API_SUBJECT_TO_CHANGE + DBUS_LIBS = $(shell pkg-config dbus-1 --libs) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) +-LDFLAGS = -lXpm -lXext -lX11 $(DBUS_LIBS) ++CFLAGS += -g -Wall $(DBUS_CFLAGS) ++LDFLAGS += -lXpm -lXext -lX11 $(DBUS_LIBS) + + SOURCES = wmgeneral.c wmpomme.c \ + ../client-common/dbus-client.c \ +@@ -13,6 +13,7 @@ + OBJS = $(SOURCES:%.c=%.o) + + wmpomme: $(OBJS) ++ ${CC} -o $@ ${OBJS} ${LDFLAGS} + + wmpomme.o: wmpomme.c wmgeneral.h wmpomme-master.xpm ../client-common/dbus-client.h + diff --git a/app-laptop/pommed/files/pommed-1.30.patch b/app-laptop/pommed/files/pommed-1.30.patch new file mode 100644 index 00000000000..48c0fd02bdc --- /dev/null +++ b/app-laptop/pommed/files/pommed-1.30.patch @@ -0,0 +1,75 @@ +diff -ru pommed-1.30~/gpomme/Makefile pommed-1.30/gpomme/Makefile +--- pommed-1.30~/gpomme/Makefile 2009-10-22 21:25:30.000000000 +0200 ++++ pommed-1.30/gpomme/Makefile 2009-11-21 19:41:08.000000000 +0100 +@@ -17,8 +17,8 @@ + + INOTIFY_CFLAGS = $(shell test -e /usr/include/sys/inotify.h || echo -DNO_SYS_INOTIFY_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(CONFUSE_CFLAGS) $(GLADE_CFLAGS) $(INOTIFY_CFLAGS) +-LDFLAGS = -lpthread $(DBUS_LIBS) $(DBUSGLIB_LIBS) $(GTK_LIBS) $(CONFUSE_LIBS) $(GLADE_LIBS) ++CFLAGS += -g -Wall $(DBUS_CFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(CONFUSE_CFLAGS) $(GLADE_CFLAGS) $(INOTIFY_CFLAGS) ++LDFLAGS += -lpthread $(DBUS_LIBS) $(DBUSGLIB_LIBS) $(GTK_LIBS) $(CONFUSE_LIBS) $(GLADE_LIBS) + + SOURCES = gpomme.c theme.c conffile.c \ + ../client-common/dbus-client.c \ +@@ -33,6 +33,7 @@ + mo: $(MOFILES) + + gpomme: $(OBJS) $(LIBS) ++ ${CC} -o $@ ${OBJS} ${LIBS} ${LDFLAGS} + + gpomme.o: gpomme.c gpomme.h theme.h ../client-common/dbus-client.h ../client-common/video-client.h + +diff -ru pommed-1.30~/pommed/Makefile pommed-1.30/pommed/Makefile +--- pommed-1.30~/pommed/Makefile 2009-10-22 21:25:30.000000000 +0200 ++++ pommed-1.30/pommed/Makefile 2009-11-21 19:41:08.000000000 +0100 +@@ -18,9 +18,9 @@ + + TIMERFD_CFLAGS = $(shell test -e /usr/include/sys/timerfd.h || echo -DNO_SYS_TIMERFD_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) $(TIMERFD_CFLAGS) ++CFLAGS += -g -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) $(TIMERFD_CFLAGS) + +-LDFLAGS = -pthread -lrt $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS) ++LDFLAGS += -pthread -lrt $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS) + + ifneq (, $(findstring ppc, $(ARCH))) + OFLIB ?= +@@ -52,6 +52,7 @@ + + CFLAGS += $(LIBPCI_CFLAGS) + LDFLAGS += $(LIBPCI_LIBS) ++ LIBS = $(LIBPCI_LIBS) + else + LIBS = /usr/lib/libpci.a + LDFLAGS += -lz +@@ -69,6 +70,7 @@ + + + pommed: $(OBJS) $(LIBS) ++ ${CC} -o $@ ${OBJS} ${LIBS} ${LDFLAGS} + + pommed.o: pommed.c pommed.h evloop.h kbd_backlight.h lcd_backlight.h cd_eject.h evdev.h conffile.h audio.h dbus.h beep.h + +diff -ru pommed-1.30~/wmpomme/Makefile pommed-1.30/wmpomme/Makefile +--- pommed-1.30~/wmpomme/Makefile 2009-10-22 21:25:30.000000000 +0200 ++++ pommed-1.30/wmpomme/Makefile 2009-11-21 19:41:08.000000000 +0100 +@@ -5,8 +5,8 @@ + + TIMERFD_CFLAGS = $(shell test -e /usr/include/sys/timerfd.h || echo -DNO_SYS_TIMERFD_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(TIMERFD_CFLAGS) +-LDFLAGS = -lrt -lXpm -lXext -lX11 $(DBUS_LIBS) ++CFLAGS += -g -Wall $(DBUS_CFLAGS) $(TIMERFD_CFLAGS) ++LDFLAGS += -lrt -lXpm -lXext -lX11 $(DBUS_LIBS) + + SOURCES = wmgeneral.c wmpomme.c \ + ../client-common/dbus-client.c \ +@@ -15,6 +15,7 @@ + OBJS = $(SOURCES:%.c=%.o) + + wmpomme: $(OBJS) ++ ${CC} -o $@ ${OBJS} ${LDFLAGS} + + wmpomme.o: wmpomme.c wmgeneral.h wmpomme-master.xpm ../client-common/dbus-client.h + diff --git a/app-laptop/pommed/files/pommed-1.31.patch b/app-laptop/pommed/files/pommed-1.31.patch new file mode 100644 index 00000000000..94061909a53 --- /dev/null +++ b/app-laptop/pommed/files/pommed-1.31.patch @@ -0,0 +1,75 @@ +diff -ru pommed-1.31~/gpomme/Makefile pommed-1.31/gpomme/Makefile +--- pommed-1.31~/gpomme/Makefile 2010-02-28 17:24:31.000000000 +0100 ++++ pommed-1.31/gpomme/Makefile 2010-02-28 17:25:31.000000000 +0100 +@@ -17,8 +17,8 @@ + + INOTIFY_CFLAGS = $(shell test -e /usr/include/sys/inotify.h || echo -DNO_SYS_INOTIFY_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(CONFUSE_CFLAGS) $(GLADE_CFLAGS) $(INOTIFY_CFLAGS) +-LDFLAGS = -lpthread -lX11 $(DBUS_LIBS) $(DBUSGLIB_LIBS) $(GTK_LIBS) $(CONFUSE_LIBS) $(GLADE_LIBS) ++CFLAGS += -Wall $(DBUS_CFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(CONFUSE_CFLAGS) $(GLADE_CFLAGS) $(INOTIFY_CFLAGS) ++LDFLAGS += -lpthread -lX11 $(DBUS_LIBS) $(DBUSGLIB_LIBS) $(GTK_LIBS) $(CONFUSE_LIBS) $(GLADE_LIBS) + + SOURCES = gpomme.c theme.c conffile.c \ + ../client-common/dbus-client.c \ +@@ -33,6 +33,7 @@ + mo: $(MOFILES) + + gpomme: $(OBJS) $(LIBS) ++ ${CC} -o $@ ${OBJS} ${LIBS} ${LDFLAGS} + + gpomme.o: gpomme.c gpomme.h theme.h ../client-common/dbus-client.h ../client-common/video-client.h + +diff -ru pommed-1.31~/pommed/Makefile pommed-1.31/pommed/Makefile +--- pommed-1.31~/pommed/Makefile 2010-02-28 17:24:31.000000000 +0100 ++++ pommed-1.31/pommed/Makefile 2010-02-28 17:26:20.000000000 +0100 +@@ -18,9 +18,9 @@ + + TIMERFD_CFLAGS = $(shell test -e /usr/include/sys/timerfd.h || echo -DNO_SYS_TIMERFD_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) $(TIMERFD_CFLAGS) ++CFLAGS += -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) $(TIMERFD_CFLAGS) + +-LDFLAGS = -pthread -lrt $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS) ++LDFLAGS += -pthread -lrt $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS) + + ifneq (, $(findstring ppc, $(ARCH))) + OFLIB ?= +@@ -52,6 +52,7 @@ + + CFLAGS += $(LIBPCI_CFLAGS) + LDFLAGS += $(LIBPCI_LIBS) ++ LIBS = $(LIBPCI_LIBS) + else + LIBS = /usr/lib/libpci.a + LDFLAGS += -lz +@@ -69,6 +70,7 @@ + + + pommed: $(OBJS) $(LIBS) ++ ${CC} -o $@ ${OBJS} ${LIBS} ${LDFLAGS} + + pommed.o: pommed.c pommed.h evloop.h kbd_backlight.h lcd_backlight.h cd_eject.h evdev.h conffile.h audio.h dbus.h beep.h + +diff -ru pommed-1.31~/wmpomme/Makefile pommed-1.31/wmpomme/Makefile +--- pommed-1.31~/wmpomme/Makefile 2010-02-28 17:24:31.000000000 +0100 ++++ pommed-1.31/wmpomme/Makefile 2010-02-28 17:26:42.000000000 +0100 +@@ -5,8 +5,8 @@ + + TIMERFD_CFLAGS = $(shell test -e /usr/include/sys/timerfd.h || echo -DNO_SYS_TIMERFD_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(TIMERFD_CFLAGS) +-LDFLAGS = -lrt -lXpm -lXext -lX11 $(DBUS_LIBS) ++CFLAGS += -Wall $(DBUS_CFLAGS) $(TIMERFD_CFLAGS) ++LDFLAGS += -lrt -lXpm -lXext -lX11 $(DBUS_LIBS) + + SOURCES = wmgeneral.c wmpomme.c \ + ../client-common/dbus-client.c \ +@@ -15,6 +15,7 @@ + OBJS = $(SOURCES:%.c=%.o) + + wmpomme: $(OBJS) ++ ${CC} -o $@ ${OBJS} ${LDFLAGS} + + wmpomme.o: wmpomme.c wmgeneral.h wmpomme-master.xpm ../client-common/dbus-client.h + diff --git a/app-laptop/pommed/files/pommed-1.39.patch b/app-laptop/pommed/files/pommed-1.39.patch new file mode 100644 index 00000000000..1215606c35c --- /dev/null +++ b/app-laptop/pommed/files/pommed-1.39.patch @@ -0,0 +1,89 @@ +diff --git a/gpomme/Makefile b/gpomme/Makefile +index 0874b48..a3ab64a 100644 +--- a/gpomme/Makefile ++++ b/gpomme/Makefile +@@ -1,5 +1,3 @@ +-CC = gcc +- + GTK_CFLAGS = $(shell pkg-config --cflags gtk+-2.0) + GTK_LIBS = $(shell pkg-config --libs gtk+-2.0) + +@@ -14,7 +12,7 @@ CONFUSE_LIBS = $(shell pkg-config libconfuse --libs) + + INOTIFY_CFLAGS = $(shell test -e /usr/include/sys/inotify.h || echo -DNO_SYS_INOTIFY_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) ++CFLAGS += -Wall $(DBUS_CFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) + LDLIBS = -lpthread -lX11 $(DBUS_LIBS) $(DBUSGLIB_LIBS) $(GTK_LIBS) $(CONFUSE_LIBS) + + SOURCES = gpomme.c theme.c conffile.c \ +@@ -30,6 +28,7 @@ all: gpomme mo + mo: $(MOFILES) + + gpomme: $(OBJS) ++ ${CC} -o $@ ${OBJS} ${LDLIBS} ${LDFLAGS} + + gpomme.o: gpomme.c gpomme.h theme.h ../client-common/dbus-client.h ../client-common/video-client.h + +diff --git a/pommed/Makefile b/pommed/Makefile +index 5f3cbf9..3425a2a 100644 +--- a/pommed/Makefile ++++ b/pommed/Makefile +@@ -1,7 +1,5 @@ + ARCH ?= $(shell uname -m) + +-CC = gcc +- + DBUS_CFLAGS = $(shell pkg-config dbus-1 --cflags) -DDBUS_API_SUBJECT_TO_CHANGE + DBUS_LIBS = $(shell pkg-config dbus-1 --libs) + +@@ -18,7 +16,7 @@ INOTIFY_CFLAGS = $(shell test -e /usr/include/sys/inotify.h || echo -DNO_SYS_INO + + TIMERFD_CFLAGS = $(shell test -e /usr/include/sys/timerfd.h || echo -DNO_SYS_TIMERFD_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) $(TIMERFD_CFLAGS) ++CFLAGS += -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) $(TIMERFD_CFLAGS) + + LDLIBS = -pthread -lrt $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS) + +@@ -54,6 +52,7 @@ ifeq ($(LIBPCI_SHARED), true) + + CFLAGS += $(LIBPCI_CFLAGS) + LDLIBS += $(LIBPCI_LIBS) ++ LIBS = $(LIBPCI_LIBS) + else + LIB_OBJS += /usr/lib/libpci.a + LDLIBS += -lz +@@ -73,6 +72,7 @@ OBJS = $(SOURCES:%.c=%.o) + + + pommed: $(OBJS) $(LIB_OBJS) ++ ${CC} -o $@ ${OBJS} ${LDLIBS} ${LDFLAGS} + + pommed.o: pommed.c pommed.h evloop.h kbd_backlight.h lcd_backlight.h cd_eject.h evdev.h conffile.h audio.h dbus.h beep.h + +diff --git a/wmpomme/Makefile b/wmpomme/Makefile +index cc7a438..6c4bee1 100644 +--- a/wmpomme/Makefile ++++ b/wmpomme/Makefile +@@ -1,11 +1,9 @@ +-CC = gcc +- + DBUS_CFLAGS = $(shell pkg-config dbus-1 --cflags) -DDBUS_API_SUBJECT_TO_CHANGE + DBUS_LIBS = $(shell pkg-config dbus-1 --libs) + + TIMERFD_CFLAGS = $(shell test -e /usr/include/sys/timerfd.h || echo -DNO_SYS_TIMERFD_H) + +-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(TIMERFD_CFLAGS) ++CFLAGS += -Wall $(DBUS_CFLAGS) $(TIMERFD_CFLAGS) + LDLIBS = -lrt -lXpm -lXext -lX11 $(DBUS_LIBS) + + SOURCES = wmgeneral.c wmpomme.c \ +@@ -15,6 +13,7 @@ SOURCES = wmgeneral.c wmpomme.c \ + OBJS = $(SOURCES:%.c=%.o) + + wmpomme: $(OBJS) ++ ${CC} -o $@ ${OBJS} ${LDLIBS} ${LDFLAGS} + + wmpomme.o: wmpomme.c wmgeneral.h wmpomme-master.xpm ../client-common/dbus-client.h + diff --git a/app-laptop/pommed/files/pommed.rc b/app-laptop/pommed/files/pommed.rc new file mode 100755 index 00000000000..062d1a9c399 --- /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 alsasound +} + +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/files/pommed.service b/app-laptop/pommed/files/pommed.service new file mode 100644 index 00000000000..8407c1db955 --- /dev/null +++ b/app-laptop/pommed/files/pommed.service @@ -0,0 +1,10 @@ +[Unit] +Description=MacBook Hotkey Event Handler + +[Service] +Type=dbus +BusName=org.pommed +ExecStart=/usr/bin/pommed -f + +[Install] +WantedBy=multi-user.target diff --git a/app-laptop/pommed/metadata.xml b/app-laptop/pommed/metadata.xml new file mode 100644 index 00000000000..604982faffe --- /dev/null +++ b/app-laptop/pommed/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>naota@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.39-r1.ebuild b/app-laptop/pommed/pommed-1.39-r1.ebuild new file mode 100644 index 00000000000..7c931a95782 --- /dev/null +++ b/app-laptop/pommed/pommed-1.39-r1.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs linux-info systemd + +DESCRIPTION="Manage special features such as screen and keyboard backlight on Apple MacBook Pro/PowerBook" +HOMEPAGE="http://technologeek.org/projects/pommed/index.html" +ALIOTH_NUMBER="3583" +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" + +COMMON_DEPEND="media-libs/alsa-lib + x86? ( sys-apps/pciutils ) + amd64? ( sys-apps/pciutils ) + dev-libs/confuse + >=sys-apps/dbus-1.1 + dev-libs/dbus-glib + sys-libs/zlib + media-libs/audiofile + gtk? ( x11-libs/gtk+:2 ) + X? ( x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm )" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" +RDEPEND="${COMMON_DEPEND} + media-sound/alsa-utils + virtual/eject" + +pkg_setup() { + if ! use ppc; then + linux-info_pkg_setup + + CONFIG_CHECK="~DMIID" + check_extra_config + fi +} + +src_prepare() { + 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 + + insinto /usr/share/pommed + doins pommed/data/*.wav + + dobin pommed/pommed + + newinitd "${FILESDIR}"/pommed.rc pommed + systemd_dounit "${FILESDIR}"/${PN}.service + + 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 + + domenu gpomme/gpomme.desktop gpomme/gpomme-c.desktop + insinto /usr/share/gpomme/ + doins -r gpomme/themes + fi + + if use X ; then + dobin wmpomme/wmpomme + fi +} |