Gentoo Archives: gentoo-commits

From: "Joe Sapp (nixphoeni)" <nixphoeni@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: gdesklets.eclass
Date: Tue, 28 Apr 2009 00:57:20
Message-Id: E1LybdO-0007gO-KV@stork.gentoo.org
1 nixphoeni 09/04/28 00:57:18
2
3 Modified: gdesklets.eclass
4 Log:
5 Unquoted for use in dodoc (doesn't work with multiple filenames). Updated SRC_URI (for desklets - Controls have to do some rewriting). Also, Controls should be packaged by themselves so we shouldn't need to grep for [Cc]ontrols when searching for a directory with an __init__.py in order to determine the base directory for the control.
6
7 Revision Changes Path
8 1.17 eclass/gdesklets.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gdesklets.eclass?rev=1.17&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gdesklets.eclass?rev=1.17&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gdesklets.eclass?r1=1.16&r2=1.17
13
14 Index: gdesklets.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v
17 retrieving revision 1.16
18 retrieving revision 1.17
19 diff -u -r1.16 -r1.17
20 --- gdesklets.eclass 19 Feb 2008 01:51:00 -0000 1.16
21 +++ gdesklets.eclass 28 Apr 2009 00:57:18 -0000 1.17
22 @@ -1,6 +1,6 @@
23 # Copyright 2004-2006 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License, v2 or later
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.16 2008/02/19 01:51:00 nixphoeni Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.17 2009/04/28 00:57:18 nixphoeni Exp $
27 #
28 # Authors: Joe Sapp <nixphoeni@g.o>
29 # Mike Gardiner <obz@g.o>
30 @@ -19,10 +19,11 @@
31 inherit eutils multilib python
32
33
34 -MY_P="${DESKLET_NAME}-${PV}"
35 -S=${WORKDIR}/${DESKLET_NAME}
36 +MY_PN="${DESKLET_NAME}"
37 +MY_P="${MY_PN}-${PV}"
38 +S="${WORKDIR}/${DESKLET_NAME}"
39
40 -SRC_URI="http://gdesklets.gnomedesktop.org/files/${MY_P}.tar.gz"
41 +SRC_URI="http://gdesklets.de/files/desklets/${MY_PN}/${MY_P}.tar.gz"
42
43 # Ebuild writer shouldn't need to touch these (except maybe $RDEPEND)
44 SLOT="0"
45 @@ -153,7 +154,7 @@
46 # Base installation directory for Controls
47 CONTROL_INSDIR="${GDESKLETS_INST_DIR}/Controls"
48
49 - CONTROL_INITS=$(find . -iname "__init__.py" | grep [Cc]ontrols)
50 + CONTROL_INITS=$(find . -iname "__init__.py")
51
52 # There are possibly multiple Controls packaged with the display.
53 # For each __init__.py found, there must be a Control associated with it.
54 @@ -169,7 +170,7 @@
55
56 insinto "${CONTROL_INSDIR}/${CTRL_NAME}"
57
58 - doins -r *
59 + doins -r *.py
60
61 cd "${S}"
62
63 @@ -195,7 +196,7 @@
64 fi # if -n "${GFX}"
65
66 # Install some docs if so requested
67 - [[ -n "${DOCS}" ]] && dodoc "${DOCS}" && \
68 + [[ -n "${DOCS}" ]] && dodoc ${DOCS} && \
69 debug-print "Installed ${DOCS}"
70
71 }