Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Commit 50f23d1

Browse files
author
zouyikb
committed
add yaconf
1 parent 00be68a commit 50f23d1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Formula/php71-yaconf.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
2+
3+
class Php72Yaconf < AbstractPhp72Extension
4+
init
5+
desc "A PHP Persistent Configurations Container"
6+
homepage "https://github.com/laruence/yaconf"
7+
url "https://github.com/laruence/yaconf/archive/yaconf-1.0.7.zip"
8+
sha256 "9a7e558ee84a71d5a4762e515e1af09eebf30535de7d73c0daa1fc8d4c02853c"
9+
head "https://github.com/laruence/yaconf.git"
10+
11+
def install
12+
safe_phpize
13+
system "./configure", "--prefix=#{prefix}",
14+
phpconfig
15+
system "make"
16+
prefix.install %w[modules/yaconf.so]
17+
write_config_file if build.with? "config-file"
18+
end
19+
20+
def config_file
21+
super + <<~EOS
22+
23+
; yaconf can be used to store PHP config.
24+
; To do this, uncomment and configure below
25+
; yaconf.directory = /tmp/yaconf
26+
EOS
27+
end
28+
end

0 commit comments

Comments
 (0)