Gentoo Archives: gentoo-commits

From: "Cedric Krier (cedk)" <cedk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-laptop/pommed: ChangeLog pommed-1.31.ebuild
Date: Sun, 28 Feb 2010 16:33:15
Message-Id: E1Nlm4t-0001oB-Sp@stork.gentoo.org
1 cedk 10/02/28 16:33:11
2
3 Modified: ChangeLog
4 Added: pommed-1.31.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.7.16/cvs/Linux i686)
8
9 Revision Changes Path
10 1.50 app-laptop/pommed/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pommed/ChangeLog?rev=1.50&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pommed/ChangeLog?rev=1.50&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pommed/ChangeLog?r1=1.49&r2=1.50
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v
19 retrieving revision 1.49
20 retrieving revision 1.50
21 diff -u -r1.49 -r1.50
22 --- ChangeLog 7 Jan 2010 16:07:28 -0000 1.49
23 +++ ChangeLog 28 Feb 2010 16:33:11 -0000 1.50
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-laptop/pommed
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v 1.49 2010/01/07 16:07:28 josejx Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/ChangeLog,v 1.50 2010/02/28 16:33:11 cedk Exp $
29 +
30 +*pommed-1.31 (28 Feb 2010)
31 +
32 + 28 Feb 2010; C├ędric Krier <cedk@g.o> +pommed-1.31.ebuild,
33 + +files/pommed-1.31.patch:
34 + Version bump
35
36 07 Jan 2010; Joseph Jezak <josejx@g.o> pommed-1.30.ebuild:
37 Fix for x86/amd64 kernel check not needed on ppc.
38
39
40
41 1.1 app-laptop/pommed/pommed-1.31.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pommed/pommed-1.31.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pommed/pommed-1.31.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pommed-1.31.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-laptop/pommed/pommed-1.31.ebuild,v 1.1 2010/02/28 16:33:11 cedk Exp $
51
52 inherit eutils toolchain-funcs linux-info
53
54 DESCRIPTION="Manage special features such as screen and keyboard backlight on Apple MacBook Pro/PowerBook"
55 HOMEPAGE="http://technologeek.org/projects/pommed/index.html"
56 ALIOTH_NUMBER="3202"
57 SRC_URI="http://alioth.debian.org/frs/download.php/${ALIOTH_NUMBER}/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~x86"
62 IUSE="gtk X"
63
64 COMMON_DEPEND="media-libs/alsa-lib
65 x86? ( sys-apps/pciutils )
66 amd64? ( sys-apps/pciutils )
67 dev-libs/confuse
68 >=sys-apps/dbus-1.1
69 dev-libs/dbus-glib
70 sys-libs/zlib
71 media-libs/audiofile
72 gtk? ( >=x11-libs/gtk+-2
73 >=gnome-base/libglade-2 )
74 X? ( x11-libs/libX11
75 x11-libs/libXpm )"
76 DEPEND="${COMMON_DEPEND}
77 dev-util/pkgconfig"
78 RDEPEND="${COMMON_DEPEND}
79 media-sound/alsa-utils
80 virtual/eject"
81
82 pkg_setup() {
83 if ! use ppc; then
84 linux-info_pkg_setup
85
86 CONFIG_CHECK="DMIID"
87 check_extra_config
88 fi
89 }
90
91 src_unpack() {
92 unpack ${A}
93 cd "${S}"
94 epatch "${FILESDIR}/${P}.patch"
95 }
96
97 src_compile() {
98 cd "${S}"/pommed
99 emake CC="$(tc-getCC)" OFLIB=1 || die "emake pommed failed"
100
101 if use gtk; then
102 cd "${S}"/gpomme
103 local POFILES=""
104 for LANG in ${LINGUAS}; do
105 if [ -f po/${LANG}.po ]; then
106 POFILES="${POFILES} po/${LANG}.po"
107 fi
108 done
109 emake CC="$(tc-getCC)" POFILES="${POFILES}" || die "emake gpomme failed"
110 fi
111 if use X; then
112 cd "${S}"/wmpomme
113 emake CC="$(tc-getCC)" || die "emake wmpomme failed"
114 fi
115 }
116
117 src_install() {
118 insinto /etc
119 if use x86 || use amd64; then
120 newins pommed.conf.mactel pommed.conf
121 elif use ppc; then
122 newins pommed.conf.pmac pommed.conf
123 fi
124
125 insinto /etc/dbus-1/system.d
126 newins dbus-policy.conf pommed.conf
127
128 insinto /usr/share/pommed
129 doins pommed/data/*.wav
130
131 dobin pommed/pommed
132
133 newinitd "${FILESDIR}"/pommed.rc pommed
134
135 dodoc AUTHORS ChangeLog README TODO
136
137 if use gtk ; then
138 dobin gpomme/gpomme
139 for LANG in ${LINGUAS}; do
140 if [ -f gpomme/po/${LANG}.mo ]; then
141 einfo "Installing lang ${LANG}"
142 insinto /usr/share/locale/${LANG}/LC_MESSAGES/
143 doins gpomme/po/${LANG}.mo
144 fi
145 done
146
147 insinto /usr/share/applications
148 doins gpomme/gpomme.desktop
149 doins gpomme/gpomme-c.desktop
150 insinto /usr/share/gpomme/
151 doins -r gpomme/themes
152 doins gpomme/gpomme.glade
153 fi
154
155 if use X ; then
156 dobin wmpomme/wmpomme
157 fi
158 }