| 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.13 2006/05/26 04:14:58 nixphoeni Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.14 2006/05/26 04:18:43 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: |
| … | |
… | |
| 109 | # base directory and change the install location |
109 | # base directory and change the install location |
| 110 | # so it gets installed at the proper place |
110 | # so it gets installed at the proper place |
| 111 | # relative to the display. |
111 | # relative to the display. |
| 112 | for SCR in ${SCRIPTS[@]}; do |
112 | for SCR in ${SCRIPTS[@]}; do |
| 113 | |
113 | |
| 114 | cd `dirname ${SCR}` |
|
|
| 115 | |
|
|
| 116 | insinto ${DESKLET_INSDIR}/`dirname ${SCR}` |
114 | insinto ${DESKLET_INSDIR}/`dirname ${SCR}` |
| 117 | doins `basename ${SCR}` |
115 | doins ${SCR} |
| 118 | debug-print "Installed `basename ${SCR}` into ${DESKLET_INSDIR}/`dirname ${SCR}`" |
116 | debug-print "Installed ${SCR} into ${DESKLET_INSDIR}/`dirname ${SCR}`" |
| 119 | |
|
|
| 120 | cd ${S}/`dirname ${DSP}` |
|
|
| 121 | |
117 | |
| 122 | done # for in ${SCRIPTS} |
118 | done # for in ${SCRIPTS} |
| 123 | |
119 | |
| 124 | # Install the graphics for this display. |
120 | # Install the graphics for this display. |
| 125 | # If there are multiple displays in this |
121 | # If there are multiple displays in this |
| … | |
… | |
| 197 | debug-print "Installed ${GFX} into ${GDESKLETS_INST_DIR}/Displays/${DESKLET_NAME}" |
193 | debug-print "Installed ${GFX} into ${GDESKLETS_INST_DIR}/Displays/${DESKLET_NAME}" |
| 198 | |
194 | |
| 199 | fi # if -n "${GFX}" |
195 | fi # if -n "${GFX}" |
| 200 | |
196 | |
| 201 | # Install some docs if so requested |
197 | # Install some docs if so requested |
| 202 | [[ -n "${DOCS}" ]] && dodoc ${DOCS} |
198 | [[ -n "${DOCS}" ]] && dodoc ${DOCS} && \ |
| 203 | debug-print "Installed ${DOCS}" |
199 | debug-print "Installed ${DOCS}" |
| 204 | |
200 | |
| 205 | } |
201 | } |
| 206 | |
202 | |
| 207 | |
203 | |