summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Ramsay <lack@gentoo.org>2007-11-28 17:20:03 +0000
committerJim Ramsay <lack@gentoo.org>2007-11-28 17:20:03 +0000
commit63126c7a61446adddaf1deeec04d424b1d9f248f (patch)
tree63f58b8f71ca5451995f801d758c1a3624b2ef92 /eclass/rox.eclass
parentalpha/ia64/sparc stable wrt #200103 (diff)
downloadgentoo-2-63126c7a61446adddaf1deeec04d424b1d9f248f.tar.gz
gentoo-2-63126c7a61446adddaf1deeec04d424b1d9f248f.tar.bz2
gentoo-2-63126c7a61446adddaf1deeec04d424b1d9f248f.zip
Replaced IFS with marginally more readable value
Replaced useq with use (thanks to drac for pointing this out) Added warnings about not using 'usemime' in the global scope.
Diffstat (limited to 'eclass/rox.eclass')
-rw-r--r--eclass/rox.eclass15
1 files changed, 10 insertions, 5 deletions
diff --git a/eclass/rox.eclass b/eclass/rox.eclass
index fce433b2fd1f..3044d8b77e65 100644
--- a/eclass/rox.eclass
+++ b/eclass/rox.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/rox.eclass,v 1.23 2007/11/28 14:20:58 lack Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/rox.eclass,v 1.24 2007/11/28 17:20:03 lack Exp $
# ROX eclass Version 3
@@ -38,8 +38,11 @@
# APPMIME="a/foo-1;a/foo-2
# $(usemime three "a/three")
# text/plain"
-# will be expanded to either "a/foo-1;a/foo-2;a/three;text/plain" if USE=three
-# or "a/foo-1;a/foo-2;text/plain" if not.
+# will be expanded to either "a/foo-1;a/foo-2;a/three;text/plain" if
+# USE=three or "a/foo-1;a/foo-2;text/plain" if not.
+# WARNING: the 'usemime' function cannot be used in global scope. You should
+# set APPMIME (or at least the USE-dependant parts) in your own src_install
+# before calling rox_src_install. See rox-extra/archive for an example.
# KEEP_SRC - this flag, if set, will not remove the source directory
# but will do a 'make clean' in it. This is useful if users wish to
# preserve the source code for some reason
@@ -84,9 +87,11 @@ LIBDIR="/usr/$(get_libdir)"
# External Functions
# Used for assembling APPMIME with USE-dependent parts
+# WARNING: Cannot be used in global scope.
+# Set this in src_install just before you call rox_src_install
usemime() {
local myuse=$1; shift
- useq $myuse && echo "$@"
+ use $myuse && echo "$@"
}
# Utility Functions
@@ -95,7 +100,7 @@ usemime() {
# where needed.
expandmime() {
local old_IFS=$IFS
- IFS=";$' \t\n'"
+ IFS=$'; \t\n'
echo "$*"
IFS=$old_IFS
}