From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5EA2613835C for ; Tue, 9 Feb 2021 18:47:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87C79E08EC; Tue, 9 Feb 2021 18:47:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 474B0E08EC for ; Tue, 9 Feb 2021 18:47:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 044C1340E56 for ; Tue, 9 Feb 2021 18:47:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4D91F4C3 for ; Tue, 9 Feb 2021 18:47:38 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1612896230.b325f33e72e52ee62b8dddea64180af50075859d.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PHPMailer/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-php/PHPMailer/Manifest dev-php/PHPMailer/PHPMailer-6.2.0.ebuild X-VCS-Directories: dev-php/PHPMailer/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: b325f33e72e52ee62b8dddea64180af50075859d X-VCS-Branch: master Date: Tue, 9 Feb 2021 18:47:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d7aefadf-3af8-4ba3-8763-2cb7321bb4de X-Archives-Hash: adc3b4ad333ce3c4249b10086339062c commit: b325f33e72e52ee62b8dddea64180af50075859d Author: Thomas Deutschmann gentoo org> AuthorDate: Tue Feb 9 17:58:28 2021 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Tue Feb 9 18:43:50 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b325f33e dev-php/PHPMailer: bump to v6.2.0 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Thomas Deutschmann gentoo.org> dev-php/PHPMailer/Manifest | 1 + dev-php/PHPMailer/PHPMailer-6.2.0.ebuild | 74 ++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest index c6730556d12..08681f9e1f1 100644 --- a/dev-php/PHPMailer/Manifest +++ b/dev-php/PHPMailer/Manifest @@ -1,3 +1,4 @@ DIST PHPMailer-5.2.28.tar.gz 159284 BLAKE2B 866a38c60ac55cbd8aefec5ad82211575e672578ddff1af435e676c7058b0a090884f3e5f2c1e6f30c94b01e393f982f644e578ea22c931ffb8a93be717e379b SHA512 c2dd762b8958d1dc68fec52d7daae7337e05cadcbcf9e67c27247c808877cf3132e80cf6d4c9c577f8ad9203e433282e45f2166bccce025bcc4477724eb7036f DIST PHPMailer-6.1.6.tar.gz 94769 BLAKE2B 6689f4429c0847de41016325553d58d544f78d5f8a94d9014841435a3cf161e4e10b14fe2cbb61c737bf75d87f2dc4cde66885c06a0b6992a472f0f46fe5dd6b SHA512 25530e6c5513e89729a5b253565143a5a9a35ee5f7813637eee18ca1d604cb83625f7beb106e56536f681d7ec4332fcd3cddcac5da7c73f730db1b056ba5b2e4 DIST PHPMailer-6.1.7.tar.gz 95102 BLAKE2B 8a1a09aa8f1c82900d881cf82e4a44705afbabc2f38b7bcf8b069a23c426f690dfbebd30c27a30dfbd8a3ad10e75e88fab4fa064bd44308b837455b84a41cad9 SHA512 4b37e11bb99966b8151b64a469125f249091c9b57ef729549735f37869fbaf1a1fb1a3f9d19822c824e909e8b53b696d3cb0d5180683e94968145a968622c2e8 +DIST PHPMailer-6.2.0.tar.gz 95671 BLAKE2B e277f9a033e0b01381ac0a8d20b26d265b2ed187f0c9402a373bc2f9f526421830bd65d2ee11b061927963bcfea79ad8dd176c94ff58c41ccec8f80035a63afc SHA512 31a30e3ca3dd75bf36601870c272a12d6abdee09a9dc523f8ccc610f72a56789650e7a58990577929920b540552cbf75b83679d2cc5d9ce5efd3c214ce5baa42 diff --git a/dev-php/PHPMailer/PHPMailer-6.2.0.ebuild b/dev-php/PHPMailer/PHPMailer-6.2.0.ebuild new file mode 100644 index 00000000000..48dc349297f --- /dev/null +++ b/dev-php/PHPMailer/PHPMailer-6.2.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Full-featured email creation and transfer class for PHP" +HOMEPAGE="https://github.com/PHPMailer/PHPMailer" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# To help out the Composer children, the tests and examples are missing +# from the release tarballs. +IUSE="doc idn ssl" + +# The ctype and filter extensions get used unconditionally, with no +# fallback and no "extension missing" exception. All of the other +# extensions are technically optional, depending on how you use +# PHPMailer and whether or not you're willing to settle for fallback +# implementations. +# +# The insane dependency string is to prevent the ctype and filter +# extensions from being provided by one version (i.e. slot) of PHP, +# while intl and unicode are provided by another. +RDEPEND=" + ssl? ( + idn? ( dev-lang/php:*[ctype,filter,intl,ssl,unicode] ) + !idn? ( dev-lang/php:*[ctype,filter,ssl] ) + ) + !ssl? ( + idn? ( dev-lang/php:*[ctype,filter,intl,unicode] ) + !idn? ( dev-lang/php:*[ctype,filter] ) + )" +BDEPEND="doc? ( dev-php/phpDocumentor )" + +src_prepare() { + default + + # OAuth.php relies on a (now non-nonexistent) autoloader. We remove + # it early so that we don't generate documentation for it later on. + rm src/OAuth.php || die 'failed to remove src/OAuth.php' +} + +src_compile() { + if use doc; then + phpdoc --filename="src/*.php" \ + --target="./html" \ + --cache-folder="${T}" \ + --title="${PN}" \ + --sourcecode \ + --force \ + --progressbar \ + || die "failed to generate API documentation" + fi +} + +src_install() { + # The PHPMailer class loads its language files + # using a relative path, so we need to keep the "src" here. + insinto "/usr/share/php/${PN}" + doins -r language src + + dodoc README.md SECURITY.md + use doc && dodoc -r html/* +} + +pkg_postinst() { + elog "${PN} has been installed in /usr/share/php/${PN}/." + elog "Upstream no longer provides an autoloader, so you will need" + elog "to include each source file (for example: PHPMailer.php," + elog "Exception.php,...) that you need." +}