Last active
September 23, 2016 16:46
-
-
Save halk/f502584fbb385c702a55366b42fbe5ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.expand_path("../../Abstract/abstract-php-extension", __FILE__) | |
class Php56Ioncubeloader < AbstractPhp56Extension | |
init | |
desc "Loader for ionCube Secured Files" | |
homepage "http://www.ioncube.com/loaders.php" | |
if MacOS.prefer_64_bit? | |
url "http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_dar_x86-64.tar.gz" | |
sha256 "b7c72d0fc35c4af95b1db3b6125f7647f948a2567a5cd9ffa18be1716d78fdc3" | |
else | |
url "http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_dar_x86.tar.gz" | |
sha256 "9a3cd4ddad2dad23aa87e49a28ea1fa98878d11a5e7bbfa04fc4d1da6874b4c1" | |
end | |
version "5.0.17" | |
bottle do | |
cellar :any_skip_relocation | |
sha256 "6ece524308f733d7192a0bbe2882300bceaef8a86c87b0ebac8092ab3f95eefc" => :el_capitan | |
sha256 "b78c50912308ede83ce9a7bfe0365792279603aa0b93fc371079d7f36c6485f3" => :yosemite | |
sha256 "aa4f9810644c7c252a6b5ecceaa8f758fcf220fc6d6785b1118d79e95f7505de" => :mavericks | |
end | |
def extension_type | |
"zend_extension" | |
end | |
def install | |
prefix.install "ioncube_loader_dar_5.6.so" => "ioncubeloader.so" | |
write_config_file if build.with? "config-file" | |
end | |
test do | |
shell_output("php -m").include?("ionCube") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment