diff options
author | Cédric Krier <cedk@gentoo.org> | 2008-09-28 12:28:36 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2008-09-28 12:28:36 +0000 |
commit | 41d850e11e9789a4c595306f7ca0abe798af16dc (patch) | |
tree | b9f5fcb2783a18f1976be648d904562e556dcb84 /app-laptop | |
parent | Stable on amd64/x86 (bug #238731) (diff) | |
download | gentoo-2-41d850e11e9789a4c595306f7ca0abe798af16dc.tar.gz gentoo-2-41d850e11e9789a4c595306f7ca0abe798af16dc.tar.bz2 gentoo-2-41d850e11e9789a4c595306f7ca0abe798af16dc.zip |
Version bump
(Portage version: 2.1.4.4)
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/pommed/ChangeLog | 8 | ||||
-rw-r--r-- | app-laptop/pommed/files/pommed-1.21.patch | 20 | ||||
-rw-r--r-- | app-laptop/pommed/pommed-1.21.ebuild | 101 |
3 files changed, 128 insertions, 1 deletions
diff --git a/app-laptop/pommed/ChangeLog b/app-laptop/pommed/ChangeLog index 8e4ce848b262..8daf40b43e26 100644 --- a/app-laptop/pommed/ChangeLog +++ b/app-laptop/pommed/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-laptop/pommed # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v 1.31 2008/08/03 15:21:53 cedk Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v 1.32 2008/09/28 12:28:36 cedk Exp $ + +*pommed-1.21 (28 Sep 2008) + + 28 Sep 2008; Cédric Krier <cedk@gentoo.org> +files/pommed-1.21.patch, + +pommed-1.21.ebuild: + Version bump 03 Aug 2008; Cédric Krier <cedk@gentoo.org> pommed-1.20.ebuild: Fix depend on dbus-1.1 for bug #233074 diff --git a/app-laptop/pommed/files/pommed-1.21.patch b/app-laptop/pommed/files/pommed-1.21.patch new file mode 100644 index 000000000000..b984f02288e7 --- /dev/null +++ b/app-laptop/pommed/files/pommed-1.21.patch @@ -0,0 +1,20 @@ +diff -ru pommed-1.21~/pommed/Makefile pommed-1.21/pommed/Makefile +--- pommed-1.21~/pommed/Makefile 2008-09-28 14:25:56.000000000 +0200 ++++ pommed-1.21/pommed/Makefile 2008-09-28 14:26:17.000000000 +0200 +@@ -16,7 +16,7 @@ + + 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) + +@@ -50,6 +50,7 @@ + + CFLAGS += $(LIBPCI_CFLAGS) + LDFLAGS += $(LIBPCI_LIBS) ++ LIBS = $(LIBPCI_LIBS) + else + LIBS = /usr/lib/libpci.a + LDFLAGS += -lz diff --git a/app-laptop/pommed/pommed-1.21.ebuild b/app-laptop/pommed/pommed-1.21.ebuild new file mode 100644 index 000000000000..35564d49eb4d --- /dev/null +++ b/app-laptop/pommed/pommed-1.21.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/pommed-1.21.ebuild,v 1.1 2008/09/28 12:28:36 cedk Exp $ + +inherit eutils toolchain-funcs + +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="2499" +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 + sys-libs/zlib + media-libs/audiofile + gtk? ( >=x11-libs/gtk+-2 + >=gnome-base/libglade-2 ) + X? ( x11-libs/libX11 + x11-libs/libXpm )" +DEPEND="${COMMON_DEPEND} + dev-util/pkgconfig" +RDEPEND="${COMMON_DEPEND} + media-sound/alsa-utils + 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 + + insinto /usr/share/pommed + doins pommed/data/*.wav + + 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 +} |