blob: 5b9771f7f0fbd1d187dfb5542ea93be6f36beb25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
USE_PHP="php5-6"
inherit php-ext-pecl-r3
DESCRIPTION="An interface to libharu, a PDF generator"
LICENSE="PHP-3.01"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="png zlib"
DEPEND="media-libs/libharu[png?,zlib?]"
RDEPEND="${DEPEND}"
src_configure() {
# config.m4 is broken checking paths, so we need to override it
local PHP_EXT_ECONF_ARGS=(
$(usex png '--with-png-dir=/usr' '')
$(usex zlib '--with-zlib-dir=/usr' '')
)
php-ext-source-r3_src_configure
}
|