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: Thu, 06 Aug 2020 14:34:54
Message-Id: 1596724481.be93e65d9dd3068eecc12329ec284ca40912be9b.whissi@gentoo
1 commit: be93e65d9dd3068eecc12329ec284ca40912be9b
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 6 14:32:49 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 6 14:34:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be93e65d
7
8 dev-php/PHPMailer: bump to v6.1.7
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/PHPMailer/Manifest | 1 +
14 dev-php/PHPMailer/PHPMailer-6.1.7.ebuild | 73 ++++++++++++++++++++++++++++++++
15 2 files changed, 74 insertions(+)
16
17 diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest
18 index 156f23296ca..c6730556d12 100644
19 --- a/dev-php/PHPMailer/Manifest
20 +++ b/dev-php/PHPMailer/Manifest
21 @@ -1,2 +1,3 @@
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
26 diff --git a/dev-php/PHPMailer/PHPMailer-6.1.7.ebuild b/dev-php/PHPMailer/PHPMailer-6.1.7.ebuild
27 new file mode 100644
28 index 00000000000..e27c5fd9332
29 --- /dev/null
30 +++ b/dev-php/PHPMailer/PHPMailer-6.1.7.ebuild
31 @@ -0,0 +1,73 @@
32 +# Copyright 1999-2020 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 +}