blob: cd3d3993d5f8b0b0ae1d4dd7b5426d2dfc250fe4 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/php-cvs/php-cvs-5.0.ebuild,v 1.7 2004/07/14 21:43:13 agriffis Exp $
ECVS_SERVER="cvs.php.net:/repository"
ECVS_MODULE="php5"
ECVS_USER="cvsread"
ECVS_PASS="phpfi"
ECVS_AUTH="pserver"
ECVS_BRANCH=""
PHPSAPI="cli"
inherit php cvs
MY_P=php-${PV}
S=${WORKDIR}/${ECVS_MODULE}
DESCRIPTION="PHP Shell Interpreter - development version"
SRC_URI=""
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc"
IUSE=""
DEPEND="${DEPEND}
>=dev-util/re2c-0.9.1"
src_unpack() {
cvs_src_unpack
cd ${S}
}
src_compile() {
./buildconf
myconf="${myconf} --enable-embed"
myconf="${myconf} --disable-cgi --enable-cli"
php_src_compile
}
src_install() {
installtargets="${installtargets} install-cli"
php_src_install
cp sapi/cli/php .
exeinto /usr/bin
doexe php
#We'll keep that as php4 for the mean time, to avoid accidents
mv php.ini-dist php.ini
insinto /etc/php4
doins php.ini
docinto Zend
dodoc Zend/ZEND_CHANGES Zend/ChangeLog Zend/OBJECTS2_HOWTO
}
pkg_postinst() {
# This fixes the permission from world writeable to the correct one.
# - novell@kiruna.se
chmod 755 /usr/bin/pear
# This is more correct information.
einfo
einfo "This is a CLI only build."
einfo "You can not use it on a webserver."
einfo
}
|