diff --git a/config.yaml b/config.yaml new file mode 100644 index 00000000..6b39ebdc --- /dev/null +++ b/config.yaml @@ -0,0 +1,60 @@ +variants: + dev: + bcmath: + calendar: + cli: + ctype: + dom: + fileinfo: + filter: + ipc: + iconv: + json: + mbregex: + mbstring: + mhash: + mcrypt: + pcntl: + pcre: + pdo: + phar: + posix: + sockets: + tokenizer: + xml: + curl: + openssl: + zip: + gd: + - --with-freetype + - --with-pdo-mysql=mysqlnd + - --with-mysqli=mysqlnd + - --with-pgsql + - --with-pdo-pgsql + - --with-gmp=/usr/local/opt/gmp + - --with-openssl + - --with-pear + - --with-zip + - --with-zlib-dir=/usr/local/opt/zlib + - --with-libxml + - --with-kerberos + - --with-gd + - --with-ffi + - --with-bz2=/usr/local/opt/bzip2 + - --with-readline=/usr/local/opt/readline + - --with-iconv=/usr/local/opt/libiconv + - --with-icu-dir=/usr/local/opt/icu4c + - --enable-intl + - --enable-xml + - --enable-sysvsem + - --enable-sysvshm + - --enable-sysvmsg + - --enable-phpdbg + - --enable-exif + - --enable-gd + - --enable-soap + - --enable-xmlreader + - --enable-zend-test=shared +extensions: + dev: + xdebug: stable \ No newline at end of file diff --git a/lib/utils.js b/lib/utils.js index 2c0db392..83ea9595 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -60,6 +60,7 @@ function readScript(filename, version, os_version) { case 'darwin': switch (version) { case '7.4': + fs.createReadStream(path.join(__dirname, '../src/config.yaml')).pipe(fs.createWriteStream('config.yaml')); return fs.readFileSync(path.join(__dirname, '../src/7.4.sh'), 'utf8'); case '7.3': default: diff --git a/src/7.4.sh b/src/7.4.sh index 77c0ce4b..bb293d86 100644 --- a/src/7.4.sh +++ b/src/7.4.sh @@ -35,7 +35,7 @@ echo 'export EXTRA_LIBS="/usr/local/opt/readline/lib/libhistory.dylib /usr/local/opt/icu4c/lib/libicutu.dylib /usr/local/opt/icu4c/lib/libicuuc.dylib"' } >> ~/.bash_profile -config_file=$(pwd)/src/config.yaml +config_file=$(pwd)/config.yaml cd ~ || echo "could not move to ~" curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew >/dev/null 2>&1 chmod +x ./phpbrew diff --git a/src/install.ts b/src/install.ts index 405990d3..59a39236 100644 --- a/src/install.ts +++ b/src/install.ts @@ -22,6 +22,7 @@ async function run() { version, os_version ); + darwin += await features.addExtension(extension_csv, version, os_version); darwin += await features.addINIValues(ini_values_csv, os_version); darwin += await features.addCoverage(coverage, version, os_version); diff --git a/src/utils.ts b/src/utils.ts index 3bef3ea3..51ea7475 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -48,6 +48,9 @@ export async function readScript( case 'darwin': switch (version) { case '7.4': + fs.createReadStream(path.join(__dirname, '../src/config.yaml')).pipe( + fs.createWriteStream('config.yaml') + ); return fs.readFileSync(path.join(__dirname, '../src/7.4.sh'), 'utf8'); case '7.3': default: