Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PHPMailer/
Date: Wed, 28 Dec 2016 15:50:36
Message-Id: 1482940196.5b18056584028956797b4edde938616618b7f2c9.mjo@gentoo
1 commit: 5b18056584028956797b4edde938616618b7f2c9
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 28 15:23:19 2016 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 28 15:49:56 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b180565
7
8 dev-php/PHPMailer: new version 5.2.20 to fix CVE-2016-10045.
9
10 Package-Manager: portage-2.3.0
11
12 dev-php/PHPMailer/Manifest | 2 +-
13 ...PMailer-5.2.19.ebuild => PHPMailer-5.2.20.ebuild} | 20 ++++----------------
14 2 files changed, 5 insertions(+), 17 deletions(-)
15
16 diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest
17 index d189355..a73ab40 100644
18 --- a/dev-php/PHPMailer/Manifest
19 +++ b/dev-php/PHPMailer/Manifest
20 @@ -1 +1 @@
21 -DIST PHPMailer-5.2.19.tar.gz 156311 SHA256 5c167f6d84bd74bff9de6b5594f2c262e748a021ce4686cadfc2ed273e71f82f SHA512 2eda1b856305c10017fe026f7de0e96796706216d64dce9ee9f3aa1bc8db4be277b8e8d88954d447e138f9d8701a7c7a86b75ba12b93160ff13ec65d1c0131ba WHIRLPOOL 37a8cc78bc207f25998352ad2460e2035cc53e4d9d33b9279fcae044ef2c75c43bf6702f518ea34f93ddf9e06746ea5e34fd51341be4fa9ec1cebaee8fea36ac
22 +DIST PHPMailer-5.2.20.tar.gz 156793 SHA256 4716acef60503f345323849842f3138a8453c178d3829477553bf1e347664976 SHA512 c8dab5decd5012687b2e1d7a4ce2a3a605a6c3589b1f747960faa6080fb1c65580c1dd0f0cba52fc3735e4cf357c31237b51a6ade00c5dbffc57c27328d15018 WHIRLPOOL 9d490758ac09accf3f30645615a34a39a5c7ec542f5eceaa6327d3119ff35bf5c14f420dd731ee47f84cfb6409f5f26d6f7d9979031343172778b59825b7d08d
23
24 diff --git a/dev-php/PHPMailer/PHPMailer-5.2.19.ebuild b/dev-php/PHPMailer/PHPMailer-5.2.20.ebuild
25 similarity index 74%
26 rename from dev-php/PHPMailer/PHPMailer-5.2.19.ebuild
27 rename to dev-php/PHPMailer/PHPMailer-5.2.20.ebuild
28 index 2210a19..936fe31 100644
29 --- a/dev-php/PHPMailer/PHPMailer-5.2.19.ebuild
30 +++ b/dev-php/PHPMailer/PHPMailer-5.2.20.ebuild
31 @@ -11,15 +11,11 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
32 LICENSE="LGPL-2.1"
33 SLOT="0"
34 KEYWORDS="~amd64 ~x86"
35 -IUSE="doc +examples test"
36 +IUSE="doc +examples"
37
38 RDEPEND="dev-lang/php:*"
39 DEPEND="${RDEPEND}
40 - doc? ( dev-php/phpDocumentor )
41 - test? ( ${RDEPEND} dev-php/phpunit )"
42 -
43 -# The test suite requires network access.
44 -RESTRICT=test
45 + doc? ( dev-php/phpDocumentor )"
46
47 src_compile(){
48 if use doc; then
49 @@ -35,23 +31,15 @@ src_compile(){
50 }
51
52 src_install(){
53 + # To help out the Composer kids, most of the documentation and
54 + # tests are missing from the release tarballs.
55 insinto "/usr/share/php/${PN}"
56 doins -r *.php language extras
57
58 - # Fixed in the next version, I hope.
59 - # https://github.com/PHPMailer/PHPMailer/issues/919
60 - #dodoc README.md SECURITY.md changelog.md
61 - #dodoc docs/*
62 use examples && dodoc -r examples
63 -
64 use doc && dodoc -r html/*
65 }
66
67 -src_test(){
68 - cd test/ || die
69 - phpunit . || die "test suite failed"
70 -}
71 -
72 pkg_postinst(){
73 elog "${PN} has been installed in /usr/share/php/${PN}/."
74 elog "To use it in a script, require('${PN}/${PN}Autoload.php'),"