mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-06 17:47:07 -08:00
Package-Manager: Portage-2.3.55, Repoman-2.3.12 Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/10854 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
31 lines
673 B
Bash
31 lines
673 B
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
PHP_EXT_NAME="mcrypt"
|
|
USE_PHP="php7-2 php7-3"
|
|
MY_P="${PN/pecl-/}-${PV/_rc/RC}"
|
|
PHP_EXT_ECONF_ARGS=()
|
|
PHP_EXT_PECL_FILENAME="${MY_P}.tgz"
|
|
PHP_EXT_S="${WORKDIR}/${MY_P}"
|
|
|
|
inherit php-ext-pecl-r3
|
|
|
|
DESCRIPTION="Bindings for the libmcrypt library"
|
|
LICENSE="PHP-3.01"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
DEPEND="dev-libs/libmcrypt"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
src_prepare() {
|
|
# PHP Warning: Use of undefined constant MCRYPT_CBC - assumed 'MCRYPT_CBC'
|
|
sed -i '/MODE3/s/MCRYPT_CBC/"MCRYPT_CBC"/g' tests/bug8040.phpt || die
|
|
|
|
php-ext-source-r3_src_prepare
|
|
}
|