/[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.10 Revision 1.11
1# Copyright 1999-2011 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.10 2011/08/22 04:46:32 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-lib-r1.eclass,v 1.11 2012/02/12 21:48:58 mabi Exp $
4 4
5# @ECLASS: php-lib-r1.eclass 5# @ECLASS: php-lib-r1.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Gentoo PHP team <php-bugs@gentoo.org> 7# Gentoo PHP team <php-bugs@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
36# Set in ebuild if you wish to install additional, package-specific documentation. 36# Set in ebuild if you wish to install additional, package-specific documentation.
37 37
38# $1 - directory in ${S} to insert from 38# $1 - directory in ${S} to insert from
39# $2 ... list of files to install 39# $2 ... list of files to install
40php-lib-r1_src_install() { 40php-lib-r1_src_install() {
41 has_php
42
43 # install to the correct phpX folder, if not specified
44 # fall back to /usr/share/php
45 if [[ -n "${PHP_SHARED_CAT}" ]] ; then
46 PHP_LIB_DIR="/usr/share/${PHP_SHARED_CAT}/${PHP_LIB_NAME}"
47 else
48 PHP_LIB_DIR="/usr/share/php/${PHP_LIB_NAME}"
49 fi
50
51 local x 41 local x
52 42
53 S_DIR="$1" 43 S_DIR="$1"
54 shift 44 shift
55 45
56 for x in $@ ; do 46 for x in $@ ; do
57 SUBDIR="$(dirname ${x})" 47 SUBDIR="$(dirname ${x})"
58 insinto "${PHP_LIB_DIR}/${SUBDIR}" 48 insinto "/usr/share/php/${PHP_LIB_NAME}/${SUBDIR}"
59 doins "${S_DIR}/${x}" 49 doins "${S_DIR}/${x}"
60 done 50 done
61 51
62 for doc in ${DOCS} ; do 52 for doc in ${DOCS} ; do
63 [[ -s ${doc} ]] && dodoc-php ${doc} 53 [[ -s ${doc} ]] && dodoc-php ${doc}

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

  ViewVC Help
Powered by ViewVC 1.1.20