<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a91801d191a394c51dab2ce9d8b204171e442210">https://github.com/macports/macports-ports/commit/a91801d191a394c51dab2ce9d8b204171e442210</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a91801d191a394c51dab2ce9d8b204171e442210
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Mon Apr 15 13:10:01 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> rb-bzip2-ffi: new port
</span>---
ruby/rb-bzip2-ffi/Portfile | 30 ++++++++++++++++++++++++++
ruby/rb-bzip2-ffi/files/patch-gemspec-3.1.diff | 13 +++++++++++
ruby/rb-bzip2-ffi/files/patch-gemspec-3.2.diff | 9 ++++++++
ruby/rb-bzip2-ffi/files/patch-gemspec-3.3.diff | 9 ++++++++
4 files changed, 61 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/ruby/rb-bzip2-ffi/Portfile b/ruby/rb-bzip2-ffi/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..43964fcdbb9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/ruby/rb-bzip2-ffi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,30 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup ruby 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ruby.branches 3.3 3.2 3.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ruby.setup bzip2-ffi 1.1.1 gem {} rubygems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append archivers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms any
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Ruby bindings for libbz2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Ruby library that reads and writes bzip2-compressed data \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ as a stream using FFI bindings for libbz2.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://github.com/philr/bzip2-ffi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 15dbc847d46e57371c3068896f533153c0f933b8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 ebffb57a74756aeeb16f957166108a6fd90df8cbcd70efcea85bb6c828ea4acb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 218112
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${name} ne ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:bzip2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:rb${ruby.suffix}-ffi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${destroot}${ruby.gemdir}/specifications \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "/usr/bin/patch -p0 < ${filespath}/patch-gemspec-${ruby.branch}.diff"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/ruby/rb-bzip2-ffi/files/patch-gemspec-3.1.diff b/ruby/rb-bzip2-ffi/files/patch-gemspec-3.1.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ce11d42c828
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/ruby/rb-bzip2-ffi/files/patch-gemspec-3.1.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- bzip2-ffi-1.1.1.gemspec
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ bzip2-ffi-1.1.1.gemspec 2024-04-15 13:07:45
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -30,8 +30,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if s.respond_to? :add_runtime_dependency then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- s.add_runtime_dependency(%q<ffi>.freeze, ["~> 1.0"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ s.add_runtime_dependency(%q<ffi>.freeze, [">= 1.0"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- s.add_dependency(%q<ffi>.freeze, ["~> 1.0"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ s.add_dependency(%q<ffi>.freeze, [">= 1.0"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/ruby/rb-bzip2-ffi/files/patch-gemspec-3.2.diff b/ruby/rb-bzip2-ffi/files/patch-gemspec-3.2.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c4799bf9c6f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/ruby/rb-bzip2-ffi/files/patch-gemspec-3.2.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- bzip2-ffi-1.1.1.gemspec
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ bzip2-ffi-1.1.1.gemspec 2024-04-15 13:04:49
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -27,5 +27,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ s.specification_version = 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- s.add_runtime_dependency(%q<ffi>.freeze, ["~> 1.0"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ s.add_runtime_dependency(%q<ffi>.freeze, [">= 1.0"])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/ruby/rb-bzip2-ffi/files/patch-gemspec-3.3.diff b/ruby/rb-bzip2-ffi/files/patch-gemspec-3.3.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..50989a78c59
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/ruby/rb-bzip2-ffi/files/patch-gemspec-3.3.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- bzip2-ffi-1.1.1.gemspec
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ bzip2-ffi-1.1.1.gemspec 2024-04-15 13:06:24
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -27,5 +27,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ s.specification_version = 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- s.add_runtime_dependency(%q<ffi>.freeze, ["~> 1.0".freeze])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ s.add_runtime_dependency(%q<ffi>.freeze, [">= 1.0".freeze])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span></pre><pre style='margin:0'>
</pre>