/[gentoo-x86]/eclass/gdesklets.eclass
Gentoo

Diff of /eclass/gdesklets.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
1# Copyright 2004-2006 Gentoo Foundation 1# Copyright 2004-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License, v2 or later
3# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.16 2008/02/19 01:51:00 nixphoeni Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.17 2009/04/28 00:57:18 nixphoeni Exp $
4# 4#
5# Authors: Joe Sapp <nixphoeni@gentoo.org> 5# Authors: Joe Sapp <nixphoeni@gentoo.org>
6# Mike Gardiner <obz@gentoo.org> 6# Mike Gardiner <obz@gentoo.org>
7# 7#
8# Usage: 8# Usage:
17# of gDesklets greater than 0.34 or other packages. 17# of gDesklets greater than 0.34 or other packages.
18 18
19inherit eutils multilib python 19inherit eutils multilib python
20 20
21 21
22MY_P="${DESKLET_NAME}-${PV}" 22MY_PN="${DESKLET_NAME}"
23MY_P="${MY_PN}-${PV}"
23S=${WORKDIR}/${DESKLET_NAME} 24S="${WORKDIR}/${DESKLET_NAME}"
24 25
25SRC_URI="http://gdesklets.gnomedesktop.org/files/${MY_P}.tar.gz" 26SRC_URI="http://gdesklets.de/files/desklets/${MY_PN}/${MY_P}.tar.gz"
26 27
27# Ebuild writer shouldn't need to touch these (except maybe $RDEPEND) 28# Ebuild writer shouldn't need to touch these (except maybe $RDEPEND)
28SLOT="0" 29SLOT="0"
29IUSE="" 30IUSE=""
30RDEPEND=">=gnome-extra/gdesklets-core-0.34.3-r1" 31RDEPEND=">=gnome-extra/gdesklets-core-0.34.3-r1"
151 if [[ -z "${SENSOR_NAME}" ]]; then 152 if [[ -z "${SENSOR_NAME}" ]]; then
152 153
153 # Base installation directory for Controls 154 # Base installation directory for Controls
154 CONTROL_INSDIR="${GDESKLETS_INST_DIR}/Controls" 155 CONTROL_INSDIR="${GDESKLETS_INST_DIR}/Controls"
155 156
156 CONTROL_INITS=$(find . -iname "__init__.py" | grep [Cc]ontrols) 157 CONTROL_INITS=$(find . -iname "__init__.py")
157 158
158 # There are possibly multiple Controls packaged with the display. 159 # There are possibly multiple Controls packaged with the display.
159 # For each __init__.py found, there must be a Control associated with it. 160 # For each __init__.py found, there must be a Control associated with it.
160 for CTRL in ${CONTROL_INITS[@]}; do 161 for CTRL in ${CONTROL_INITS[@]}; do
161 162
167 [[ -d "${CONTROL_INSDIR}/${CTRL_NAME}" ]] || \ 168 [[ -d "${CONTROL_INSDIR}/${CTRL_NAME}" ]] || \
168 dodir "${CONTROL_INSDIR}/${CTRL_NAME}" 169 dodir "${CONTROL_INSDIR}/${CTRL_NAME}"
169 170
170 insinto "${CONTROL_INSDIR}/${CTRL_NAME}" 171 insinto "${CONTROL_INSDIR}/${CTRL_NAME}"
171 172
172 doins -r * 173 doins -r *.py
173 174
174 cd "${S}" 175 cd "${S}"
175 176
176 done # for in ${CONTROL_INITS} 177 done # for in ${CONTROL_INITS}
177 178
193 debug-print "Installed ${GFX} into ${GDESKLETS_INST_DIR}/Displays/${DESKLET_NAME}" 194 debug-print "Installed ${GFX} into ${GDESKLETS_INST_DIR}/Displays/${DESKLET_NAME}"
194 195
195 fi # if -n "${GFX}" 196 fi # if -n "${GFX}"
196 197
197 # Install some docs if so requested 198 # Install some docs if so requested
198 [[ -n "${DOCS}" ]] && dodoc "${DOCS}" && \ 199 [[ -n "${DOCS}" ]] && dodoc ${DOCS} && \
199 debug-print "Installed ${DOCS}" 200 debug-print "Installed ${DOCS}"
200 201
201} 202}
202 203
203 204

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20