summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2007-03-05 22:28:31 +0000
committerCédric Krier <cedk@gentoo.org>2007-03-05 22:28:31 +0000
commitd556ea6b0caa7615b57f4fea5e3a9a8d13813bac (patch)
treeaf8bedf40c244ee5c2439bf976a4c9adf028c01a /app-laptop/pommed
parentsys-libs/libsmbios: add amd64 (diff)
downloadgentoo-2-d556ea6b0caa7615b57f4fea5e3a9a8d13813bac.tar.gz
gentoo-2-d556ea6b0caa7615b57f4fea5e3a9a8d13813bac.tar.bz2
gentoo-2-d556ea6b0caa7615b57f4fea5e3a9a8d13813bac.zip
app-laptop/pommed: fix depencie to gtk+-2, add amd64,ppc
(Portage version: 2.1.2-r9)
Diffstat (limited to 'app-laptop/pommed')
-rw-r--r--app-laptop/pommed/ChangeLog7
-rw-r--r--app-laptop/pommed/files/digest-pommed-1.2-r13
-rw-r--r--app-laptop/pommed/pommed-1.2-r1.ebuild92
3 files changed, 101 insertions, 1 deletions
diff --git a/app-laptop/pommed/ChangeLog b/app-laptop/pommed/ChangeLog
index c79948d07076..ee5415a2a303 100644
--- a/app-laptop/pommed/ChangeLog
+++ b/app-laptop/pommed/ChangeLog
@@ -1,6 +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 $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v 1.2 2007/03/05 22:28:31 cedk Exp $
+
+*pommed-1.2-r1 (05 Mar 2007)
+
+ 05 Mar 2007; Cedric Krier <cedk@gentoo.org> +pommed-1.2-r1.ebuild:
+ Fix depencie to gtk+-2, add amd64,ppc
*pommed-1.2 (04 Mar 2007)
diff --git a/app-laptop/pommed/files/digest-pommed-1.2-r1 b/app-laptop/pommed/files/digest-pommed-1.2-r1
new file mode 100644
index 000000000000..a11d458c7239
--- /dev/null
+++ b/app-laptop/pommed/files/digest-pommed-1.2-r1
@@ -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/pommed-1.2-r1.ebuild b/app-laptop/pommed/pommed-1.2-r1.ebuild
new file mode 100644
index 000000000000..fe696ee9a47d
--- /dev/null
+++ b/app-laptop/pommed/pommed-1.2-r1.ebuild
@@ -0,0 +1,92 @@
+# 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-r1.ebuild,v 1.1 2007/03/05 22:28:31 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="~amd64 ~ppc ~x86"
+IUSE="gtk X"
+
+DEPEND="sys-apps/pciutils
+ media-libs/alsa-lib
+ x86? ( sys-libs/libsmbios )
+ amd64? ( sys-libs/libsmbios )
+ dev-libs/confuse
+ sys-apps/dbus
+ sys-libs/zlib
+ gtk? ( >=x11-libs/gtk+-2
+ 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
+ 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
+ insinto /usr/share/gpomme/
+ doins -r gpomme/themes
+ fi
+
+ if use X ; then
+ dobin wmpomme/wmpomme
+ fi
+}