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