summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-09-20 20:15:41 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-09-20 20:15:41 +0200
commita149d566fca224e503b7676337486ec2670e6cca (patch)
tree0ebcfd935a67ea204f8c576b707c981a539d035a /bin
parent40b45cbca6b2a5690ca4ff791d2380180159b86f (diff)
List required PHP extensions in 'require'
Diffstat (limited to 'bin')
-rwxr-xr-xbin/package2composer.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/package2composer.sh b/bin/package2composer.sh
index 66d77f623..aa9dffb50 100755
--- a/bin/package2composer.sh
+++ b/bin/package2composer.sh
@@ -73,6 +73,12 @@ if ($devs = $package->developer) {
}
}
+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);