forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-php/pecl-haru: Revbump to drop php 5.5 dependencies
Package-Manager: portage-2.3.2
- Loading branch information
Brian Evans
committed
Nov 28, 2016
1 parent
197a185
commit a241f29
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
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 | ||
} |