Gentoo Archives: gentoo-commits

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