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

Diff of /eclass/php-lib-r1.eclass

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

Revision 1.6 Revision 1.10
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2011 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/php-lib-r1.eclass,v 1.6 2007/09/01 15:58:17 jokey Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-lib-r1.eclass,v 1.10 2011/08/22 04:46:32 vapier Exp $
4#
5# Author: Stuart Herbert <stuart@gentoo.org>
6# Author: Luca Longinotti <chtekk@gentoo.org>
7 4
8# @ECLASS: php-lib-r1.eclass 5# @ECLASS: php-lib-r1.eclass
9# @MAINTAINER: 6# @MAINTAINER:
10# Gentoo PHP team <php-bugs@gentoo.org> 7# Gentoo PHP team <php-bugs@gentoo.org>
8# @AUTHOR:
9# Author: Stuart Herbert <stuart@gentoo.org>
10# Author: Luca Longinotti <chtekk@gentoo.org>
11# @BLURB: A unified interface for adding new PHP libraries. 11# @BLURB: A unified interface for adding new PHP libraries.
12# @DESCRIPTION: 12# @DESCRIPTION:
13# This eclass provides a unified interface for adding new PHP libraries. 13# This eclass provides a unified interface for adding new PHP libraries.
14# PHP libraries are PHP scripts designed for reuse inside other PHP scripts. 14# PHP libraries are PHP scripts designed for reuse inside other PHP scripts.
15 15
29# @USAGE: <directory to install from> <list of files> 29# @USAGE: <directory to install from> <list of files>
30# @DESCRIPTION: 30# @DESCRIPTION:
31# Takes care of install for PHP libraries. 31# Takes care of install for PHP libraries.
32# You have to pass in a list of the PHP files to install. 32# You have to pass in a list of the PHP files to install.
33 33
34# @VARIABLE: DOCS
35# @DESCRIPTION:
36# Set in ebuild if you wish to install additional, package-specific documentation.
37
34# $1 - directory in ${S} to insert from 38# $1 - directory in ${S} to insert from
35# $2 ... list of files to install 39# $2 ... list of files to install
36php-lib-r1_src_install() { 40php-lib-r1_src_install() {
37 has_php 41 has_php
38 42
48 52
49 S_DIR="$1" 53 S_DIR="$1"
50 shift 54 shift
51 55
52 for x in $@ ; do 56 for x in $@ ; do
53 SUBDIR="`dirname ${x}`" 57 SUBDIR="$(dirname ${x})"
54 insinto "${PHP_LIB_DIR}/${SUBDIR}" 58 insinto "${PHP_LIB_DIR}/${SUBDIR}"
55 doins "${S_DIR}/${x}" 59 doins "${S_DIR}/${x}"
56 done 60 done
61
62 for doc in ${DOCS} ; do
63 [[ -s ${doc} ]] && dodoc-php ${doc}
64 done
57} 65}

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20