]> git.pld-linux.org Git - packages/php-pear-PEAR.git/commitdiff
- avoid putting php extensions to _noautoreqdep lines
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 15 Oct 2005 13:45:00 +0000 (13:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- add new optional-pkg and optional-ext @@var exports (for pearize.sh or similiar tools)

Changed files:
    php-pear-PEAR-rpmvars.patch -> 1.17

php-pear-PEAR-rpmvars.patch

index dbe5da8aa1ff97e1adfe9719818c0402237ff523..c39c0666b5ec3bb4f87735a48035adee1e8dd51d 100644 (file)
  
              if ($pf->getPackagexmlVersion() == '1.0') {
                  $requires = $conflicts = array();
+--- ./usr/share/pear/PEAR/Command/Package.php  2005-10-15 16:42:42.000000000 +0300
++++ /usr/share/pear/PEAR/Command/Package.php   2005-10-15 16:43:05.000000000 +0300
+@@ -919,13 +919,20 @@
+               }
+               $info['optional'] = '';
++              $info['optional-pkg'] = array();
++              $info['optional-ext'] = array();
+         if ($pf->getDeps()) {
+             if ($pf->getPackagexmlVersion() == '1.0') {
+                 $requires = $conflicts = array();
+                 foreach ($pf->getDeps() as $dep) {
+                     if (isset($dep['optional']) && $dep['optional'] == 'yes') {
+-                                              $info['optional'] .= "'pear(". str_replace('_', '/', $dep['name']) . ".*)' ";
++                                              if ($dep['type'] == 'ext') {
++                                                      $info['optional-ext'][] = 'php-' . $dep['name'];
++                                              } else {
++                                                      $info['optional'] .= "'pear(". str_replace('_', '/', $dep['name']) . ".*)' ";
++                                                      $info['optional-pkg'][] = 'php-pear-'. $dep['name'];
++                                              }
+                         continue;
+                     }
+@@ -1134,6 +1141,21 @@
+         $info['optional'] = trim($info['optional']);
+               $info['have_optional_deps'] = (strlen($info['optional']) > 0) + 0;
++              $tmp = $info['optional-pkg'];
++              $info['optional-pkg'] = '';
++              if (count($tmp)) {
++                      foreach ($tmp as $dep) {
++                              $info['optional-pkg'] .= "Optional-pkg:\t" . $dep . "\n";
++                      }
++              }
++              $tmp = $info['optional-ext'];
++              $info['optional-ext'] = '';
++              if (count($tmp)) {
++                      foreach ($tmp as $dep) {
++                              $info['optional-ext'] .= "Optional-ext:\t" . $dep . "\n";
++                      }
++              }
++
+         if (function_exists('file_get_contents')) {
+             fclose($fp);
+             $spec_contents = preg_replace('/@([a-z0-9_-]+)@/e', '$info["\1"]',
This page took 0.058969 seconds and 4 git commands to generate.