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

php5*-yaml: update to 1.2.0 (current stable release)

* Using `--with-yaml=` config option to link against brewed `libyaml`
* Added desc and test
* Updated head to point to Github (no longer exists in PECL SVN)

Closes #1769.

Signed-off-by: Alan Ivey <alanivey@gmail.com>
  • Loading branch information...
SteelPangolin authored and alanthing committed Jun 2, 2015
1 parent 59e9f69 commit 91e2e4878c20e8bcd61faeceb195bc6bbd044f13
Showing with 44 additions and 20 deletions.
  1. +11 −5 Formula/php53-yaml.rb
  2. +11 −5 Formula/php54-yaml.rb
  3. +11 −5 Formula/php55-yaml.rb
  4. +11 −5 Formula/php56-yaml.rb
View
@@ -2,12 +2,13 @@
class Php53Yaml < AbstractPhp53Extension
init
homepage 'http://pecl.php.net/package/yaml'
url 'http://pecl.php.net/get/yaml-1.1.1.tgz'
sha1 '7b095f76fe0e4b3b9072c7f0099a203265686f3a'
head 'https://svn.php.net/repository/pecl/yaml/trunk'
homepage "https://pecl.php.net/package/yaml"
desc "YAML-1.1 parser and emitter"
url "https://pecl.php.net/get/yaml-1.2.0.tgz"
sha256 "fdf0eec6bf16b0c45e58076a2048f96140a778463724fb82ab49ab5fb4c7e19a"
head "https://github.com/php/pecl-file_formats-yaml.git"
depends_on 'libyaml'
depends_on "libyaml"
def install
Dir.chdir "yaml-#{version}" unless build.head?
@@ -16,9 +17,14 @@ def install
safe_phpize
system "./configure", "--prefix=#{prefix}",
"--with-yaml=#{Formula["libyaml"].opt_prefix}",
phpconfig
system "make"
prefix.install "modules/yaml.so"
write_config_file if build.with? "config-file"
end
test do
shell_output("php -m").include?("yaml")
end
end
View
@@ -2,12 +2,13 @@
class Php54Yaml < AbstractPhp54Extension
init
homepage 'http://pecl.php.net/package/yaml'
url 'http://pecl.php.net/get/yaml-1.1.1.tgz'
sha1 '7b095f76fe0e4b3b9072c7f0099a203265686f3a'
head 'https://svn.php.net/repository/pecl/yaml/trunk'
homepage "https://pecl.php.net/package/yaml"
desc "YAML-1.1 parser and emitter"
url "https://pecl.php.net/get/yaml-1.2.0.tgz"
sha256 "fdf0eec6bf16b0c45e58076a2048f96140a778463724fb82ab49ab5fb4c7e19a"
head "https://github.com/php/pecl-file_formats-yaml.git"
depends_on 'libyaml'
depends_on "libyaml"
def install
Dir.chdir "yaml-#{version}" unless build.head?
@@ -16,9 +17,14 @@ def install
safe_phpize
system "./configure", "--prefix=#{prefix}",
"--with-yaml=#{Formula["libyaml"].opt_prefix}",
phpconfig
system "make"
prefix.install "modules/yaml.so"
write_config_file if build.with? "config-file"
end
test do
shell_output("php -m").include?("yaml")
end
end
View
@@ -2,12 +2,13 @@
class Php55Yaml < AbstractPhp55Extension
init
homepage 'http://pecl.php.net/package/yaml'
url 'http://pecl.php.net/get/yaml-1.1.1.tgz'
sha1 '7b095f76fe0e4b3b9072c7f0099a203265686f3a'
head 'https://svn.php.net/repository/pecl/yaml/trunk'
homepage "https://pecl.php.net/package/yaml"
desc "YAML-1.1 parser and emitter"
url "https://pecl.php.net/get/yaml-1.2.0.tgz"
sha256 "fdf0eec6bf16b0c45e58076a2048f96140a778463724fb82ab49ab5fb4c7e19a"
head "https://github.com/php/pecl-file_formats-yaml.git"
depends_on 'libyaml'
depends_on "libyaml"
def install
Dir.chdir "yaml-#{version}" unless build.head?
@@ -16,9 +17,14 @@ def install
safe_phpize
system "./configure", "--prefix=#{prefix}",
"--with-yaml=#{Formula["libyaml"].opt_prefix}",
phpconfig
system "make"
prefix.install "modules/yaml.so"
write_config_file if build.with? "config-file"
end
test do
shell_output("php -m").include?("yaml")
end
end
View
@@ -2,12 +2,13 @@
class Php56Yaml < AbstractPhp56Extension
init
homepage 'http://pecl.php.net/package/yaml'
url 'http://pecl.php.net/get/yaml-1.1.1.tgz'
sha1 '7b095f76fe0e4b3b9072c7f0099a203265686f3a'
head 'https://svn.php.net/repository/pecl/yaml/trunk'
homepage "https://pecl.php.net/package/yaml"
desc "YAML-1.1 parser and emitter"
url "https://pecl.php.net/get/yaml-1.2.0.tgz"
sha256 "fdf0eec6bf16b0c45e58076a2048f96140a778463724fb82ab49ab5fb4c7e19a"
head "https://github.com/php/pecl-file_formats-yaml.git"
depends_on 'libyaml'
depends_on "libyaml"
def install
Dir.chdir "yaml-#{version}" unless build.head?
@@ -16,9 +17,14 @@ def install
safe_phpize
system "./configure", "--prefix=#{prefix}",
"--with-yaml=#{Formula["libyaml"].opt_prefix}",
phpconfig
system "make"
prefix.install "modules/yaml.so"
write_config_file if build.with? "config-file"
end
test do
shell_output("php -m").include?("yaml")
end
end

0 comments on commit 91e2e48

Please sign in to comment.