--- devel/pear/Makefile (revision 553897) +++ devel/pear/Makefile (working copy) @@ -2,11 +2,11 @@ # $FreeBSD$ PORTNAME= pear -PORTVERSION= 1.10.6 +PORTVERSION= 1.10.12 PORTREVISION= 0 CATEGORIES= devel -MASTER_SITES= http://mirror.bsdproject.de/ \ - LOCAL/joneum +MASTER_SITES= LOCAL/fluffy \ + LOCAL/joneum PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} MAINTAINER= miwi@FreeBSD.org @@ -14,7 +14,7 @@ LICENSE= PHP301 -USES= cpe php:cli,flavors tar:bzip2 +USES= cpe php:cli,flavors tar:xz CPE_VENDOR= php NO_BUILD= yes NO_ARCH= yes @@ -37,7 +37,7 @@ @cd ${WRKSRC}/go-pear-bundle/tmp && ${TAR} -cf devel/PEAR-${PORTVERSION}.tar PEAR-${PORTVERSION} package.xml do-install: - @cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} ${LOCALBASE}/bin/php -q ./go-pear + @cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} ${PHPBASE}/bin/php -q ./go-pear @${SED} -i "" "s|extractModify($ptmp, $fullpkg)) { bail("Extraction for $fullpkg failed!\n"); } -@@ -747,12 +756,7 @@ +@@ -747,13 +756,8 @@ include_once "PEAR/Config.php"; include_once "PEAR/Command.php"; include_once "PEAR/Registry.php"; @@ -176,12 +176,13 @@ -} else { - $config = &PEAR_Config::singleton(); -} -- +$config = &PEAR_Config::singleton(($destdir ? $destdir : '').$prefix."/etc/pear.conf.sample", ''); +- $config->set('preferred_state', 'stable'); foreach ($config_vars as $var) { -@@ -765,7 +769,7 @@ + if (isset($$var) && $$var != '') { +@@ -765,7 +769,7 @@ $config->set('temp_dir', $temp_dir); $config->set('http_proxy', $http_proxy); $config->store(); @@ -190,7 +191,7 @@ PEAR_Command::setFrontendType('CLI'); PEAR::staticPushErrorHandling(PEAR_ERROR_DIE); //fail silently -@@ -787,6 +791,11 @@ +@@ -787,6 +791,11 @@ foreach ($to_install as $pkg) { } else { $options = array('onlyreqdeps' => true); } @@ -202,7 +203,7 @@ if ($registry->packageExists($pkg) || $registry->packageExists($pkg_basename)) { print(str_pad("Package: $pkg", max(50,9+strlen($pkg)+4), '.').' already installed ... ok'."\n"); displayHTMLProgress($progress += round(50 / count($to_install))); -@@ -821,7 +830,7 @@ +@@ -821,7 +830,7 @@ displayHTMLProgress($progress = 99); // Base installation finished @@ -211,7 +212,7 @@ ini_restore("include_path"); if (!WEBINSTALLER) { -@@ -980,6 +989,7 @@ +@@ -980,6 +989,7 @@ if ( WINDOWS ) { if (WINDOWS && !WEBINSTALLER) { win32CreateRegEnv(); } @@ -219,7 +220,16 @@ // Set of functions following /** * Parse the given dirname -@@ -1418,19 +1428,17 @@ +@@ -1134,7 +1144,7 @@ function which($program, $dont_search_in = false) + if (!strlen($dir)) { + continue; + } +- if ($dir{strlen($dir) - 1} != '\\') { ++ if ($dir[strlen($dir) - 1] != '\\') { + $dir .= '\\'; + } + $tmp = $dir . $program; +@@ -1418,19 +1428,17 @@ function detect_install_dirs($_prefix = null) { } } else { if ($_prefix === null) { @@ -244,7 +254,7 @@ // check if the user has installed PHP with PHP or GNU layout if (@is_dir("$prefix/lib/php/.registry")) { $php_dir = '$prefix/lib/php'; -@@ -1442,6 +1450,7 @@ +@@ -1442,6 +1450,7 @@ function detect_install_dirs($_prefix = null) { } elseif (@is_dir("$prefix/share/php/.registry")) { $php_dir = '$prefix/share/php'; } --- devel/pear/files/patch-php72 (revision 553897) +++ devel/pear/files/patch-php72 (nonexistent) @@ -1,24 +0,0 @@ -From 85ebf1e6190681820634c891af624bacde49a017 Mon Sep 17 00:00:00 2001 -From: Andy Thompson -Date: Sun, 11 Jun 2017 09:25:12 +0100 -Subject: [PATCH] Remove unneeded by-reference on built-in fuction - -PHP 7.2 is complaining about this. It also doesn't appear to be -needed, as the argument array items aren't being passed by-reference. ---- - Archive/Tar.php | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/Archive/Tar.php b/Archive/Tar.php -index 202fffb..0bd1c6c 100644 ---- go-pear-bundle/Tar.php -+++ go-pear-bundle/Tar.php -@@ -659,7 +659,7 @@ public function setAttribute() - } - - // ----- Get the arguments -- $v_att_list = & func_get_args(); -+ $v_att_list = func_get_args(); - - // ----- Read the attributes - $i = 0;