summaryrefslogtreecommitdiff
blob: 83b4f6d50102733563867c9ed7b305391a506c29 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit gnustep-2

S="${WORKDIR}/Etoile-${PV}/Bundles/${PN/c/C}"

DESCRIPTION="Camaelon allows you to load theme bundles for GNUstep."

HOMEPAGE="http://www.etoile-project.org/etoile/mediawiki/index.php?title=Camaelon"
SRC_URI="http://download.gna.org/etoile/etoile-${PV}.tar.gz"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
SLOT="0"
LICENSE="LGPL-2.1"

src_install() {
	gnustep-base_src_install

	#Link default theme
	mkdir -p ${D}${GNUSTEP_SYSTEM_LIBRARY}/Themes
	ln -s ${GNUSTEP_SYSTEM_LIBRARY}/Bundles/Camaelon.themeEngine/Resources/Nesedah.theme ${D}${GNUSTEP_SYSTEM_LIBRARY}/Themes/
}

gnustep_config_script() {
	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"
}