1 |
commit: 6555dec457ba20ebd7a5ab5f0e65bf8b14831976 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Sep 21 11:13:35 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 10 11:32:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6555dec4 |
7 |
|
8 |
dev-php/pecl-mcrypt: php bindings for the libmcrypt library |
9 |
|
10 |
Closes: https://bugs.gentoo.org/664718 |
11 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
12 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/9932 |
15 |
|
16 |
dev-php/pecl-mcrypt/Manifest | 1 + |
17 |
dev-php/pecl-mcrypt/metadata.xml | 12 ++++++++++++ |
18 |
dev-php/pecl-mcrypt/pecl-mcrypt-1.0.1.ebuild | 29 ++++++++++++++++++++++++++++ |
19 |
3 files changed, 42 insertions(+) |
20 |
|
21 |
diff --git a/dev-php/pecl-mcrypt/Manifest b/dev-php/pecl-mcrypt/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..acfd97228a2 |
24 |
--- /dev/null |
25 |
+++ b/dev-php/pecl-mcrypt/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST mcrypt-1.0.1.tgz 33782 BLAKE2B db5f89fdbc64c81bd50c92301155527f40b28cd274312565c79327133baa20e14c488f8ad1f87e6ddfd3ced9706ca30f10dc69a08279c82c9ec83fb5f713e826 SHA512 1677202715499a41ac6999089257a059106e58cbac06ca8a7dd2e9edd28be5a4118234dd7468110e9e3d7f9de5d099367848fe84bcd06716ea56645c9015c578 |
28 |
|
29 |
diff --git a/dev-php/pecl-mcrypt/metadata.xml b/dev-php/pecl-mcrypt/metadata.xml |
30 |
new file mode 100644 |
31 |
index 00000000000..1b662aaef98 |
32 |
--- /dev/null |
33 |
+++ b/dev-php/pecl-mcrypt/metadata.xml |
34 |
@@ -0,0 +1,12 @@ |
35 |
+<?xml version="1.0" encoding="UTF-8"?> |
36 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
37 |
+<pkgmetadata> |
38 |
+ <maintainer type="person"> |
39 |
+ <email>hydrapolic@×××××.com</email> |
40 |
+ <name>Tomáš Mózes</name> |
41 |
+ </maintainer> |
42 |
+ <maintainer type="project"> |
43 |
+ <email>proxy-maint@g.o</email> |
44 |
+ <name>Proxy Maintainers</name> |
45 |
+ </maintainer> |
46 |
+</pkgmetadata> |
47 |
|
48 |
diff --git a/dev-php/pecl-mcrypt/pecl-mcrypt-1.0.1.ebuild b/dev-php/pecl-mcrypt/pecl-mcrypt-1.0.1.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..133d25ed4e6 |
51 |
--- /dev/null |
52 |
+++ b/dev-php/pecl-mcrypt/pecl-mcrypt-1.0.1.ebuild |
53 |
@@ -0,0 +1,29 @@ |
54 |
+# Copyright 1999-2018 Gentoo Foundation |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=6 |
58 |
+ |
59 |
+PHP_EXT_NAME="mcrypt" |
60 |
+USE_PHP="php7-2" |
61 |
+MY_P="${PN/pecl-/}-${PV/_rc/RC}" |
62 |
+PHP_EXT_PECL_FILENAME="${MY_P}.tgz" |
63 |
+PHP_EXT_S="${WORKDIR}/${MY_P}" |
64 |
+ |
65 |
+inherit php-ext-pecl-r3 |
66 |
+ |
67 |
+DESCRIPTION="Bindings for the libmcrypt library" |
68 |
+LICENSE="PHP-3.01" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64" |
71 |
+ |
72 |
+DEPEND="dev-libs/libmcrypt" |
73 |
+RDEPEND="${DEPEND}" |
74 |
+ |
75 |
+S="${WORKDIR}/${MY_P}" |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ # PHP Warning: Use of undefined constant MCRYPT_CBC - assumed 'MCRYPT_CBC' |
79 |
+ sed -i '/MODE3/s/MCRYPT_CBC/"MCRYPT_CBC"/g' tests/bug8040.phpt || die |
80 |
+ |
81 |
+ php-ext-source-r3_src_prepare |
82 |
+} |