blob: 262f7f20d498c0361c8ae4424788c2470ae04b8e (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/znf/znf-0.7.9.ebuild,v 1.1 2007/08/31 09:56:24 jokey Exp $
inherit php-pear-lib-r1
KEYWORDS="~amd64 ~sparc ~x86"
MY_P="ZNF-${PV}"
DESCRIPTION="PHP5 MVC framework for enterprise web applications."
HOMEPAGE="http://znf.zeronotice.com/"
SRC_URI="http://pear.zeronotice.org/get/${MY_P}.tgz"
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="minimal"
DEPEND=""
RDEPEND="!minimal? ( >=dev-php/PEAR-DB-1.7.6-r1
>=dev-php/smarty-2.6.10-r1 )"
S="${WORKDIR}/${MY_P}"
need_php_by_category
pkg_setup() {
require_php_with_use xml xsl
# We need to initialize the channel, otherwise install fails
# because of XML parsing error due to unknown DTDs
local chan="pear.zeronotice.org"
einfo "Initializing and updating ${chan} channel..."
pear channel-discover ${chan}
pear channel-update ${chan}
}
pkg_postinst() {
has_php
if ! built_with_use -o =${PHP_PKG} pdo pdo-external && ! has_version dev-php5/pecl-pdo ; then
elog "${PN} can optionally use PDO features. If you want those,"
elog "re-emerge ${PHP_PKG} with either USE=\"pdo\" or USE=\"pdo-external\"."
fi
}
|