summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2021-02-16 10:03:11 -0500
committerBrian Evans <grknight@gentoo.org>2021-02-16 10:03:11 -0500
commit2c042fa36660036a959231eb89a7b5c822792de9 (patch)
tree960970cadfccabb48399f6cfa216468912f1e564 /dev-php
parentsci-mathematics/ginac: Drop 1.6.6, EAPI5-- (diff)
downloadgentoo-2c042fa36660036a959231eb89a7b5c822792de9.tar.gz
gentoo-2c042fa36660036a959231eb89a7b5c822792de9.tar.bz2
gentoo-2c042fa36660036a959231eb89a7b5c822792de9.zip
dev-php/xdebug: Revbump to block threaded PHP which segfaults
If this is fixed upstream, we can remove the restriction Closes: https://bugs.gentoo.org/759835 Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/xdebug/xdebug-3.0.2-r1.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-php/xdebug/xdebug-3.0.2-r1.ebuild b/dev-php/xdebug/xdebug-3.0.2-r1.ebuild
new file mode 100644
index 000000000000..c4a24b3dd8dc
--- /dev/null
+++ b/dev-php/xdebug/xdebug-3.0.2-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+PHP_EXT_NAME="xdebug"
+PHP_EXT_INI="yes"
+PHP_EXT_ZENDEXT="yes"
+PHP_EXT_INIFILE="3.0-xdebug.ini"
+
+USE_PHP="php7-3 php7-4 php8-0"
+PHP_EXT_NEEDED_USE="-threads(-)"
+
+MY_PV="${PV/_/}"
+MY_PV="${MY_PV/rc/RC}"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+inherit php-ext-source-r3
+
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+
+DESCRIPTION="A PHP debugging and profiling extension"
+HOMEPAGE="https://xdebug.org/"
+# Using tarball from GitHub for tests
+#SRC_URI="https://pecl.php.net/get/${PN}-${MY_PV}.tgz"
+SRC_URI="https://github.com/xdebug/xdebug/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="Xdebug"
+SLOT="0"
+IUSE=""
+
+# Tests are known to fail
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+DOCS=( README.rst CREDITS )
+PHP_EXT_ECONF_ARGS=()
+
+src_test() {
+ local slot
+ for slot in $(php_get_slots); do
+ php_init_slot_env "${slot}"
+ TEST_PHP_EXECUTABLE="${PHPCLI}" \
+ TEST_PHP_CGI_EXECUTABLE="${PHPCGI}" \
+ TEST_PHPDBG_EXECUTABLE="${PHPCLI}dbg" \
+ "${PHPCLI}" run-xdebug-tests.php
+ done
+}
+
+pkg_postinst() {
+ ewarn "We have set xdebug.mode to off, as xdebug can be"
+ ewarn "installed as a dependency, and not all users will want xdebug to be"
+ ewarn "enabled by default. If you want to enable it, you should edit the"
+ ewarn "ini file and set xdebug.mode to one or more modes e.g. develop,debug,trace"
+ elog ""
+ elog "The 3.0 major release changes many options."
+ elog "Review https://xdebug.org/docs/upgrade_guide for differences from 2.x"
+}