gentoo-overlay/dev-php/pecl-geoip/pecl-geoip-1.1.0.9999.ebuild

44 lines
780 B
Bash
Raw Normal View History

# Copyright 1999-2016 Gentoo Foundation
2016-05-09 08:29:59 +02:00
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PHP_EXT_NAME="geoip"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"
DOCS="README ChangeLog"
MY_PV="1.1.0"
2016-05-09 08:29:59 +02:00
USE_PHP="php7-0"
2016-05-09 08:29:59 +02:00
inherit eutils php-ext-pecl-r2
2016-05-09 08:29:59 +02:00
2016-06-07 10:15:30 +02:00
KEYWORDS="~amd64 ~x86"
2016-05-09 08:29:59 +02:00
DESCRIPTION="PHP extension to map IP address to geographic places"
LICENSE="PHP-3"
SLOT="0"
IUSE=""
DEPEND=">=dev-libs/geoip-1.4.0"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}-patch-to-svn-r337409.patch"
)
# apply patches in unpack phase, or else the php7.0 dir won't get patched
src_prepare() {
local slot
local p
for slot in $(php_get_slots) ; do
cd "${WORKDIR}/${slot}"
for p in "${PATCHES[@]}" ; do
epatch "${p}"
done
done
php-ext-source-r2_src_prepare
}