1 |
commit: 36623776d9849c1fc43e181dcbdf2096a63843a9 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 24 13:05:42 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 24 13:05:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36623776 |
7 |
|
8 |
dev-php/PHPMailer: bump to v6.5.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
dev-php/PHPMailer/Manifest | 1 + |
14 |
dev-php/PHPMailer/PHPMailer-6.5.1.ebuild | 74 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 75 insertions(+) |
16 |
|
17 |
diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest |
18 |
index 353f53822af..082765170b5 100644 |
19 |
--- a/dev-php/PHPMailer/Manifest |
20 |
+++ b/dev-php/PHPMailer/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST PHPMailer-6.5.0.tar.gz 99073 BLAKE2B dcb917233da29ab45305f7cf0405f9bb384bd4f98f062a74d94a168868d0cd92017e555bf8e7139130dd669e0a04917e3789c548b5165112d591aa403bfd56b8 SHA512 0632ec8b80c30393b00aebbadde7dd032eb2553232a100a74d69b6ed6465adf1eb3a4acca0aaf040665a978e7507aee9350b092336056ccb5306fbaea4640376 |
23 |
+DIST PHPMailer-6.5.1.tar.gz 99913 BLAKE2B bf51e2caa0ff1d113d6f96f5c1ee055bacd40f8a251302452eb2ebbe06d1f926935b5d85c1b9e85d115180473b76077f753f0c8af04aa86c86db3431c8a412f2 SHA512 0f8e9e3368edfdb67c701a0f42c548379c9528a90bc016444ebdc9614967ca421fa706b5f1b2de89a91fa98f7e535fb67da578ac6ba1b73f673ba7b45a198f0e |
24 |
|
25 |
diff --git a/dev-php/PHPMailer/PHPMailer-6.5.1.ebuild b/dev-php/PHPMailer/PHPMailer-6.5.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..48dc349297f |
28 |
--- /dev/null |
29 |
+++ b/dev-php/PHPMailer/PHPMailer-6.5.1.ebuild |
30 |
@@ -0,0 +1,74 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DESCRIPTION="Full-featured email creation and transfer class for PHP" |
37 |
+HOMEPAGE="https://github.com/PHPMailer/PHPMailer" |
38 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="LGPL-2.1" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~x86" |
43 |
+ |
44 |
+# To help out the Composer children, the tests and examples are missing |
45 |
+# from the release tarballs. |
46 |
+IUSE="doc idn ssl" |
47 |
+ |
48 |
+# The ctype and filter extensions get used unconditionally, with no |
49 |
+# fallback and no "extension missing" exception. All of the other |
50 |
+# extensions are technically optional, depending on how you use |
51 |
+# PHPMailer and whether or not you're willing to settle for fallback |
52 |
+# implementations. |
53 |
+# |
54 |
+# The insane dependency string is to prevent the ctype and filter |
55 |
+# extensions from being provided by one version (i.e. slot) of PHP, |
56 |
+# while intl and unicode are provided by another. |
57 |
+RDEPEND=" |
58 |
+ ssl? ( |
59 |
+ idn? ( dev-lang/php:*[ctype,filter,intl,ssl,unicode] ) |
60 |
+ !idn? ( dev-lang/php:*[ctype,filter,ssl] ) |
61 |
+ ) |
62 |
+ !ssl? ( |
63 |
+ idn? ( dev-lang/php:*[ctype,filter,intl,unicode] ) |
64 |
+ !idn? ( dev-lang/php:*[ctype,filter] ) |
65 |
+ )" |
66 |
+BDEPEND="doc? ( dev-php/phpDocumentor )" |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ |
71 |
+ # OAuth.php relies on a (now non-nonexistent) autoloader. We remove |
72 |
+ # it early so that we don't generate documentation for it later on. |
73 |
+ rm src/OAuth.php || die 'failed to remove src/OAuth.php' |
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 |
+} |