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 0BFB5138334 for ; Sun, 28 Oct 2018 00:06:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 039D7E0886; Sun, 28 Oct 2018 00:06:01 +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 B6AE8E0886 for ; Sun, 28 Oct 2018 00:06:00 +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 B52F2335C7D for ; Sun, 28 Oct 2018 00:05:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A0F9A44E for ; Sun, 28 Oct 2018 00:05:56 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1540684986.204d8c576d425dd08b9b094027a4fbbb0c285d6d.mjo@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.0.5.ebuild X-VCS-Directories: dev-php/PHPMailer/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 204d8c576d425dd08b9b094027a4fbbb0c285d6d X-VCS-Branch: master Date: Sun, 28 Oct 2018 00:05:56 +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-Archives-Salt: 11b87233-f112-49e7-a268-00b71c3a393c X-Archives-Hash: 97258ead760a75570ebf7ee761fcf2ab commit: 204d8c576d425dd08b9b094027a4fbbb0c285d6d Author: Michael Orlitzky gentoo org> AuthorDate: Sun Oct 28 00:03:06 2018 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Sun Oct 28 00:03:06 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=204d8c57 dev-php/PHPMailer: new version 6.0.5. Signed-off-by: Michael Orlitzky gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.11 dev-php/PHPMailer/Manifest | 1 + dev-php/PHPMailer/PHPMailer-6.0.5.ebuild | 73 ++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest index 405e395db4f..762981e24e2 100644 --- a/dev-php/PHPMailer/Manifest +++ b/dev-php/PHPMailer/Manifest @@ -1 +1,2 @@ DIST PHPMailer-5.2.26.tar.gz 159174 BLAKE2B 989ee85f6ca374bd7f4accf3d18fbd173bbbd3176e6846c9a2aec68f3bfca4ead4e0197f6287e2bc8ed4a125bf7fcb53240a1f8ce6a1813eaffb66067c2c4e9e SHA512 4c3e324ecd1dd23eb40f14ee785fb9b353b742ff4fb26fe0586622038157e60d64560f5ba4a625f16fad6568954d685ebbe436d88bc427d5bd260c056815b656 +DIST PHPMailer-6.0.5.tar.gz 88092 BLAKE2B 0b2113b54d547d788c54cbcf18fe134a6b08f6b9eabcbad308a7d0bba8e95426fd8be77419419cbe0379be080350a1caf1690cbe3f096c178cc3a8c9506d9529 SHA512 5b18700ef26fe5de20a7ca291ece44b897182c603ed8187e0f711099325b35b20f8dbab2c456eaac1338731356661237d9b249c2f40051807b0d58ead612013c diff --git a/dev-php/PHPMailer/PHPMailer-6.0.5.ebuild b/dev-php/PHPMailer/PHPMailer-6.0.5.ebuild new file mode 100644 index 00000000000..99907db766f --- /dev/null +++ b/dev-php/PHPMailer/PHPMailer-6.0.5.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2018 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() { + # 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' + eapply_user +} + +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." +}