git: aaefcdbbf274 - main - databases/lua-xapian: Update to 1.4.22

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Mar 2023 19:25:22 UTC
The branch main has been updated by sunpoet:

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

commit aaefcdbbf27406e24821c73e85cf1a85af3d8097
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:41:00 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:20:12 +0000

    databases/lua-xapian: Update to 1.4.22
    
    - Convert REINPLACE_CMD to patch file
    
    Changes:        https://trac.xapian.org/wiki/ReleaseOverview
---
 databases/lua-xapian/Makefile              |  5 +----
 databases/lua-xapian/distinfo              |  6 +++---
 databases/lua-xapian/files/patch-configure | 11 +++++++++++
 3 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/databases/lua-xapian/Makefile b/databases/lua-xapian/Makefile
index 1a8e77b408f7..7d66fb844574 100644
--- a/databases/lua-xapian/Makefile
+++ b/databases/lua-xapian/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	xapian
-PORTVERSION=	1.4.21
+PORTVERSION=	1.4.22
 DISTVERSIONPREFIX=	bindings-
 CATEGORIES=	databases
 MASTER_SITES=	https://oligarchy.co.uk/xapian/${PORTVERSION}/ \
@@ -45,7 +45,4 @@ PORTSCOUT=	limitw:1,even
 
 OPTIONS_DEFINE=	DOCS
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure
-
 .include <bsd.port.mk>
diff --git a/databases/lua-xapian/distinfo b/databases/lua-xapian/distinfo
index 3cdf88e2bb4a..8bc5c2512d5e 100644
--- a/databases/lua-xapian/distinfo
+++ b/databases/lua-xapian/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1664767848
-SHA256 (xapian-bindings-1.4.21.tar.xz) = e7bf1e4982b91f841289d19214021d88371ca2a6c7304df59049d7da78b83ced
-SIZE (xapian-bindings-1.4.21.tar.xz) = 1151620
+TIMESTAMP = 1677771069
+SHA256 (xapian-bindings-1.4.22.tar.xz) = 6b5454833ac52a3e32c0bb3a7290a5a2b50488d8918f2a45269557e4de9a31e5
+SIZE (xapian-bindings-1.4.22.tar.xz) = 1074840
diff --git a/databases/lua-xapian/files/patch-configure b/databases/lua-xapian/files/patch-configure
new file mode 100644
index 000000000000..6b9dce2bb21b
--- /dev/null
+++ b/databases/lua-xapian/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig	2023-02-02 01:01:44 UTC
++++ configure
+@@ -21048,7 +21048,7 @@ SWIG_CXXFLAGS=
+ if test yes = "$GXX" ; then
+                     SWIG_CXXFLAGS="-fno-strict-aliasing"
+ 
+-              XAPIAN_LIBS="$XAPIAN_LIBS -lstdc++"
++              XAPIAN_LIBS="$XAPIAN_LIBS "
+ 
+ 
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext