diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2007-09-05 13:42:56 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2007-09-05 13:42:56 +0000 |
commit | 2dcae703067c7bca02c332f4058de26939d3c364 (patch) | |
tree | 8fe95bfed184bdff36dc788e74a1b63016a7330e /gnustep-libs/camaelon/camaelon-0.2.ebuild | |
parent | Fixed etoile-idle dep, bug #190371 (diff) | |
download | gnustep-2dcae703067c7bca02c332f4058de26939d3c364.tar.gz gnustep-2dcae703067c7bca02c332f4058de26939d3c364.tar.bz2 gnustep-2dcae703067c7bca02c332f4058de26939d3c364.zip |
First attempt at new convenience script
Allows for multiple GSAppKiUserBundles
svn path=/overlay/; revision=332
Diffstat (limited to 'gnustep-libs/camaelon/camaelon-0.2.ebuild')
-rw-r--r-- | gnustep-libs/camaelon/camaelon-0.2.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gnustep-libs/camaelon/camaelon-0.2.ebuild b/gnustep-libs/camaelon/camaelon-0.2.ebuild index 447aff2..83b4f6d 100644 --- a/gnustep-libs/camaelon/camaelon-0.2.ebuild +++ b/gnustep-libs/camaelon/camaelon-0.2.ebuild @@ -23,8 +23,14 @@ src_install() { } gnustep_config_script() { - echo "echo ' * setting NSGlobalDomain GSAppKitUserBundles'" - echo "defaults write NSGlobalDomain GSAppKitUserBundles '(\"/usr/GNUstep/System/Library/Bundles/Camaelon.themeEngine\")'" + echo "bundle='\"${GNUSTEP_SYSTEM_LIBRARY}/Bundles/Camaelon.themeEngine\"'" + echo 'cur=$(defaults read NSGlobalDomain GSAppKitUserBundles)' + echo 'if [[ ${cur} != *${bundle}* ]] ; then' + echo " echo ' * setting NSGlobalDomain GSAppKitUserBundles'" + echo " echo \"\${cur%)\\\'}, \${bundle} )'\" | defaults write || die \"defaults write failed\"" + echo 'else' + echo " echo ' * Bundle already present in GSAppKitUserBundles'" + echo 'fi' echo "echo ' * using Camaelon Theme: Nesdah'" echo "defaults write Camaelon Theme Nesedah" } |