You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
12 years ago
|
|
||
10 years ago
|
EAPI=5
|
||
12 years ago
|
|
||
|
PHP_EXT_NAME="libvirt-php"
|
||
|
PHP_EXT_SKIP_PHPIZE="yes"
|
||
8 years ago
|
USE_PHP="php5-6 php5-5"
|
||
12 years ago
|
|
||
|
inherit php-ext-source-r2 eutils
|
||
|
|
||
10 years ago
|
DESCRIPTION="PHP 5 bindings for libvirt"
|
||
12 years ago
|
HOMEPAGE="http://libvirt.org/php/"
|
||
|
SRC_URI="http://libvirt.org/sources/php/${P}.tar.gz"
|
||
|
|
||
10 years ago
|
LICENSE="LGPL-2.1"
|
||
12 years ago
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
|
IUSE="doc"
|
||
|
|
||
|
RDEPEND="app-emulation/libvirt
|
||
|
dev-libs/libxml2"
|
||
12 years ago
|
DEPEND="${RDEPEND}
|
||
|
dev-libs/libxslt
|
||
|
doc? ( app-text/xhtml1 )"
|
||
12 years ago
|
|
||
|
RESTRICT="test"
|
||
|
|
||
|
src_unpack() {
|
||
|
default
|
||
8 years ago
|
|
||
12 years ago
|
# create the default modules directory to be able
|
||
|
# to use the php-ext-source-r2 eclass to configure/build
|
||
|
ln -s src "${S}/modules"
|
||
|
|
||
|
for slot in $(php_get_slots); do
|
||
|
cp -r "${S}" "${WORKDIR}/${slot}"
|
||
|
done
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
10 years ago
|
local slot
|
||
12 years ago
|
for slot in $(php_get_slots); do
|
||
|
php_init_slot_env ${slot}
|
||
|
insinto "${EXT_DIR}"
|
||
8 years ago
|
newins "src/.libs/${PHP_EXT_NAME}.so.0.0.0" "${PHP_EXT_NAME}.so"
|
||
12 years ago
|
done
|
||
|
php-ext-source-r2_createinifiles
|
||
|
dodoc AUTHORS ChangeLog NEWS README
|
||
|
use doc && dohtml docs/* docs/graphics/*
|
||
|
}
|