blob: b72d1a97f9c4076b249ecc0a65a2189c071b0797 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/desklet-meminfo/desklet-meminfo-0.1.4.ebuild,v 1.3 2003/09/24 19:59:46 todd Exp $
SENS_NAME="Memory"
DISP_NAME="meminfo"
SENS_P=${SENS_NAME}-${PV}
DISP_P=${DISP_NAME}-${PV}
DESCRIPTION="A Memory-free Monitoring Sensor and Display for gDesklets"
SRC_URI="http://gdesklets.gnomedesktop.org/files/${SENS_P}.tar.bz2 \
http://gdesklets.gnomedesktop.org/files/${DISP_P}.tar.bz2"
HOMEPAGE="http://www.pycage.de/"
LICENSE="as-is"
SLOT="0"
IUSE=""
KEYWORDS="~x86 ~sparc"
DEPEND=">=gnome-extra/gdesklets-core-0.20
>=x11-plugins/desklet-fontselector-0.1.5"
# unfortunately, these are usually dependent on the particular
# desklet and it's packager
DOCS="README ChangeLog"
SENS_S=${WORKDIR}/${SENS_P}
DISP_S=${WORKDIR}
src_install( ) {
# set up our paths
SYS_PATH="/usr/share/gdesklets"
INSTALL_BIN="Install_${SENS_NAME}_Sensor.bin"
dodir ${SYS_PATH}/{Sensors,Displays}
# first we install the Sensor
cd ${SENS_S}
python ${INSTALL_BIN} --nomsg ${D}${SYS_PATH}/Sensors
# and the docs
dodoc ${DOCS}
# and now the display
cd ${DISP_S}
dodir ${SYS_PATH}/Displays/${DISP_NAME}/{dark,light}-theme
# this one include both 'light' and 'dark' themed displays
cp -R dark-theme/{${DISP_NAME}.display,gfx/} \
${D}${SYS_PATH}/Displays/${DISP_NAME}/dark-theme
cp -R light-theme/{${DISP_NAME}.display,gfx/} \
${D}${SYS_PATH}/Displays/${DISP_NAME}/light-theme
}
|