public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PHPMailer/
Date: Thu, 17 Jun 2021 23:20:36 +0000 (UTC)	[thread overview]
Message-ID: <1623972010.0ab5cf98272bf19ac0db628b584b0b77dffa8dbc.whissi@gentoo> (raw)

commit:     0ab5cf98272bf19ac0db628b584b0b77dffa8dbc
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 17 23:19:13 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Jun 17 23:20:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ab5cf98

dev-php/PHPMailer: bump to v6.5.0

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 dev-php/PHPMailer/Manifest               |  1 +
 dev-php/PHPMailer/PHPMailer-6.5.0.ebuild | 74 ++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest
index c77b6029bfd..de4c646f8b9 100644
--- a/dev-php/PHPMailer/Manifest
+++ b/dev-php/PHPMailer/Manifest
@@ -1 +1,2 @@
 DIST PHPMailer-6.4.1.tar.gz 98058 BLAKE2B 88b11e096be6a81591b2c68efb1fdc9a5ff0c384508939545c333f940a60949acb34db000ccd3ae9dbc4c5609f6d20006b7d08ad61bb96edf1d7f11b8091c236 SHA512 c702e53afec4a4c9cdb8757928883fcfd6ed5f2babc03466ca2a698e4e4535014407be5618e6dbcd69135f36f6f723fdee266f70fa6546563949d785f5db4f51
+DIST PHPMailer-6.5.0.tar.gz 99073 BLAKE2B dcb917233da29ab45305f7cf0405f9bb384bd4f98f062a74d94a168868d0cd92017e555bf8e7139130dd669e0a04917e3789c548b5165112d591aa403bfd56b8 SHA512 0632ec8b80c30393b00aebbadde7dd032eb2553232a100a74d69b6ed6465adf1eb3a4acca0aaf040665a978e7507aee9350b092336056ccb5306fbaea4640376

diff --git a/dev-php/PHPMailer/PHPMailer-6.5.0.ebuild b/dev-php/PHPMailer/PHPMailer-6.5.0.ebuild
new file mode 100644
index 00000000000..48dc349297f
--- /dev/null
+++ b/dev-php/PHPMailer/PHPMailer-6.5.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."
+}


             reply	other threads:[~2021-06-17 23:20 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-17 23:20 Thomas Deutschmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-05  1:15 [gentoo-commits] repo/gentoo:master commit in: dev-php/PHPMailer/ Michael Orlitzky
2024-05-05  1:15 Michael Orlitzky
2022-09-06 14:40 Michael Orlitzky
2021-08-24 13:17 Thomas Deutschmann
2021-07-01 19:26 Michael Orlitzky
2021-05-14 14:05 Thomas Deutschmann
2021-05-14 14:05 Thomas Deutschmann
2021-04-05 20:32 Thomas Deutschmann
2021-02-09 18:49 Thomas Deutschmann
2021-02-09 18:47 Thomas Deutschmann
2020-08-06 14:34 Thomas Deutschmann
2020-06-10 13:47 Michael Orlitzky
2020-06-10 13:47 Michael Orlitzky
2020-03-19 21:55 Thomas Deutschmann
2020-03-19 21:55 Thomas Deutschmann
2019-12-26 10:23 Thomas Deutschmann
2019-12-09 23:33 Thomas Deutschmann
2019-11-17 21:01 Thomas Deutschmann
2019-02-22 14:55 Thomas Deutschmann
2019-02-22 14:55 Thomas Deutschmann
2019-02-22 14:55 Thomas Deutschmann
2018-10-28  0:05 Michael Orlitzky
2017-12-22  4:27 Michael Orlitzky
2017-12-20  0:55 Michael Orlitzky
2017-12-19 21:35 Michael Orlitzky
2017-07-24 19:52 Michael Orlitzky
2017-05-14 16:22 Michael Orlitzky
2016-12-28 15:50 Michael Orlitzky
2016-12-26 13:44 Michael Orlitzky
2016-07-15 21:49 Michael Orlitzky
2015-11-07  0:06 Michael Orlitzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1623972010.0ab5cf98272bf19ac0db628b584b0b77dffa8dbc.whissi@gentoo \
    --to=whissi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox