diff options
author | Pacho Ramos <pacho@gentoo.org> | 2013-09-28 10:42:53 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2013-09-28 10:42:53 +0000 |
commit | c95a01cdf9898964e526a0e6abcad77710e0eaaa (patch) | |
tree | c23726aa7668750dc078faeee7842ea9f7952703 /app-laptop | |
parent | Remove old. (diff) | |
download | gentoo-2-c95a01cdf9898964e526a0e6abcad77710e0eaaa.tar.gz gentoo-2-c95a01cdf9898964e526a0e6abcad77710e0eaaa.tar.bz2 gentoo-2-c95a01cdf9898964e526a0e6abcad77710e0eaaa.zip |
Add unit file (#485926 by Tilo Prütz)
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/pommed/ChangeLog | 10 | ||||
-rw-r--r-- | app-laptop/pommed/files/pommed.service | 10 | ||||
-rw-r--r-- | app-laptop/pommed/pommed-1.39-r1.ebuild | 108 |
3 files changed, 126 insertions, 2 deletions
diff --git a/app-laptop/pommed/ChangeLog b/app-laptop/pommed/ChangeLog index ed57c5d65a69..57ff5f4b69ff 100644 --- a/app-laptop/pommed/ChangeLog +++ b/app-laptop/pommed/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-laptop/pommed -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v 1.64 2012/09/09 16:23:29 josejx Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v 1.65 2013/09/28 10:42:53 pacho Exp $ + +*pommed-1.39-r1 (28 Sep 2013) + + 28 Sep 2013; Pacho Ramos <pacho@gentoo.org> +files/pommed.service, + +pommed-1.39-r1.ebuild: + Add unit file (#485926 by Tilo Prütz) 09 Sep 2012; Joseph Jezak <josejx@gentoo.org> pommed-1.39.ebuild: Marked ppc stable for bug #425828. diff --git a/app-laptop/pommed/files/pommed.service b/app-laptop/pommed/files/pommed.service new file mode 100644 index 000000000000..8407c1db9550 --- /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/pommed-1.39-r1.ebuild b/app-laptop/pommed/pommed-1.39-r1.ebuild new file mode 100644 index 000000000000..732917e294c2 --- /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 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/pommed-1.39-r1.ebuild,v 1.1 2013/09/28 10:42:53 pacho Exp $ + +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 +} |