Skip to content

Commit

Permalink
Add support for ast from shivammathur/extensions on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Aug 10, 2022
1 parent aa82ffc commit 401bdec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ async function addExtensionDarwin(extension_csv, version) {
case /(?<!5\.[3-5])(amqp|apcu|expect|gnupg|grpc|igbinary|imagick|imap|mailparse|mcrypt|memcache|memcached|mongodb|msgpack|protobuf|psr|raphf|rdkafka|redis|ssh2|swoole|xdebug|xdebug2|yaml|zmq)/.test(version_extension):
case /(5\.6|7\.[0-4])propro/.test(version_extension):
case /(?<!5\.[3-6]|7\.0)pcov/.test(version_extension):
case /(?<!5\.[3-6])(vips|xlswriter)/.test(version_extension):
case /(?<!5\.[3-6])(ast|vips|xlswriter)/.test(version_extension):
add_script += await utils.joins('\nadd_brew_extension', ext_name, ext_prefix);
return;
case /^sqlite$/.test(extension):
Expand Down
1 change: 1 addition & 0 deletions src/configs/brew_extensions
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
amqp=amqp
apcu=apcu
ast=ast
couchbase=couchbase
event=event
expect=expect
Expand Down
2 changes: 1 addition & 1 deletion src/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function addExtensionDarwin(
):
case /(5\.6|7\.[0-4])propro/.test(version_extension):
case /(?<!5\.[3-6]|7\.0)pcov/.test(version_extension):
case /(?<!5\.[3-6])(vips|xlswriter)/.test(version_extension):
case /(?<!5\.[3-6])(ast|vips|xlswriter)/.test(version_extension):
add_script += await utils.joins(
'\nadd_brew_extension',
ext_name,
Expand Down

0 comments on commit 401bdec

Please sign in to comment.