blob: a48d1f4da7fd4dc1d43b9f529e62b984fc83857d (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/ZendFramework/ZendFramework-1.8.3.ebuild,v 1.4 2009/07/19 11:52:28 gurligebis Exp $
PHP_LIB_NAME="Zend"
inherit php-lib-r1
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
DESCRIPTION="Zend Framework is a high quality and open source framework for developing Web Applications."
HOMEPAGE="http://framework.zend.com/"
SRC_URI="!minimal? ( http://framework.zend.com/releases/${P}/${P}.tar.gz )
minimal? ( http://framework.zend.com/releases/${P}/${P}-minimal.tar.gz )
doc? (
http://framework.zend.com/releases/${P}/${P}-apidoc.tar.gz
http://framework.zend.com/releases/${P}/${P}-manual-en.tar.gz )"
LICENSE="BSD"
SLOT="0"
IUSE="doc examples minimal cli"
DEPEND=""
RDEPEND=""
need_php_by_category
pkg_setup() {
if use cli ; then
require_php_with_use simplexml tokenizer
fi
}
src_unpack() {
unpack ${A}
if use minimal ; then
S="${WORKDIR}/${P}-minimal"
if use doc ; then
mv "${WORKDIR}/${P}/documentation" "${S}"
fi
fi
cd "${S}"
}
src_install() {
if use cli ; then
insinto /usr/bin
doins bin/zf.php
dobin bin/zf.sh
dosym /usr/bin/zf.sh /usr/bin/zf
fi
php-lib-r1_src_install library/Zend $(cd library/Zend ; find . -type f -print)
if use examples ; then
insinto /usr/share/doc/${PF}
if ! use minimal ; then
doins -r demos
fi
fi
dodoc README.txt
if use doc ; then
dohtml -r documentation/*
fi
}
pkg_postinst() {
elog "For more info, please take a look at the manual at:"
elog "http://framework.zend.com/manual"
elog ""
if use minimal; then
elog "You have installed the minimal version of ZendFramework,"
elog "so the Dojo toolkit, demos and tests have not been installed."
else
elog "You have installed the full version of ZendFramework, which"
elog "includes the Dojo toolkit, demos and tests."
elog "To install ZendFramework without there, enable the"
elog "minimal USE flag."
fi
}
|