diff options
author | Cédric Krier <cedk@gentoo.org> | 2009-01-28 23:35:49 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2009-01-28 23:35:49 +0000 |
commit | 1b4e8059027bdd2ff1bee84a5fba9ca73170e275 (patch) | |
tree | 702d70e3840726072c9b5690f15424f9355441db /app-laptop/pommed/pommed-1.25.ebuild | |
parent | replaced addwrite with addpredict (diff) | |
download | gentoo-2-1b4e8059027bdd2ff1bee84a5fba9ca73170e275.tar.gz gentoo-2-1b4e8059027bdd2ff1bee84a5fba9ca73170e275.tar.bz2 gentoo-2-1b4e8059027bdd2ff1bee84a5fba9ca73170e275.zip |
Version bump
(Portage version: 2.1.6.4/cvs/Linux 2.6.27-hardened-r3 i686)
Diffstat (limited to 'app-laptop/pommed/pommed-1.25.ebuild')
-rw-r--r-- | app-laptop/pommed/pommed-1.25.ebuild | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/app-laptop/pommed/pommed-1.25.ebuild b/app-laptop/pommed/pommed-1.25.ebuild new file mode 100644 index 000000000000..539b50983019 --- /dev/null +++ b/app-laptop/pommed/pommed-1.25.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/pommed-1.25.ebuild,v 1.1 2009/01/28 23:35:49 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="2707" +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 +} |