Diff PHPMailer-6.5.0 with a PHPMailer-6.6.4

/usr/portage/dev-php/PHPMailer/PHPMailer-6.6.4.ebuild 2023-10-09 14:52:29.960368362 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
DESCRIPTION="Full-featured email creation and transfer class for PHP"
7 7
HOMEPAGE="https://github.com/PHPMailer/PHPMailer"
......
13 13

  
14 14
# To help out the Composer children, the tests and examples are missing
15 15
# from the release tarballs.
16
IUSE="doc idn ssl"
16
IUSE="idn ssl"
17 17

  
18 18
# The ctype and filter extensions get used unconditionally, with no
19 19
# fallback and no "extension missing" exception. All of the other
......
33 33
		idn?  ( dev-lang/php:*[ctype,filter,intl,unicode] )
34 34
		!idn? ( dev-lang/php:*[ctype,filter] )
35 35
	)"
36
BDEPEND="doc? ( dev-php/phpDocumentor )"
37

  
38
src_prepare() {
39
	default
40

  
41
	# OAuth.php relies on a (now non-nonexistent) autoloader. We remove
42
	# it early so that we don't generate documentation for it later on.
43
	rm src/OAuth.php || die 'failed to remove src/OAuth.php'
44
}
45

  
46
src_compile() {
47
	if use doc; then
48
		phpdoc --filename="src/*.php" \
49
			--target="./html" \
50
			--cache-folder="${T}" \
51
			--title="${PN}" \
52
			--sourcecode \
53
			--force \
54
			--progressbar \
55
			|| die "failed to generate API documentation"
56
	fi
57
}
58 36

  
59 37
src_install() {
60 38
	# The PHPMailer class loads its language files
......
63 41
	doins -r language src
64 42

  
65 43
	dodoc README.md SECURITY.md
66
	use doc && dodoc -r html/*
67 44
}
68 45

  
69 46
pkg_postinst() {
Thank you!