1 |
commit: 3d8991aec0cf0a405a5024b1461d0948c71bf2bd |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 17 20:49:23 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 17 21:01:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d8991ae |
7 |
|
8 |
dev-php/PHPMailer: bump to v6.1.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
dev-php/PHPMailer/Manifest | 1 + |
14 |
dev-php/PHPMailer/PHPMailer-6.1.2.ebuild | 73 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 74 insertions(+) |
16 |
|
17 |
diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest |
18 |
index 079255a83f9..fc3b0716761 100644 |
19 |
--- a/dev-php/PHPMailer/Manifest |
20 |
+++ b/dev-php/PHPMailer/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST PHPMailer-5.2.27.tar.gz 159227 BLAKE2B e5ff2dd62cb12396bee58f0dce2fec3148dcf425cd91d69b76659ded7c38d8d5dea4830649dbeaa4732e098deecfe7ee77e338497b080997a44fbcf28d0833c7 SHA512 5a466133feec323d3739b9a1bde36731f5e65ecf61aa3f2fa6cc4ed0bd6f9280f8e2a17b6b7ac481846509ba3e8b0b97062f0dbbd644ccec3884b7a03f489a1b |
23 |
DIST PHPMailer-6.0.7.tar.gz 91706 BLAKE2B 1d3d22dea463040840c1259cfbdbcf2da59cd31e915ea8a73bb9981844e9ae6e32ca1e9a40a576fedcd8c0a049f92f9b5422040e12dcc66b2c555dbd36126c67 SHA512 0d00ff177fc82c3cc54ed04cfd333739c9346f89dba1ccb8bdcccc01abd3de4c55c96dbd51cc0f4cc76d6690acd22c6bb4f632dcfb785ec1d0a32a8751ddf6e9 |
24 |
+DIST PHPMailer-6.1.2.tar.gz 93635 BLAKE2B f8a12415a0e24697c84de06782f78a1cc37785ad0a1764dfd53470ca1ac5a8d4dffc418794b7627d2702b16f68ea83a93b362b7659a95e0c0a84e1a9b66b7b9b SHA512 3192f77f7d0158f30c7ea4484c86c279e0563e629702901f66901003c384101c57f7482feb14fc61927afaae8adea5d8fc34bd07c7058f68f6144303ce235fd5 |
25 |
|
26 |
diff --git a/dev-php/PHPMailer/PHPMailer-6.1.2.ebuild b/dev-php/PHPMailer/PHPMailer-6.1.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..d753eb1c174 |
29 |
--- /dev/null |
30 |
+++ b/dev-php/PHPMailer/PHPMailer-6.1.2.ebuild |
31 |
@@ -0,0 +1,73 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+DESCRIPTION="Full-featured email creation and transfer class for PHP" |
38 |
+HOMEPAGE="https://github.com/PHPMailer/PHPMailer" |
39 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="LGPL-2.1" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+ |
45 |
+# To help out the Composer children, the tests and examples are missing |
46 |
+# from the release tarballs. |
47 |
+IUSE="doc idn ssl" |
48 |
+ |
49 |
+# The ctype and filter extensions get used unconditionally, with no |
50 |
+# fallback and no "extension missing" exception. All of the other |
51 |
+# extensions are technically optional, depending on how you use |
52 |
+# PHPMailer and whether or not you're willing to settle for fallback |
53 |
+# implementations. |
54 |
+# |
55 |
+# The insane dependency string is to prevent the ctype and filter |
56 |
+# extensions from being provided by one version (i.e. slot) of PHP, |
57 |
+# while intl and unicode are provided by another. |
58 |
+RDEPEND=" |
59 |
+ ssl? ( |
60 |
+ idn? ( dev-lang/php:*[ctype,filter,intl,ssl,unicode] ) |
61 |
+ !idn? ( dev-lang/php:*[ctype,filter,ssl] ) |
62 |
+ ) |
63 |
+ !ssl? ( |
64 |
+ idn? ( dev-lang/php:*[ctype,filter,intl,unicode] ) |
65 |
+ !idn? ( dev-lang/php:*[ctype,filter] ) |
66 |
+ )" |
67 |
+BDEPEND="doc? ( dev-php/phpDocumentor )" |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ # OAuth.php relies on a (now non-nonexistent) autoloader. We remove |
71 |
+ # it early so that we don't generate documentation for it later on. |
72 |
+ rm src/OAuth.php || die 'failed to remove src/OAuth.php' |
73 |
+ eapply_user |
74 |
+} |
75 |
+ |
76 |
+src_compile(){ |
77 |
+ if use doc; then |
78 |
+ phpdoc --filename="src/*.php" \ |
79 |
+ --target="./html" \ |
80 |
+ --cache-folder="${T}" \ |
81 |
+ --title="${PN}" \ |
82 |
+ --sourcecode \ |
83 |
+ --force \ |
84 |
+ --progressbar \ |
85 |
+ || die "failed to generate API documentation" |
86 |
+ fi |
87 |
+} |
88 |
+ |
89 |
+src_install(){ |
90 |
+ # The PHPMailer class loads its language files |
91 |
+ # using a relative path, so we need to keep the "src" here. |
92 |
+ insinto "/usr/share/php/${PN}" |
93 |
+ doins -r language src |
94 |
+ |
95 |
+ dodoc README.md SECURITY.md |
96 |
+ use doc && dodoc -r html/* |
97 |
+} |
98 |
+ |
99 |
+pkg_postinst(){ |
100 |
+ elog "${PN} has been installed in /usr/share/php/${PN}/." |
101 |
+ elog "Upstream no longer provides an autoloader, so you will need" |
102 |
+ elog "to include each source file (for example: PHPMailer.php," |
103 |
+ elog "Exception.php,...) that you need." |
104 |
+} |