1 |
lack 07/11/28 17:20:04 |
2 |
|
3 |
Modified: rox.eclass |
4 |
Log: |
5 |
Replaced IFS with marginally more readable value |
6 |
|
7 |
Replaced useq with use (thanks to drac for pointing this out) |
8 |
|
9 |
Added warnings about not using 'usemime' in the global scope. |
10 |
|
11 |
Revision Changes Path |
12 |
1.24 eclass/rox.eclass |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/rox.eclass?rev=1.24&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/rox.eclass?rev=1.24&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/rox.eclass?r1=1.23&r2=1.24 |
17 |
|
18 |
Index: rox.eclass |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/eclass/rox.eclass,v |
21 |
retrieving revision 1.23 |
22 |
retrieving revision 1.24 |
23 |
diff -u -r1.23 -r1.24 |
24 |
--- rox.eclass 28 Nov 2007 14:20:58 -0000 1.23 |
25 |
+++ rox.eclass 28 Nov 2007 17:20:03 -0000 1.24 |
26 |
@@ -1,6 +1,6 @@ |
27 |
# Copyright 1999-2004 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/rox.eclass,v 1.23 2007/11/28 14:20:58 lack Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/rox.eclass,v 1.24 2007/11/28 17:20:03 lack Exp $ |
31 |
|
32 |
# ROX eclass Version 3 |
33 |
|
34 |
@@ -38,8 +38,11 @@ |
35 |
# APPMIME="a/foo-1;a/foo-2 |
36 |
# $(usemime three "a/three") |
37 |
# text/plain" |
38 |
-# will be expanded to either "a/foo-1;a/foo-2;a/three;text/plain" if USE=three |
39 |
-# or "a/foo-1;a/foo-2;text/plain" if not. |
40 |
+# will be expanded to either "a/foo-1;a/foo-2;a/three;text/plain" if |
41 |
+# USE=three or "a/foo-1;a/foo-2;text/plain" if not. |
42 |
+# WARNING: the 'usemime' function cannot be used in global scope. You should |
43 |
+# set APPMIME (or at least the USE-dependant parts) in your own src_install |
44 |
+# before calling rox_src_install. See rox-extra/archive for an example. |
45 |
# KEEP_SRC - this flag, if set, will not remove the source directory |
46 |
# but will do a 'make clean' in it. This is useful if users wish to |
47 |
# preserve the source code for some reason |
48 |
@@ -84,9 +87,11 @@ |
49 |
# External Functions |
50 |
|
51 |
# Used for assembling APPMIME with USE-dependent parts |
52 |
+# WARNING: Cannot be used in global scope. |
53 |
+# Set this in src_install just before you call rox_src_install |
54 |
usemime() { |
55 |
local myuse=$1; shift |
56 |
- useq $myuse && echo "$@" |
57 |
+ use $myuse && echo "$@" |
58 |
} |
59 |
|
60 |
# Utility Functions |
61 |
@@ -95,7 +100,7 @@ |
62 |
# where needed. |
63 |
expandmime() { |
64 |
local old_IFS=$IFS |
65 |
- IFS=";$' \t\n'" |
66 |
+ IFS=$'; \t\n' |
67 |
echo "$*" |
68 |
IFS=$old_IFS |
69 |
} |
70 |
|
71 |
|
72 |
|
73 |
-- |
74 |
gentoo-commits@g.o mailing list |