From c8d60dada2ec8eb48b2d2b290cd6683ccec40e39 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Feb 2021 21:41:11 +0000 Subject: gentoo (valentine's day) resync : 14.02.2021 --- dev-php/PHPMailer/Manifest | 4 +- dev-php/PHPMailer/PHPMailer-5.2.28.ebuild | 64 -------------------------- dev-php/PHPMailer/PHPMailer-6.2.0.ebuild | 74 +++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 66 deletions(-) delete mode 100644 dev-php/PHPMailer/PHPMailer-5.2.28.ebuild create mode 100644 dev-php/PHPMailer/PHPMailer-6.2.0.ebuild (limited to 'dev-php/PHPMailer') diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest index a9d34951dee4..612e342388fa 100644 --- a/dev-php/PHPMailer/Manifest +++ b/dev-php/PHPMailer/Manifest @@ -1,7 +1,7 @@ -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 -EBUILD PHPMailer-5.2.28.ebuild 1962 BLAKE2B e5386bf9d75ae81df44fa8703e2183ff79b39054c14bf49a1b57774d148aa5d460c7f5310a98d447a114187844c0453e4017eb5cfb1f679e4910ad60b83cd6d7 SHA512 b6eab2bf9413f7af3083f92a0d8f3252a3773526711c724786df3b3c056472f6a0d7a0725ae58adc3860cff8c5ee9707a7198e0193a7fedf31c878408d385b85 +DIST PHPMailer-6.2.0.tar.gz 95671 BLAKE2B e277f9a033e0b01381ac0a8d20b26d265b2ed187f0c9402a373bc2f9f526421830bd65d2ee11b061927963bcfea79ad8dd176c94ff58c41ccec8f80035a63afc SHA512 31a30e3ca3dd75bf36601870c272a12d6abdee09a9dc523f8ccc610f72a56789650e7a58990577929920b540552cbf75b83679d2cc5d9ce5efd3c214ce5baa42 EBUILD PHPMailer-6.1.6.ebuild 2219 BLAKE2B 08a599591d6bee673c5df6b47d9c9aea0db8e7ba8d46d7568afbb3d72ee65d0e23215d5f77ac3ac04e70ca26a98847323b9a54dd4adef8f453efc90e89d52a3f SHA512 c69da2436be943fb96828db9268f73d34ac129b21521800f510ef79db257b090627f8bc5c384708f38bc9aec024116461b1a9bfce2dc9b0b7e20c23fc41dad27 EBUILD PHPMailer-6.1.7.ebuild 2219 BLAKE2B 08a599591d6bee673c5df6b47d9c9aea0db8e7ba8d46d7568afbb3d72ee65d0e23215d5f77ac3ac04e70ca26a98847323b9a54dd4adef8f453efc90e89d52a3f SHA512 c69da2436be943fb96828db9268f73d34ac129b21521800f510ef79db257b090627f8bc5c384708f38bc9aec024116461b1a9bfce2dc9b0b7e20c23fc41dad27 +EBUILD PHPMailer-6.2.0.ebuild 2195 BLAKE2B 54fd8e6fb8cf1e7907a2055e2e8b035638c46c8c0136be68b5889b1dbcfe82206575b02f1302a5a22dca3171d9b79a03cb71ebbfe9565aaf7c298eca4ec47b20 SHA512 71791e9219d29b6006e0092fa82f646770b8703891be17bc6559f8c0ce4441c3efa37ec2619d807ee51185a54da259919261e94b2d38372a766c57624cca6600 MISC metadata.xml 446 BLAKE2B 178ea98081e664641c7a8632a1c7dac9b5cac8992b0b945208f5ef654633340daced2473bbdc342b70d8b168ac2206ba132f7ab9601f61b5436f3eb3e0441ca1 SHA512 3dfce858cb0e00b526f04a5764a6173d4711db4f21f52b6d827b82f1cddea4e33f533e645dae95d0bb6a69699b00520a414f2e322c76b56aee1e4ea047bb4bb5 diff --git a/dev-php/PHPMailer/PHPMailer-5.2.28.ebuild b/dev-php/PHPMailer/PHPMailer-5.2.28.ebuild deleted file mode 100644 index 160382537ad9..000000000000 --- a/dev-php/PHPMailer/PHPMailer-5.2.28.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2020 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" -IUSE="doc examples 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] ) - )" -DEPEND="${RDEPEND} - doc? ( dev-php/phpDocumentor )" - -src_compile() { - if use doc; then - phpdoc --filename="class.*.php" \ - --target="./html" \ - --cache-folder="${T}" \ - --title="${PN}" \ - --sourcecode \ - --force \ - --progressbar \ - || die "failed to generate API documentation" - fi -} - -src_install() { - # To help out the Composer kids, most of the documentation and - # tests are missing from the release tarballs. - insinto "/usr/share/php/${PN}" - doins -r *.php language extras - - use examples && dodoc -r examples - use doc && dodoc -r html/* -} - -pkg_postinst() { - elog "${PN} has been installed in /usr/share/php/${PN}/." - elog "To use it in a script, require('${PN}/${PN}Autoload.php')," - elog "and then use the ${PN} class normally. Most of the examples in" - elog "the documentation should work without further modification." -} 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 000000000000..48dc349297f3 --- /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." +} -- cgit v1.2.3