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, 17 Jun 2021 23:20:41
Message-Id: 1623972010.0ab5cf98272bf19ac0db628b584b0b77dffa8dbc.whissi@gentoo
1 commit: 0ab5cf98272bf19ac0db628b584b0b77dffa8dbc
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 17 23:19:13 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 17 23:20:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ab5cf98
7
8 dev-php/PHPMailer: bump to v6.5.0
9
10 Package-Manager: Portage-3.0.20, 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.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 c77b6029bfd..de4c646f8b9 100644
19 --- a/dev-php/PHPMailer/Manifest
20 +++ b/dev-php/PHPMailer/Manifest
21 @@ -1 +1,2 @@
22 DIST PHPMailer-6.4.1.tar.gz 98058 BLAKE2B 88b11e096be6a81591b2c68efb1fdc9a5ff0c384508939545c333f940a60949acb34db000ccd3ae9dbc4c5609f6d20006b7d08ad61bb96edf1d7f11b8091c236 SHA512 c702e53afec4a4c9cdb8757928883fcfd6ed5f2babc03466ca2a698e4e4535014407be5618e6dbcd69135f36f6f723fdee266f70fa6546563949d785f5db4f51
23 +DIST PHPMailer-6.5.0.tar.gz 99073 BLAKE2B dcb917233da29ab45305f7cf0405f9bb384bd4f98f062a74d94a168868d0cd92017e555bf8e7139130dd669e0a04917e3789c548b5165112d591aa403bfd56b8 SHA512 0632ec8b80c30393b00aebbadde7dd032eb2553232a100a74d69b6ed6465adf1eb3a4acca0aaf040665a978e7507aee9350b092336056ccb5306fbaea4640376
24
25 diff --git a/dev-php/PHPMailer/PHPMailer-6.5.0.ebuild b/dev-php/PHPMailer/PHPMailer-6.5.0.ebuild
26 new file mode 100644
27 index 00000000000..48dc349297f
28 --- /dev/null
29 +++ b/dev-php/PHPMailer/PHPMailer-6.5.0.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 +}