This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

added dmtx formula for php53, php55 (+1 squashed commit)

Squashed commits:
[db7da8d] added dmtx formula for php54
  • Loading branch information...
maZahaca authored and lucasmichot committed Dec 11, 2013
1 parent 8545427 commit 990b0f6d79bd1a4b484aea131ee0135fc269d5e1
Showing with 75 additions and 0 deletions.
  1. +25 −0 Formula/php53-dmtx.rb
  2. +25 −0 Formula/php54-dmtx.rb
  3. +25 −0 Formula/php55-dmtx.rb
View
@@ -0,0 +1,25 @@
require 'formula'
require File.join(File.dirname(__FILE__), 'abstract-php-extension')
class Php53Dmtx < AbstractPhp53Extension
init
homepage 'http://www.libdmtx.org'
url 'https://github.com/maZahaca/php-dmtx/archive/0.0.2-dev.tar.gz'
sha1 'b5fc8cc244d29177a35995afd968b8d2ddf22e31'
head 'https://github.com/maZahaca/php-dmtx.git'
depends_on 'libdmtx'
depends_on 'php53-imagick'
depends_on 'pkg-config' => :build
def install
ENV.universal_binary if build.universal?
safe_phpize
system "./configure", "--prefix=#{prefix}",
phpconfig
system "make"
prefix.install %w(modules/dmtx.so)
write_config_file unless build.include? "without-config-file"
end
end
View
@@ -0,0 +1,25 @@
require 'formula'
require File.join(File.dirname(__FILE__), 'abstract-php-extension')
class Php54Dmtx < AbstractPhp54Extension
init
homepage 'http://www.libdmtx.org'
url 'https://github.com/maZahaca/php-dmtx/archive/0.0.2-dev.tar.gz'
sha1 'b5fc8cc244d29177a35995afd968b8d2ddf22e31'
head 'https://github.com/maZahaca/php-dmtx.git'
depends_on 'libdmtx'
depends_on 'php54-imagick'
depends_on 'pkg-config' => :build
def install
ENV.universal_binary if build.universal?
safe_phpize
system "./configure", "--prefix=#{prefix}",
phpconfig
system "make"
prefix.install %w(modules/dmtx.so)
write_config_file unless build.include? "without-config-file"
end
end
View
@@ -0,0 +1,25 @@
require 'formula'
require File.join(File.dirname(__FILE__), 'abstract-php-extension')
class Php55Dmtx < AbstractPhp55Extension
init
homepage 'http://www.libdmtx.org'
url 'https://github.com/maZahaca/php-dmtx/archive/0.0.2-dev.tar.gz'
sha1 'b5fc8cc244d29177a35995afd968b8d2ddf22e31'
head 'https://github.com/maZahaca/php-dmtx.git'
depends_on 'libdmtx'
depends_on 'php55-imagick'
depends_on 'pkg-config' => :build
def install
ENV.universal_binary if build.universal?
safe_phpize
system "./configure", "--prefix=#{prefix}",
phpconfig
system "make"
prefix.install %w(modules/dmtx.so)
write_config_file unless build.include? "without-config-file"
end
end

0 comments on commit 990b0f6

Please sign in to comment.