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, 26 Dec 2019 10:23:25
Message-Id: 1577355790.4342f6705163216dbb949d51fd4f34e3f7d439f9.whissi@gentoo
1 commit: 4342f6705163216dbb949d51fd4f34e3f7d439f9
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 26 10:15:29 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 26 10:23:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4342f670
7
8 dev-php/PHPMailer: bump to v6.1.4
9
10 Package-Manager: Portage-2.3.83, Repoman-2.3.20
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/PHPMailer/Manifest | 1 +
14 dev-php/PHPMailer/PHPMailer-6.1.4.ebuild | 73 ++++++++++++++++++++++++++++++++
15 2 files changed, 74 insertions(+)
16
17 diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest
18 index 88c07819437..cfc0634baad 100644
19 --- a/dev-php/PHPMailer/Manifest
20 +++ b/dev-php/PHPMailer/Manifest
21 @@ -2,3 +2,4 @@ DIST PHPMailer-5.2.27.tar.gz 159227 BLAKE2B e5ff2dd62cb12396bee58f0dce2fec3148dc
22 DIST PHPMailer-6.0.7.tar.gz 91706 BLAKE2B 1d3d22dea463040840c1259cfbdbcf2da59cd31e915ea8a73bb9981844e9ae6e32ca1e9a40a576fedcd8c0a049f92f9b5422040e12dcc66b2c555dbd36126c67 SHA512 0d00ff177fc82c3cc54ed04cfd333739c9346f89dba1ccb8bdcccc01abd3de4c55c96dbd51cc0f4cc76d6690acd22c6bb4f632dcfb785ec1d0a32a8751ddf6e9
23 DIST PHPMailer-6.1.2.tar.gz 93635 BLAKE2B f8a12415a0e24697c84de06782f78a1cc37785ad0a1764dfd53470ca1ac5a8d4dffc418794b7627d2702b16f68ea83a93b362b7659a95e0c0a84e1a9b66b7b9b SHA512 3192f77f7d0158f30c7ea4484c86c279e0563e629702901f66901003c384101c57f7482feb14fc61927afaae8adea5d8fc34bd07c7058f68f6144303ce235fd5
24 DIST PHPMailer-6.1.3.tar.gz 93690 BLAKE2B 08f653520a2b7819470cbb5cf1f43480cdcab51fe452f4831df47269f4223cfeb7016e41e8de75c11b15a04fa278fe08439f3c022af9088a5c8f5e4259ae7ebb SHA512 195155e49b29740422e75d7dbcf082cf8b26c87dad7b5473b9d55267e31af3847cb65a1c79f73225fa79080428d8c7516f5cd4d083824fa42f3b22a3bec8c34e
25 +DIST PHPMailer-6.1.4.tar.gz 93915 BLAKE2B 9f4ec584c57d70c4cbbc33c4ba85469579a00ebbf4aa4680b6f965ad37339b923386e371c01b673bca8c0de6f6ed123b6a1456541b1c472c6f0c93592c7c9e96 SHA512 f13cb959d89c64392ecff4cceaa650c80310f854aaff1c09144727aeb7f50c7ebeaaf7a2be488fa796b5acd1c42c4d13204b0410bc579d2e6aec98feee3b21ef
26
27 diff --git a/dev-php/PHPMailer/PHPMailer-6.1.4.ebuild b/dev-php/PHPMailer/PHPMailer-6.1.4.ebuild
28 new file mode 100644
29 index 00000000000..d753eb1c174
30 --- /dev/null
31 +++ b/dev-php/PHPMailer/PHPMailer-6.1.4.ebuild
32 @@ -0,0 +1,73 @@
33 +# Copyright 1999-2019 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 + # 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 + eapply_user
75 +}
76 +
77 +src_compile(){
78 + if use doc; then
79 + phpdoc --filename="src/*.php" \
80 + --target="./html" \
81 + --cache-folder="${T}" \
82 + --title="${PN}" \
83 + --sourcecode \
84 + --force \
85 + --progressbar \
86 + || die "failed to generate API documentation"
87 + fi
88 +}
89 +
90 +src_install(){
91 + # The PHPMailer class loads its language files
92 + # using a relative path, so we need to keep the "src" here.
93 + insinto "/usr/share/php/${PN}"
94 + doins -r language src
95 +
96 + dodoc README.md SECURITY.md
97 + use doc && dodoc -r html/*
98 +}
99 +
100 +pkg_postinst(){
101 + elog "${PN} has been installed in /usr/share/php/${PN}/."
102 + elog "Upstream no longer provides an autoloader, so you will need"
103 + elog "to include each source file (for example: PHPMailer.php,"
104 + elog "Exception.php,...) that you need."
105 +}