From 17bdec91ad03e2e0fe082606aaae9501e8a68fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my?= Date: Thu, 20 Jul 2017 23:11:11 +0200 Subject: [PATCH 1/2] add php-imagick dependencies --- php71-imagick.json | 91 +++++++++++++++++++++++++++++----------------- 1 file changed, 58 insertions(+), 33 deletions(-) diff --git a/php71-imagick.json b/php71-imagick.json index b844657..546610f 100644 --- a/php71-imagick.json +++ b/php71-imagick.json @@ -1,33 +1,58 @@ -{ - "homepage": "https://pecl.php.net/package/imagick", - "version": "3.4.3", - "license": "http://www.php.net/license/3_01.txt", - "architecture": { - "64bit": { - "url": "http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.1-ts-vc14-x64.zip", - "hash": "35ee1bba25f2901affa24a22e60abcaae466327fd7f2c00e32ddeeec1a5910a4" - }, - "32bit": { - "url": "http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.1-ts-vc14-x86.zip", - "hash": "306e12c77dd9bf71b198f252d6c52914aa055a13d7a22e76567e9e4bd56373f6" - } - }, - "depends": [ - "php" - ], - "post_install": "$phpconfd = \"$persist_dir\\..\\php\\cli\\conf.d\"; if((test-path $phpconfd)) { echo \"Enabling extension $(Convert-Path $phpconfd)\\imagick.ini\"; echo \"extension=$dir\\php_imagick.dll\" | sc \"$phpconfd\\imagick.ini\"; echo \"Remove-Item '$(Convert-Path $phpconfd)\\imagick.ini'\" | sc \"$dir\\uninstall.ps1\" } else { write-host -f yellow \"PHP was not installed through scoop, you have to activate php_imagick.dll manually!\" }", - "checkver": "imagick/([\\d.]+)/windows", - "autoupdate": { - "architecture": { - "64bit": { - "url": "http://windows.php.net/downloads/pecl/releases/imagick/$version/php_imagick-$version-7.1-ts-vc14-x64.zip" - }, - "32bit": { - "url": "http://windows.php.net/downloads/pecl/releases/imagick/$version/php_imagick-$version-7.1-ts-vc14-x86.zip" - } - } - }, - "uninstaller": { - "file": "uninstall.ps1" - } -} +{ + "homepage": "https://pecl.php.net/package/imagick", + "version": "3.4.3", + "license": "http://www.php.net/license/3_01.txt", + "architecture": { + "64bit": { + "url": [ + "http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.1-ts-vc14-x64.zip", + "http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc14-x64.zip" + ], + "hash": [ + "35ee1bba25f2901affa24a22e60abcaae466327fd7f2c00e32ddeeec1a5910a4", + "25f115a5aec336d3039add9b0819d459787763ce86e0dd4804ac1bddee431f10" + ] + }, + "32bit": { + "url": [ + "http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.1-ts-vc14-x86.zip", + "http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc14-x86.zip" + ], + "hash": [ + "306e12c77dd9bf71b198f252d6c52914aa055a13d7a22e76567e9e4bd56373f6", + "8d46ee896c2d13a4829dcfff5a8da9ac6bdd55c4da4d039ac726a0e211f46a16" + ] + } + }, + "depends": [ + "php" + ], + "post_install": " + $phpconfd = \"$persist_dir\\..\\php\\cli\\conf.d\"; + if((test-path $phpconfd)) { + echo \"Enabling extension $(Convert-Path $phpconfd)\\imagick.ini\"; + echo \"extension=$dir\\php_imagick.dll\" | sc \"$phpconfd\\imagick.ini\"; + echo \"Remove-Item '$(Convert-Path $phpconfd)\\imagick.ini'\" | sc \"$dir\\uninstall.ps1\" + } else { + write-host -f yellow \"PHP was not installed through scoop, you have to activate php_imagick.dll manually!\" + } + + Write-Host \"Remove .exe files to prevent confusion with imagemagick\" + Remove-Item $dir\\bin\\*.exe + ", + "env_add_path": "bin", + "checkver": "imagick/([\\d.]+)/windows", + "autoupdate": { + "architecture": { + "64bit": { + "url": "http://windows.php.net/downloads/pecl/releases/imagick/$version/php_imagick-$version-7.1-ts-vc14-x64.zip" + }, + "32bit": { + "url": "http://windows.php.net/downloads/pecl/releases/imagick/$version/php_imagick-$version-7.1-ts-vc14-x86.zip" + } + } + }, + "uninstaller": { + "file": "uninstall.ps1" + } +} From fc7ce83dac46ae7d2188a9339be509e903f141b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my?= Date: Tue, 30 Jan 2018 21:43:27 +0100 Subject: [PATCH 2/2] reformat --- php71-imagick.json | 84 +++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/php71-imagick.json b/php71-imagick.json index 546610f..9edd940 100644 --- a/php71-imagick.json +++ b/php71-imagick.json @@ -1,33 +1,33 @@ { - "homepage": "https://pecl.php.net/package/imagick", - "version": "3.4.3", - "license": "http://www.php.net/license/3_01.txt", - "architecture": { - "64bit": { - "url": [ - "http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.1-ts-vc14-x64.zip", - "http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc14-x64.zip" - ], - "hash": [ - "35ee1bba25f2901affa24a22e60abcaae466327fd7f2c00e32ddeeec1a5910a4", - "25f115a5aec336d3039add9b0819d459787763ce86e0dd4804ac1bddee431f10" - ] + "homepage": "https://pecl.php.net/package/imagick", + "version": "3.4.3", + "license": "http://www.php.net/license/3_01.txt", + "architecture": { + "64bit": { + "url": [ + "http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.1-ts-vc14-x64.zip", + "http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc14-x64.zip" + ], + "hash": [ + "35ee1bba25f2901affa24a22e60abcaae466327fd7f2c00e32ddeeec1a5910a4", + "25f115a5aec336d3039add9b0819d459787763ce86e0dd4804ac1bddee431f10" + ] + }, + "32bit": { + "url": [ + "http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.1-ts-vc14-x86.zip", + "http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc14-x86.zip" + ], + "hash": [ + "306e12c77dd9bf71b198f252d6c52914aa055a13d7a22e76567e9e4bd56373f6", + "8d46ee896c2d13a4829dcfff5a8da9ac6bdd55c4da4d039ac726a0e211f46a16" + ] + } }, - "32bit": { - "url": [ - "http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.1-ts-vc14-x86.zip", - "http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc14-x86.zip" - ], - "hash": [ - "306e12c77dd9bf71b198f252d6c52914aa055a13d7a22e76567e9e4bd56373f6", - "8d46ee896c2d13a4829dcfff5a8da9ac6bdd55c4da4d039ac726a0e211f46a16" - ] - } - }, - "depends": [ - "php" - ], - "post_install": " + "depends": [ + "php" + ], + "post_install": " $phpconfd = \"$persist_dir\\..\\php\\cli\\conf.d\"; if((test-path $phpconfd)) { echo \"Enabling extension $(Convert-Path $phpconfd)\\imagick.ini\"; @@ -40,19 +40,19 @@ Write-Host \"Remove .exe files to prevent confusion with imagemagick\" Remove-Item $dir\\bin\\*.exe ", - "env_add_path": "bin", - "checkver": "imagick/([\\d.]+)/windows", - "autoupdate": { - "architecture": { - "64bit": { - "url": "http://windows.php.net/downloads/pecl/releases/imagick/$version/php_imagick-$version-7.1-ts-vc14-x64.zip" - }, - "32bit": { - "url": "http://windows.php.net/downloads/pecl/releases/imagick/$version/php_imagick-$version-7.1-ts-vc14-x86.zip" - } + "env_add_path": "bin", + "checkver": "imagick/([\\d.]+)/windows", + "autoupdate": { + "architecture": { + "64bit": { + "url": "http://windows.php.net/downloads/pecl/releases/imagick/$version/php_imagick-$version-7.1-ts-vc14-x64.zip" + }, + "32bit": { + "url": "http://windows.php.net/downloads/pecl/releases/imagick/$version/php_imagick-$version-7.1-ts-vc14-x86.zip" + } + } + }, + "uninstaller": { + "file": "uninstall.ps1" } - }, - "uninstaller": { - "file": "uninstall.ps1" - } }