git: e29bb23d93c0 - main - devel/libpafe-ruby: fix build with Ruby 3.x

From: Hajimu UMEMOTO <ume_at_FreeBSD.org>
Date: Sun, 27 Mar 2022 02:51:51 UTC
The branch main has been updated by ume:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e29bb23d93c0fc35a9863ff78ca9cca78ac3d02c

commit e29bb23d93c0fc35a9863ff78ca9cca78ac3d02c
Author:     Hajimu UMEMOTO <ume@FreeBSD.org>
AuthorDate: 2022-03-27 02:39:00 +0000
Commit:     Hajimu UMEMOTO <ume@FreeBSD.org>
CommitDate: 2022-03-27 02:39:41 +0000

    devel/libpafe-ruby: fix build with Ruby 3.x
---
 devel/libpafe-ruby/files/patch-extconf.rb | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/devel/libpafe-ruby/files/patch-extconf.rb b/devel/libpafe-ruby/files/patch-extconf.rb
new file mode 100644
index 000000000000..dcb3ccf9ade7
--- /dev/null
+++ b/devel/libpafe-ruby/files/patch-extconf.rb
@@ -0,0 +1,11 @@
+--- extconf.rb.orig	2011-08-12 11:59:29 UTC
++++ extconf.rb
+@@ -1,7 +1,7 @@
+ # $Id: extconf.rb,v 1.3 2008-01-15 12:23:29 hito Exp $
+ require 'mkmf'
+ 
+-$CFLAGS = "-Wall -O2"
++$CFLAGS = "-Wall -O2 -fdeclspec"
+ 
+ have_header("libpafe/libpafe.h")
+ have_library("pafe", "pasori_open")