/[gentoo-alt]/trunk/prefix/eclass/php-ext-source.eclass
Gentoo

Contents of /trunk/prefix/eclass/php-ext-source.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations) (download)
Thu Feb 2 04:20:17 2006 UTC (13 years, 2 months ago) by kito
File size: 1300 byte(s)
Initial eclass import from gentoo-x86
1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/php-ext-source.eclass,v 1.11 2005/07/06 20:23:20 agriffis Exp $
4 #
5 # Author: Tal Peer <coredumb@gentoo.org>
6 # Author: Stuart Herbert <stuart@gentoo.org>
7 #
8 # The php-ext-source eclass provides a unified interface for compiling and
9 # installing standalone PHP extensions ('modules') from source code
10 #
11 # To use this eclass, you must add the following to your ebuild:
12 #
13 # inherit php-ext-source
14
15 inherit php-ext-base
16
17
18 EXPORT_FUNCTIONS src_compile src_install
19
20 # ---begin ebuild configurable settings
21
22 # Wether or not to add a line in the php.ini for the extension
23 # (defaults to "yes" and shouldn't be changed in most cases)
24 [ -z "$PHP_EXT_INI" ] && PHP_EXT_INI="yes"
25
26 # ---end ebuild configurable settings
27
28 DEPEND="${DEPEND}
29 dev-php/php
30 >=sys-devel/m4-1.4
31 >=sys-devel/libtool-1.4.3"
32
33 RDEPEND="${RDEPEND}
34 virtual/php"
35
36 php-ext-source_src_compile() {
37 addpredict /usr/share/snmp/mibs/.index
38 #phpize creates configure out of config.m4
39 phpize
40 econf $myconf
41 emake || die
42 }
43
44 php-ext-source_src_install() {
45 addpredict /usr/share/snmp/mibs/.index
46 chmod +x build/shtool
47 insinto $EXT_DIR
48 doins modules/$PHP_EXT_NAME.so
49 php-ext-base_src_install
50 }

  ViewVC Help
Powered by ViewVC 1.1.20