Skip to content

Commit

Permalink
Add xlswriter --init --build-only-xlswriter
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Oct 12, 2021
1 parent d8cc0a3 commit 8908b88
Show file tree
Hide file tree
Showing 11 changed files with 271 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/edit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fetch() {
[[ "$VERSION" =~ (yaml)@(7.[1-4]|8.[0-2]) ]] ||
[[ "$VERSION" =~ (mongodb)@(7.[1-4]|8.0) ]] ||
[[ "$VERSION" =~ (apcu|pecl_http|msgpack|rdkafka)@(7.[0-4]|8.0]) ]] ||
[[ "$VERSION" =~ (grpc|igbinary|protobuf|psr|raphf|redis|ssh2|vips)@(7.[0-4]|8.[0-2]) ]] ||
[[ "$VERSION" =~ (grpc|igbinary|protobuf|psr|raphf|redis|ssh2|vips|xlswriter)@(7.[0-4]|8.[0-2]) ]] ||
[[ "$VERSION" =~ amqp@(5.6|7.[0-4]) ]]; then
sudo chmod a+x .github/scripts/update.sh && bash .github/scripts/update.sh "$EXTENSION" "$VERSION"
url=$(grep ' url' < ./Formula/"$VERSION".rb | cut -d\" -f 2)
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/update.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extension=$1
version=$2
case $extension in
amqp|apcu|expect|grpc|imagick|msgpack|protobuf|propro|psr|raphf|rdkafka|redis|memcached|mongodb|ssh2|vips|yaml)
amqp|apcu|expect|grpc|imagick|msgpack|protobuf|propro|psr|raphf|rdkafka|redis|memcached|mongodb|ssh2|vips|xlswriter|yaml)
tag=$(curl -sSL "https://pecl.php.net/rest/r/$extension/allreleases.xml" | grep -m 1 -Eo "([0-9]+.[0-9]+(.[0-9]+)?(.[0-9]+)?)(<)" | cut -d '<' -f 1)
sed -i "s/ url .*/ url \"https\:\/\/pecl.php.net\/get\/$extension-$tag.tgz\"/g" ./Formula/"$version".rb
;;
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:
fail-fast: false
matrix:
php: ['7.1', '7.2', '7.3', '7.4']
extensions: ['amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, vips, xdebug, yaml, zmq, pcov, propro']
extensions: ['amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, vips, xdebug, yaml, xlswriter, zmq, pcov, propro']
include:
- php: '5.6'
extensions: amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, xdebug, yaml, zmq, propro
- php: '7.0'
extensions: amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, vips, xdebug, yaml, zmq, propro
extensions: amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, vips, xdebug, yaml, xlswriter, zmq, propro
- php: '8.0'
extensions: amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, vips, xdebug, yaml, zmq, pcov
extensions: amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, vips, xdebug, yaml, xlswriter, zmq, pcov
- php: '8.1'
extensions: amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, vips, xdebug, yaml, zmq, pcov
extensions: amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, vips, xdebug, yaml, xlswriter, zmq, pcov
- php: '8.2'
extensions: amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, vips, xdebug, yaml, zmq, pcov
extensions: amqp, apcu, expect, grpc, igbinary, imagick, imap, memcache, memcached, mongodb, msgpack, pecl_http, protobuf, psr, raphf, rdkafka, redis, ssh2, swoole, vips, xdebug, yaml, xlswriter, zmq, pcov
- php: '7.2'
extensions: xdebug2
- php: '7.3'
Expand Down
33 changes: 33 additions & 0 deletions Formula/xlswriter@7.0.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# typed: false
# frozen_string_literal: true

require File.expand_path("../Abstract/abstract-php-extension", __dir__)

# Class for Xlswriter Extension
class XlswriterAT70 < AbstractPhpExtension
init
desc "Xlswriter PHP extension"
homepage "https://github.com/viest/php-ext-xlswriter"
url "https://pecl.php.net/get/xlswriter-1.5.0.tgz?init=true"
sha256 "05698726e123e4c339ccaaab80f0a81705b9bc9c21377f0951c9ad51df4718c6"
head "https://github.com/viest/php-ext-xlswriter.git"
license "BSD-2-Clause"

bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
end

def install
args = %W[
--with-xlswriter
--enable-reader
]
Dir.chdir "xlswriter-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, *args
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end
33 changes: 33 additions & 0 deletions Formula/xlswriter@7.1.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# typed: false
# frozen_string_literal: true

require File.expand_path("../Abstract/abstract-php-extension", __dir__)

# Class for Xlswriter Extension
class XlswriterAT71 < AbstractPhpExtension
init
desc "Xlswriter PHP extension"
homepage "https://github.com/viest/php-ext-xlswriter"
url "https://pecl.php.net/get/xlswriter-1.5.0.tgz?init=true"
sha256 "05698726e123e4c339ccaaab80f0a81705b9bc9c21377f0951c9ad51df4718c6"
head "https://github.com/viest/php-ext-xlswriter.git"
license "BSD-2-Clause"

bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
end

def install
args = %W[
--with-xlswriter
--enable-reader
]
Dir.chdir "xlswriter-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, *args
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end
33 changes: 33 additions & 0 deletions Formula/xlswriter@7.2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# typed: false
# frozen_string_literal: true

require File.expand_path("../Abstract/abstract-php-extension", __dir__)

# Class for Xlswriter Extension
class XlswriterAT72 < AbstractPhpExtension
init
desc "Xlswriter PHP extension"
homepage "https://github.com/viest/php-ext-xlswriter"
url "https://pecl.php.net/get/xlswriter-1.5.0.tgz?init=true"
sha256 "05698726e123e4c339ccaaab80f0a81705b9bc9c21377f0951c9ad51df4718c6"
head "https://github.com/viest/php-ext-xlswriter.git"
license "BSD-2-Clause"

bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
end

def install
args = %W[
--with-xlswriter
--enable-reader
]
Dir.chdir "xlswriter-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, *args
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end
33 changes: 33 additions & 0 deletions Formula/xlswriter@7.3.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# typed: false
# frozen_string_literal: true

require File.expand_path("../Abstract/abstract-php-extension", __dir__)

# Class for Xlswriter Extension
class XlswriterAT73 < AbstractPhpExtension
init
desc "Xlswriter PHP extension"
homepage "https://github.com/viest/php-ext-xlswriter"
url "https://pecl.php.net/get/xlswriter-1.5.0.tgz?init=true"
sha256 "05698726e123e4c339ccaaab80f0a81705b9bc9c21377f0951c9ad51df4718c6"
head "https://github.com/viest/php-ext-xlswriter.git"
license "BSD-2-Clause"

bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
end

def install
args = %W[
--with-xlswriter
--enable-reader
]
Dir.chdir "xlswriter-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, *args
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end
33 changes: 33 additions & 0 deletions Formula/xlswriter@7.4.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# typed: false
# frozen_string_literal: true

require File.expand_path("../Abstract/abstract-php-extension", __dir__)

# Class for Xlswriter Extension
class XlswriterAT74 < AbstractPhpExtension
init
desc "Xlswriter PHP extension"
homepage "https://github.com/viest/php-ext-xlswriter"
url "https://pecl.php.net/get/xlswriter-1.5.0.tgz?init=true"
sha256 "05698726e123e4c339ccaaab80f0a81705b9bc9c21377f0951c9ad51df4718c6"
head "https://github.com/viest/php-ext-xlswriter.git"
license "BSD-2-Clause"

bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
end

def install
args = %W[
--with-xlswriter
--enable-reader
]
Dir.chdir "xlswriter-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, *args
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end
33 changes: 33 additions & 0 deletions Formula/xlswriter@8.0.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# typed: false
# frozen_string_literal: true

require File.expand_path("../Abstract/abstract-php-extension", __dir__)

# Class for Xlswriter Extension
class XlswriterAT80 < AbstractPhpExtension
init
desc "Xlswriter PHP extension"
homepage "https://github.com/viest/php-ext-xlswriter"
url "https://pecl.php.net/get/xlswriter-1.5.0.tgz?init=true"
sha256 "05698726e123e4c339ccaaab80f0a81705b9bc9c21377f0951c9ad51df4718c6"
head "https://github.com/viest/php-ext-xlswriter.git"
license "BSD-2-Clause"

bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
end

def install
args = %W[
--with-xlswriter
--enable-reader
]
Dir.chdir "xlswriter-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, *args
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end
33 changes: 33 additions & 0 deletions Formula/xlswriter@8.1.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# typed: false
# frozen_string_literal: true

require File.expand_path("../Abstract/abstract-php-extension", __dir__)

# Class for Xlswriter Extension
class XlswriterAT81 < AbstractPhpExtension
init
desc "Xlswriter PHP extension"
homepage "https://github.com/viest/php-ext-xlswriter"
url "https://pecl.php.net/get/xlswriter-1.5.0.tgz?init=true"
sha256 "05698726e123e4c339ccaaab80f0a81705b9bc9c21377f0951c9ad51df4718c6"
head "https://github.com/viest/php-ext-xlswriter.git"
license "BSD-2-Clause"

bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
end

def install
args = %W[
--with-xlswriter
--enable-reader
]
Dir.chdir "xlswriter-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, *args
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end
33 changes: 33 additions & 0 deletions Formula/xlswriter@8.2.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# typed: false
# frozen_string_literal: true

require File.expand_path("../Abstract/abstract-php-extension", __dir__)

# Class for Xlswriter Extension
class XlswriterAT82 < AbstractPhpExtension
init
desc "Xlswriter PHP extension"
homepage "https://github.com/viest/php-ext-xlswriter"
url "https://pecl.php.net/get/xlswriter-1.5.0.tgz?init=true"
sha256 "05698726e123e4c339ccaaab80f0a81705b9bc9c21377f0951c9ad51df4718c6"
head "https://github.com/viest/php-ext-xlswriter.git"
license "BSD-2-Clause"

bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
end

def install
args = %W[
--with-xlswriter
--enable-reader
]
Dir.chdir "xlswriter-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, *args
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end

0 comments on commit 8908b88

Please sign in to comment.