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

Diff of /eclass/gdesklets.eclass

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

Revision 1.4 Revision 1.5
1# Copyright 2004 Gentoo Foundation 1# Copyright 2004 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.4 2005/06/06 02:00:12 nixphoeni Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.5 2005/06/17 23:34:55 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:
14# Usually ${WORKDIR}/${DESKLET_NAME} if it was packaged 14# Usually ${WORKDIR}/${DESKLET_NAME} if it was packaged
15# correctly (hence, this is the default). 15# correctly (hence, this is the default).
16# RDEPEND: *Optional* Set if the desklet requires a minimum version 16# RDEPEND: *Optional* Set if the desklet requires a minimum version
17# of gDesklets greater than 0.34 or other packages. 17# of gDesklets greater than 0.34 or other packages.
18 18
19inherit eutils 19inherit eutils multilib
20
20ECLASS="gdesklets" 21ECLASS="gdesklets"
21INHERITED="$INHERITED $ECLASS" 22INHERITED="$INHERITED $ECLASS"
22 23
23MY_P="${DESKLET_NAME}-${PV}" 24MY_P="${DESKLET_NAME}-${PV}"
24S=${WORKDIR}/${DESKLET_NAME} 25S=${WORKDIR}/${DESKLET_NAME}
45 [[ -d ${GDESKLETS_INST_DIR}/Displays ]] || \ 46 [[ -d ${GDESKLETS_INST_DIR}/Displays ]] || \
46 dodir ${GDESKLETS_INST_DIR}/Displays 47 dodir ${GDESKLETS_INST_DIR}/Displays
47 48
48 # The displays only need to be readable 49 # The displays only need to be readable
49 insopts -m0744 50 insopts -m0744
51
52 # Check to see if DISPLAY is set for the
53 # gdesklets-control-getid script to run without
54 # error
55 [ -z "${DISPLAY}" ] && DISPLAY=""
56 export DISPLAY
50 57
51 # First, install the Sensor (if there is one) 58 # First, install the Sensor (if there is one)
52 if [[ -n "${SENSOR_NAME}" ]]; then 59 if [[ -n "${SENSOR_NAME}" ]]; then
53 for SENS in ${SENSOR_NAME[@]}; do 60 for SENS in ${SENSOR_NAME[@]}; do
54 einfo "Installing Sensor ${SENS}" 61 einfo "Installing Sensor ${SENS}"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20