/
symfony-1.4.20.ebuild
62 lines (54 loc) · 1.58 KB
/
symfony-1.4.20.ebuild
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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit php-pear-lib-r1
if [ "$PV" == "9999" ]; then
EGIT_REPO_URI="git://github.com/laurentb/symfony1.git https://github.com/laurentb/symfony1.git"
EGIT_BRANCH="master"
EGIT_HAS_SUBMODULES=1
inherit git-2
SRC_URI=""
elif [ "$PV" == "9998" ]; then
EGIT_REPO_URI="git://github.com/LExpress/symfony1.git https://github.com/LExpress/symfony1.git"
EGIT_BRANCH="1.4"
inherit git-2
SRC_URI=""
elif [ "$PV" == "9997" ]; then
EGIT_REPO_URI="git://github.com/chok/symfony1.git https://github.com/chok/symfony1.git"
EGIT_BRANCH="1.4"
inherit git-2
SRC_URI=""
elif [ "$PV" == "9996" ]; then
EGIT_REPO_URI="git://github.com/symfony/symfony1.git https://github.com/symfony/symfony1.git"
EGIT_BRANCH="1.4"
inherit git-2
SRC_URI=""
else
SRC_URI="http://pear.symfony-project.com/get/${P}.tgz"
fi
DESCRIPTION="Open-source PHP5 web framework"
HOMEPAGE="http://www.symfony-project.com/"
LICENSE="MIT LGPL-2.1 BSD BSD-2 FDL-1.2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="dev-lang/php[cli,ctype,session,simplexml,tokenizer,xml]
|| ( <dev-lang/php-5.3[pcre,reflection,spl] >=dev-lang/php-5.3 )
dev-php/pear"
RDEPEND="${DEPEND}"
src_prepare() {
cd "${S}"
if [ ! -f package.xml ]; then
cp "${FILESDIR}/prerelease.php" "data/bin/"
php data/bin/prerelease.php "${PV}"
fi
}
pkg_postinst() {
if has_version '=dev-lang/php-5*[-posix]';then
einfo ""
einfo "To enable color output on the symfony command line"
einfo "add USE=\"posix\" to dev-lang/php"
einfo ""
fi
}