summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mozes <hydrapolic@gmail.com>2018-09-21 13:13:35 +0200
committerMichał Górny <mgorny@gentoo.org>2018-10-10 13:32:47 +0200
commit6555dec457ba20ebd7a5ab5f0e65bf8b14831976 (patch)
tree5c1c203fa7e9c458692580cb5755d51a2f699e9f
parentwww-apps/gitea: bump to 1.5.2 (diff)
downloadgentoo-6555dec457ba20ebd7a5ab5f0e65bf8b14831976.tar.gz
gentoo-6555dec457ba20ebd7a5ab5f0e65bf8b14831976.tar.bz2
gentoo-6555dec457ba20ebd7a5ab5f0e65bf8b14831976.zip
dev-php/pecl-mcrypt: php bindings for the libmcrypt library
Closes: https://bugs.gentoo.org/664718 Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Package-Manager: Portage-2.3.49, Repoman-2.3.10 Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/9932
-rw-r--r--dev-php/pecl-mcrypt/Manifest1
-rw-r--r--dev-php/pecl-mcrypt/metadata.xml12
-rw-r--r--dev-php/pecl-mcrypt/pecl-mcrypt-1.0.1.ebuild29
3 files changed, 42 insertions, 0 deletions
diff --git a/dev-php/pecl-mcrypt/Manifest b/dev-php/pecl-mcrypt/Manifest
new file mode 100644
index 000000000000..acfd97228a2e
--- /dev/null
+++ b/dev-php/pecl-mcrypt/Manifest
@@ -0,0 +1 @@
+DIST mcrypt-1.0.1.tgz 33782 BLAKE2B db5f89fdbc64c81bd50c92301155527f40b28cd274312565c79327133baa20e14c488f8ad1f87e6ddfd3ced9706ca30f10dc69a08279c82c9ec83fb5f713e826 SHA512 1677202715499a41ac6999089257a059106e58cbac06ca8a7dd2e9edd28be5a4118234dd7468110e9e3d7f9de5d099367848fe84bcd06716ea56645c9015c578
diff --git a/dev-php/pecl-mcrypt/metadata.xml b/dev-php/pecl-mcrypt/metadata.xml
new file mode 100644
index 000000000000..1b662aaef98c
--- /dev/null
+++ b/dev-php/pecl-mcrypt/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hydrapolic@gmail.com</email>
+ <name>Tomáš Mózes</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-php/pecl-mcrypt/pecl-mcrypt-1.0.1.ebuild b/dev-php/pecl-mcrypt/pecl-mcrypt-1.0.1.ebuild
new file mode 100644
index 000000000000..133d25ed4e63
--- /dev/null
+++ b/dev-php/pecl-mcrypt/pecl-mcrypt-1.0.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PHP_EXT_NAME="mcrypt"
+USE_PHP="php7-2"
+MY_P="${PN/pecl-/}-${PV/_rc/RC}"
+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
+}