/[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.8
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/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.8 2007/11/29 23:12:13 jokey Exp $
4# 4#
5# Author: Stuart Herbert <stuart@gentoo.org> 5# Author: Stuart Herbert <stuart@gentoo.org>
6# Author: Luca Longinotti <chtekk@gentoo.org> 6# Author: Luca Longinotti <chtekk@gentoo.org>
7 7
8# @ECLASS: php-lib-r1.eclass 8# @ECLASS: php-lib-r1.eclass
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.8

  ViewVC Help
Powered by ViewVC 1.1.20