summaryrefslogtreecommitdiff
blob: f9a14b88f3eeaa777a2d90cb4a2951e35dbcd50f (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="prefix"

inherit gnustep-2

S="${WORKDIR}/Etoile-${PV}/Services/Private/System"

DESCRIPTION="Meta-package for the Etoile desktop environment"
HOMEPAGE="http://www.etoile-project.org"
SRC_URI="http://download.gna.org/etoile/etoile-${PV}.tar.gz"

LICENSE="as-is"
KEYWORDS="~x86 ~amd64"
SLOT="0"

RDEPEND=">=gnustep-apps/addresses-0.4.7
	~gnustep-apps/azalea-${PV}
	~gnustep-apps/azbackground-${PV}
	~gnustep-apps/azdock-${PV}
	~gnustep-apps/azswitch-${PV}
	~gnustep-apps/calc-${PV}
	~gnustep-apps/dictionaryreader-${PV}
	~gnustep-apps/etoile-corner-${PV}
	~gnustep-apps/etoile-idle-${PV}
	~gnustep-apps/etoile-menuserver-${PV}
	~gnustep-apps/etoile-system-${PV}
	~gnustep-apps/fontmanager-${PV}
	~gnustep-apps/grr-${PV}
	~gnustep-apps/outerspace-${PV}
	~gnustep-apps/sketch-${PV}
	~gnustep-apps/stepchat-${PV}
	~gnustep-apps/typewriter-${PV}
	~gnustep-apps/vindaloo-${PV}
	~gnustep-libs/camaelon-${PV}
	~gnustep-libs/etoile-behavior-${PV}
	~gnustep-libs/etoile-wildmenus-${PV}"

src_unpack() {
	unpack ${A}
	cd ${S}
	
	# Fix path
	egnustep_env
	sed -i "s#/usr/local/bin/etoile#${GNUSTEP_SYSTEM_TOOLS}/etoile_system#" \
		etoile.desktop || die "Fixing desktop file failed"
}

src_compile() {
	einfo "Nothing to compile"
}

src_install() {
	egnustep_env

	# Install SystemTaskList
	dodir ${GNUSTEP_SYSTEM_LIBRARY#${EPREFIX}}/Etoile
	insinto ${GNUSTEP_SYSTEM_LIBRARY#${EPREFIX}}/Etoile
	doins SystemTaskList.plist	

	# Install desktop entry file
	insinto /usr/share/xsessions
	doins etoile.desktop
}

pkg_postinst() {
	elog "Thanks for trying Etoile ebuilds from the GNUstep overlay"
	elog "This is still a work in progress. For now,"
	elog "to enable all Etoile features, you will need to run (as user):"
	elog "# defaults write NSGlobalDomain GSAppKitUserBundles '("
	elog "\"/usr/GNUstep/System/Library/Bundles/Camaelon.themeEngine\","
	elog "\"/usr/GNUstep/System/Library/Bundles/EtoileMenus.bundle",
	elog "\"/usr/GNUstep/System/Library/Bundles/EtoileBehavior.bundle\")'"
	elog "This will probably be changed in the near future"
}