/[gentoo-x86]/eclass/php-lib.eclass
Gentoo

Diff of /eclass/php-lib.eclass

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

Revision 1.1.1.1 Revision 1.8
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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-lib.eclass,v 1.1.1.1 2005/11/30 09:59:27 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/php-lib.eclass,v 1.8 2009/11/30 04:19:36 abcd dead $
4# 4#
5# Author: Stuart Herbert <stuart@gentoo.org> 5# Author: Stuart Herbert <stuart@gentoo.org>
6# 6#
7# The php-lib eclass provides a unified interface for adding new 7# The php-lib eclass provides a unified interface for adding new
8# PHP libraries. PHP libraries are PHP scripts designed for reuse inside 8# PHP libraries. PHP libraries are PHP scripts designed for reuse inside
9# other PHP scripts. 9# other PHP scripts.
10# 10#
11# This eclass doesn't do a lot (yet) 11# This eclass doesn't do a lot (yet)
12 12
13RESTRICT="${RESTRICT} nostrip" 13# DEPRECATED!!!
14# STOP USING THIS ECLASS, use php-lib-r1.eclass instead!
14 15
15EXPORT_FUNCTIONS src_install 16inherit php-lib-r1
16 17
17# ---begin ebuild configurable settings 18deprecation_warning() {
18 19 eerror "Please upgrade ${PF} to use php-lib-r1.eclass!"
19# provide default extension name if necessary 20}
20[ -z "$PHP_LIB_NAME" ] && PHP_LIB_NAME="${PN}"
21
22PHP_LIB_DIR="/usr/lib/php/${PHP_LIB_NAME}"
23
24# ---end ebuild configurable settings
25
26DEPEND="${DEPEND}
27 virtual/php"
28
29# you have to pass in a list of the PHP files to install
30#
31# $1 - directory in ${S} to insert from
32# $2 ... list of files to install
33 21
34php-lib_src_install() { 22php-lib_src_install() {
35 local x 23 deprecation_warning
36 24 php-lib-r1_src_install
37 S_DIR="$1"
38 shift
39
40 for x in $@ ; do
41 SUBDIR="`dirname $x`"
42 insinto ${PHP_LIB_DIR}/${SUBDIR}
43 doins ${S_DIR}/$x
44 done
45} 25}
46

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20