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.
gentoo-overlay/dev-php/pecl-haru/pecl-haru-1.0.4-r1.ebuild

29 lines
579 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_PHP="php5-5 php5-6"
inherit php-ext-pecl-r2
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
my_conf=""
use png && my_conf+=" --with-png-dir=/usr"
use zlib && my_conf+=" --with-zlib-dir=/usr"
php-ext-source-r2_src_configure
}