commit: 4d437d778777f999f7222fbe308f32ed77daa8d8
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 9 17:57:45 2025 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Jan 9 19:06:13 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d437d77
dev-php/PEAR-Net_IMAP: revert package removal, update to v1.1.4
The IMAP C extension has been removed from PHP 8.4, making this pure-PHP
implementation somewhat more useful than it was. For example, DAViCal
has deleted their IMAP authentication method; but its functionality is
easy to replicate with this package.
This reverts commit f619cf3e2814b89daad6700a32a6c7b92c200d2a, updates
the package to the latest v1.1.4, and makes some ebuild improvements
(such as avoiding the PEAR eclass).
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
dev-php/PEAR-Net_IMAP/Manifest | 1 +
dev-php/PEAR-Net_IMAP/PEAR-Net_IMAP-1.1.4.ebuild | 45 ++++++++++++++++++++++++
dev-php/PEAR-Net_IMAP/metadata.xml | 14 ++++++++
3 files changed, 60 insertions(+)
diff --git a/dev-php/PEAR-Net_IMAP/Manifest b/dev-php/PEAR-Net_IMAP/Manifest
new file mode 100644
index 000000000000..1fd38cac978c
--- /dev/null
+++ b/dev-php/PEAR-Net_IMAP/Manifest
@@ -0,0 +1 @@
+DIST Net_IMAP-1.1.4.tgz 40723 BLAKE2B
0e6b7bc01301f26464afdee148318549e239c6bb8fc5646f13fc728b0e581ae8c9bc9961e83065138f31df0a81e4ed79794420be4d3a7c43b6bacc619ed672ad
SHA512
2747cdb3d7f11dc4e9bc5c531c4c49cbd1b65b0ff71b30f46f06a4ad10aae341c1323a7c4a9ffb4fa3b8694a75cf60fdcb9cf433c765f29e17bd1e86c5fa929d
diff --git a/dev-php/PEAR-Net_IMAP/PEAR-Net_IMAP-1.1.4.ebuild
b/dev-php/PEAR-Net_IMAP/PEAR-Net_IMAP-1.1.4.ebuild
new file mode 100644
index 000000000000..345cf489d8c1
--- /dev/null
+++ b/dev-php/PEAR-Net_IMAP/PEAR-Net_IMAP-1.1.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="${PN/PEAR-/}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Provides an implementation of the IMAP protocol"
+HOMEPAGE="https://pear.php.net/package/Net_IMAP
+ https://github.com/pear/Net_IMAP"
+SRC_URI="https://pear.php.net/get/${MY_P}.tgz"
+S="${WORKDIR}/${MY_P}"
+LICENSE="PHP-3.01"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc64 ~sparc ~x86"
+IUSE="sasl"
+RDEPEND="dev-lang/php:*
+ dev-php/PEAR-Net_Socket
+ dev-php/PEAR-PEAR
+ sasl? ( dev-php/PEAR-Auth_SASL )"
+
+src_install() {
+ insinto /usr/share/php
+ doins -r Net
+ dodoc docs/*
+ insinto /usr/share/php/.packagexml
+ newins "${WORKDIR}/package.xml" "${MY_P}.xml"
+}
+
+pkg_postinst() {
+ # It is not critical to complete so only warn on failure
+ if [[ -f "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" && \
+ -x "${EROOT}/usr/bin/peardev" ]] ; then
+ "${EROOT}/usr/bin/peardev" install -nrO --force \
+ "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" 2>
/dev/null \
+ || ewarn "Failed to insert package into local PEAR
database"
+ fi
+}
+
+pkg_postrm() {
+ if [[ -x "${EROOT}/usr/bin/peardev" ]]; then
+ "${EROOT}/usr/bin/peardev" uninstall -nrO
"pear.php.net/${MY_PN}"
+ fi
+}
diff --git a/dev-php/PEAR-Net_IMAP/metadata.xml
b/dev-php/PEAR-Net_IMAP/metadata.xml
new file mode 100644
index 000000000000..86cdbad4cb33
--- /dev/null
+++ b/dev-php/PEAR-Net_IMAP/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>[email protected]</email>
+ <name>PHP</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>[email protected]</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">pear/Net_IMAP</remote-id>
+ </upstream>
+</pkgmetadata>