blob: 1090ebc2383b6a2007e4585d37a185919db2c4cd (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source.eclass,v 1.8 2004/07/06 22:24:47 robbat2 Exp $
#
# Author: Tal Peer <coredumb@gentoo.org>
# Author: Stuart Herbert <stuart@gentoo.org>
#
# The php-ext-source eclass provides a unified interface for compiling and
# installing standalone PHP extensions ('modules') from source code
#
# To use this eclass, you must add the following to your ebuild:
#
# inherit php-ext-source
inherit php-ext-base
ECLASS=php-ext-source
INHERITED="$INHERITED $ECLASS"
EXPORT_FUNCTIONS src_compile src_install
# ---begin ebuild configurable settings
# Wether or not to add a line in the php.ini for the extension
# (defaults to "yes" and shouldn't be changed in most cases)
[ -z "$PHP_EXT_INI" ] && PHP_EXT_INI="yes"
# ---end ebuild configurable settings
DEPEND="${DEPEND}
dev-php/php
>=sys-devel/m4-1.4
>=sys-devel/libtool-1.4.3"
RDEPEND="${RDEPEND}
virtual/php"
php-ext-source_src_compile() {
#phpize creates configure out of config.m4
phpize
econf $myconf
emake || die
}
php-ext-source_src_install() {
chmod +x build/shtool
insinto $EXT_DIR
doins modules/$PHP_EXT_NAME.so
php-ext-base_src_install
}
|