Skip to content

Commit

Permalink
Added support for phpiredis extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Soronellas authored and ablyler committed Aug 30, 2014
1 parent 45083fe commit f43fd92
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Formula/php53-phpiredis.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require File.join(File.dirname(__FILE__), 'abstract-php-extension')

class Php53Phpiredis < AbstractPhp55Extension
init
homepage 'https://github.com/nrk/phpiredis'
url 'https://github.com/nrk/phpiredis/archive/master.tar.gz'
version '1.0'
head 'https://github.com/nrk/phpiredis.git'

depends_on "hiredis"

def install
ENV.universal_binary if build.universal?

args = []
args << "--prefix=#{prefix}"
args << phpconfig
args << "--enable-phpiredis"
args << "--with-hiredis-dir=#{Formula['hiredis'].opt_prefix}"

safe_phpize
system "./configure", *args
system "make"
prefix.install "modules/phpiredis.so"
write_config_file if build.with? "config-file"
end
end
27 changes: 27 additions & 0 deletions Formula/php54-phpiredis.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require File.join(File.dirname(__FILE__), 'abstract-php-extension')

class Php54Phpiredis < AbstractPhp55Extension
init
homepage 'https://github.com/nrk/phpiredis'
url 'https://github.com/nrk/phpiredis/archive/master.tar.gz'
version '1.0'
head 'https://github.com/nrk/phpiredis.git'

depends_on "hiredis"

def install
ENV.universal_binary if build.universal?

args = []
args << "--prefix=#{prefix}"
args << phpconfig
args << "--enable-phpiredis"
args << "--with-hiredis-dir=#{Formula['hiredis'].opt_prefix}"

safe_phpize
system "./configure", *args
system "make"
prefix.install "modules/phpiredis.so"
write_config_file if build.with? "config-file"
end
end
28 changes: 28 additions & 0 deletions Formula/php55-phpiredis.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
require File.join(File.dirname(__FILE__), 'abstract-php-extension')

class Php55Phpiredis < AbstractPhp55Extension
init
homepage 'https://github.com/nrk/phpiredis'
url 'https://github.com/nrk/phpiredis/archive/master.tar.gz'
sha1 '082cb37cb3c50ffef309e811994d950208bd8bd5'
version 'master'
head 'https://github.com/nrk/phpiredis.git'

depends_on "hiredis"

def install
ENV.universal_binary if build.universal?

args = []
args << "--prefix=#{prefix}"
args << phpconfig
args << "--enable-phpiredis"
args << "--with-hiredis-dir=#{Formula['hiredis'].opt_prefix}"

safe_phpize
system "./configure", *args
system "make"
prefix.install "modules/phpiredis.so"
write_config_file if build.with? "config-file"
end
end
27 changes: 27 additions & 0 deletions Formula/php56-phpiredis.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require File.join(File.dirname(__FILE__), 'abstract-php-extension')

class Php56Phpiredis < AbstractPhp55Extension
init
homepage 'https://github.com/nrk/phpiredis'
url 'https://github.com/nrk/phpiredis/archive/master.tar.gz'
version '1.0'
head 'https://github.com/nrk/phpiredis.git'

depends_on "hiredis"

def install
ENV.universal_binary if build.universal?

args = []
args << "--prefix=#{prefix}"
args << phpconfig
args << "--enable-phpiredis"
args << "--with-hiredis-dir=#{Formula['hiredis'].opt_prefix}"

safe_phpize
system "./configure", *args
system "make"
prefix.install "modules/phpiredis.so"
write_config_file if build.with? "config-file"
end
end

0 comments on commit f43fd92

Please sign in to comment.