summaryrefslogtreecommitdiff
blob: b800009045a6b5214af781e612052f5efbe0ca87 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnustep-apps/systempreferences/systempreferences-1.0.1.ebuild,v 1.2 2007/07/13 07:00:14 mr_bones_ Exp $

inherit gnustep

DESCRIPTION="System Preferences is a clone of Apple OS X' System Preferences"
HOMEPAGE="http://www.gnustep.it/enrico/system-preferences/"
SRC_URI="http://www.gnustep.it/enrico/system-preferences/${P}.tar.gz"

KEYWORDS="~ppc x86 amd64"
LICENSE="GPL-2"
SLOT="0"

IUSE=""

DEPEND="${GS_DEPEND}"
RDEPEND="${GS_RDEPEND}"

egnustep_install_domain "System"

DIRS="PreferencePanes SystemPreferences Modules"

src_unpack() {
	unpack ${A}
	cd ${S}

	egnustep_env

	echo "ADDITIONAL_INCLUDE_DIRS += -I${S}" >> SystemPreferences/GNUmakefile.preamble
	echo "ADDITIONAL_LIB_DIRS += -L${S}/PreferencePanes/PreferencePanes.framework/Versions/Current -L${S}/PreferencePanes/PreferencePanes.framework/Versions/Current/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO" >> SystemPreferences/GNUmakefile.preamble

	echo "ADDITIONAL_INCLUDE_DIRS += -I${S}" >> Modules/GNUmakefile.preamble
	echo "ADDITIONAL_LIB_DIRS += -L${S}/PreferencePanes/PreferencePanes.framework/Versions/Current -L${S}/PreferencePanes/PreferencePanes.framework/Versions/Current/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO" >> Modules/GNUmakefile.preamble

	cd Modules
	for target in `find . -type d -maxdepth 1`;
	do
	    echo "ADDITIONAL_INCLUDE_DIRS += -I${S}" >> ${target}/GNUmakefile.preamble
	    echo "ADDITIONAL_LIB_DIRS += -L${S}/PreferencePanes/PreferencePanes.framework/Versions/Current -L${S}/PreferencePanes/PreferencePanes.framework/Versions/Current/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO" >> ${target}/GNUmakefile.preamble
	done
}

src_compile() {
	egnustep_env

	for i in ${DIRS};
	do
	    cd "${S}/${i}"
	    egnustep_make || die
	done
}

src_install() {
	egnustep_env

	for i in ${DIRS}
	do
	    cd "${S}/${i}"
	    egnustep_install || die
	done
}