From 39242b09cfacbfdb83366ad43a83994fd56d89dc Mon Sep 17 00:00:00 2001
From: Mathieu Parent <math.parent@gmail.com>
Date: Mon, 27 May 2013 12:13:02 +0200
Subject: [PATCH 5/7] PEAR channels support requires pkg-php-tools (>= 1.3~)

---
 checks/phppear |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/checks/phppear b/checks/phppear
index 9dfb0cb..b7ba350 100644
--- a/checks/phppear
+++ b/checks/phppear
@@ -68,6 +68,10 @@ sub run {
     my $bdepends = $info->binary_relation('build-depends');
     if (!$bdepends->implies('pkg-php-tools')) {
       tag 'pear-channel-without-pkg-php-tools-builddep';
+    } else {
+      if (!$bdepends->implies('pkg-php-tools (>= 1.3~)')) {
+        tag 'pear-package-feature-requires-newer-pkg-php-tools', '(>= 1.3~)', 'for PEAR channels support'
+      }
     }
   }
 }
-- 
1.7.10.4

