From 0344b168276f80189e2254c75a762aff5b517b6b Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 22 May 2016 06:32:57 -0400
Subject: [PATCH] Fix priority icon(s) position

---
 bin/package2composer.sh |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/bin/package2composer.sh b/bin/package2composer.sh
index 66d77f6..c615a17 100755
--- a/bin/package2composer.sh
+++ b/bin/package2composer.sh
@@ -39,6 +39,7 @@
     'description' => trim(strval($package->description), '- ') ? trim(strval($package->description)) : trim(strval($package->summary)),
     'homepage' => strval($package->uri),
     'license' => 'GPLv3+',
+    'version' => strval($package->version->release),
     'authors' => array(),
     'repositories' => array(
         array('type' => 'composer', 'url' => 'http://plugins.roundcube.net'),
@@ -55,6 +56,9 @@
 
 if ($package->lead) {
     foreach ($package->lead as $lead) {
+        if (strval($lead->active) == 'no') {
+            continue;
+        }
         $data['authors'][] = array(
             'name' => strval($lead->name),
             'email' => strval($lead->email),
@@ -73,6 +77,12 @@
     }
 }
 
+if ($package->dependencies->required->extension) {
+    foreach ($package->dependencies->required->extension as $ext) {
+        $data['require']['ext-' . strval($ext->name)] = '*';
+    }
+}
+
 // remove empty values
 $data = array_filter($data);
 

--
Gitblit v1.9.1