blob: 7f02f43e93483f54af256ca3d0051ce6a59977d0 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/php-accelerator/php-accelerator-1.3.3-r1.ebuild,v 1.8 2005/06/17 08:19:13 sebastian Exp $
DESCRIPTION="The ionCube PHP Accelerator"
HOMEPAGE="http://www.php-accelerator.co.uk/"
LICENSE="freedist"
SLOT="0"
KEYWORDS="~alpha x86 ~ppc"
IUSE=""
RESTRICT="nomirror nostrip"
DEPEND="!dev-php/eaccelerator
!dev-php/PECL-apc
virtual-php-4*"
# Detect machine type
PHP_NO_BUILD=
case ${MACHTYPE} in
alpha-pc-linux-gnu)
OS="linux"
CPU="alpha"
;;
i686-pc-linux-gnu)
OS="linux"
CPU="i686"
;;
*)
PHPA_NO_BUILD=1
;;
esac
# Detect glibc version
GLIBC_VER="2.1.3"
# use phpAccelerator for PHP 4.3.0
PHP_VER="4.3.0"
PHPA_VER="${PV}r2"
PHPA="php_accelerator-${PHPA_VER}_php-${PHP_VER}_${OS}_${CPU}-glibc${GLIBC_VER}"
SRC_URI="http://www.php-accelerator.co.uk/releases/${OS}_${CPU}-glibc${GLIBC_VER}/${PHPA_VER}_${PHP_VER}/${PHPA}.tgz"
DEPEND=""
RDEPEND=">=sys-libs/glibc-${GLIBC_VER} >=virtual/php-${PHP_VER}"
S=${WORKDIR}/${PHPA}
PHP_EXT_NAME="php_accelerator_${PHPA_VER}"
PHP_EXT_ZENDEXT="yes"
inherit php-ext-base
pkg_setup() {
if [ -n "${PHPA_NO_BUILD}" ]; then
die "There is no build for your machine type (${MACHTYPE})"
fi
}
src_install() {
insinto ${EXT_DIR}
doins ${PHP_EXT_NAME}.so
dobin phpa_cache_admin
dodoc CONFIGURATION INSTALL release_notes phpa_cache_admin *.gif
php-ext-base_src_install
php-ext-base_addtoinifiles "phpa.shm_user" '"apache"'
php-ext-base_addtoinifiles "phpa.shm_group" '"apache"'
}
|