/[gentoo-x86]/eclass/php-ext-pecl-r1.eclass
Gentoo

Diff of /eclass/php-ext-pecl-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.11 Revision 1.12
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/php-ext-pecl-r1.eclass,v 1.11 2008/01/06 19:30:24 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/php-ext-pecl-r1.eclass,v 1.12 2010/09/13 13:44:14 mabi Exp $
4# 4#
5# Author: Tal Peer <coredumb@gentoo.org> 5# Author: Tal Peer <coredumb@gentoo.org>
6# Author: Luca Longinotti <chtekk@gentoo.org> 6# Author: Luca Longinotti <chtekk@gentoo.org>
7# Author: Jakub Moc <jakub@gentoo.org> 7# Author: Jakub Moc <jakub@gentoo.org>
8 8
43 43
44[[ -z "${PHP_EXT_NAME}" ]] && PHP_EXT_NAME="${PECL_PKG}" 44[[ -z "${PHP_EXT_NAME}" ]] && PHP_EXT_NAME="${PECL_PKG}"
45 45
46inherit php-ext-source-r1 depend.php 46inherit php-ext-source-r1 depend.php
47 47
48EXPORT_FUNCTIONS src_compile src_install 48EXPORT_FUNCTIONS src_compile src_install src_test
49 49
50if [[ -n "${PHP_EXT_PECL_FILENAME}" ]] ; then 50if [[ -n "${PHP_EXT_PECL_FILENAME}" ]] ; then
51 FILENAME="${PHP_EXT_PECL_FILENAME}-${MY_PV}.tgz" 51 FILENAME="${PHP_EXT_PECL_FILENAME}-${MY_PV}.tgz"
52else 52else
53 FILENAME="${PECL_PKG_V}.tgz" 53 FILENAME="${PECL_PKG_V}.tgz"
86 if has examples ${IUSE} && use examples ; then 86 if has examples ${IUSE} && use examples ; then
87 insinto /usr/share/doc/${CATEGORY}/${PF}/examples 87 insinto /usr/share/doc/${CATEGORY}/${PF}/examples
88 doins -r examples/* 88 doins -r examples/*
89 fi 89 fi
90} 90}
91
92# @FUNCTION: php-ext-pecl-r1_src_test
93# @DESCRIPTION:
94# Takes care of running any tests delivered with the PECL package.
95# Testing is somewhat standardized across pecl extensions through phpize's
96# run-tests.php - unfortunatly there are some quirks we need to work around
97php-ext-pecl-r1_src_test() {
98 # Makefile passes a hard-coded -d extension_dir=./modules, we move the lib
99 # away from there in src_compile
100 ln -s "${WORKDIR}/${PHP_EXT_NAME}-default.so" "${S}/modules/${PHP_EXT_NAME}.so"
101
102 NO_INTERACTION="yes" emake test
103}

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20