summaryrefslogtreecommitdiff
blob: d1b0777ecd9cc30c50c05c4cc97f3bc13abeeaa6 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils php-pear-manylibs-r1

MY_PVR=${PV/_rc3/_kolab2gentoo}${PR/r/}

DESCRIPTION="Horde Application Framework"
HOMEPAGE="http://www.horde.org/"
SRC_URI="http://files.pardus.de/${PN}-${MY_PVR}.tar.bz2"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

S=${WORKDIR}/framework

HORDE_PHP_FEATURES="kolab imap ldap nls session xml"

PEAR_PACKAGES="
Alarm
Auth
Block
Browser
Cache
Cipher
CLI
Compress
Crypt
Data
DataTree
Date
DOM
Editor
Feed
File_CSV
File_PDF
Form
Group
History
Horde
Http_Client
iCalendar
Image
IMAP
Kolab
LDAP
Maintenance
Memcache
MIME
Mobile
Net_IMSP
Net_SMS
NLS
Notification
Perms
Prefs
Rdo
RPC
Scheduler
Secret
Serialize
SessionHandler
SessionObjects
Share
SpellChecker
SQL
SyncML
Template
Text_Diff
Text_Filter
Text_Flowed
Text_Rst
Token
Tree
UI
Util
VC
VFS
VFS_ISOWriter
View
Xml_Element
XML_WBXML
Yaml
"

RDEPEND="${RDEPEND}
!dev-php/horde
!dev-php/horde-framework-cvs
dev-php/PEAR-Horde-Channel
"


pkg_setup() {
	if [[ ! -z ${HORDE_PHP_FEATURES} ]] ; then
		local param
		if [[ ${HORDE_PHP_FEATURES:0:2} = "-o" ]] ; then
			param="-o"
			HORDE_PHP_FEATURES=${HORDE_PHP_FEATURES:2}
		fi
		if ! built_with_use ${param} dev-lang/php ${HORDE_PHP_FEATURES} ; then
			if [[ ${parm} == "-o" ]] ; then
				eerror "You MUST re-emerge php with at least one of"
			else
				eerror "You MUST re-emerge php with all of"
			fi
			eerror "the following options in your USE:"
			eerror " ${HORDE_PHP_FEATURES}"
			die "current php install cannot support ${HORDE_PN}"
		fi
	fi
}

src_unpack() {

	unpack ${A} && cd "${S}"

	for PATCH in "${FILESDIR}"/*-${MY_PVR}.patch
	do
		epatch "${PATCH}"
	done
}