git: eaebf4c3b336 - main - databases/php-tarantool: Update to 0.4.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 08 Jul 2024 16:24:47 UTC
The branch main has been updated by sunpoet:

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

commit eaebf4c3b33644d899a541383ec410a42e613de6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-08 16:21:26 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-08 16:21:26 +0000

    databases/php-tarantool: Update to 0.4.0
    
    Changes:        https://github.com/tarantool/tarantool-php/releases
---
 databases/php-tarantool/Makefile                          |  2 +-
 databases/php-tarantool/distinfo                          |  6 +++---
 databases/php-tarantool/files/patch-src-php_tarantool.h   | 14 --------------
 databases/php-tarantool/files/patch-src-tarantool.c       | 15 ---------------
 .../php-tarantool/files/patch-src-tarantool_exception.c   | 13 -------------
 .../php-tarantool/files/patch-src-tarantool_msgpack.c     | 13 -------------
 .../php-tarantool/files/patch-src-tarantool_network.c     | 14 --------------
 7 files changed, 4 insertions(+), 73 deletions(-)

diff --git a/databases/php-tarantool/Makefile b/databases/php-tarantool/Makefile
index 7c6b5f05b87f..32c968b9f9c2 100644
--- a/databases/php-tarantool/Makefile
+++ b/databases/php-tarantool/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	tarantool
-PORTVERSION=	0.3.3
+PORTVERSION=	0.4.0
 CATEGORIES=	databases
 PKGNAMEPREFIX=	${PHP_PKGNAMEPREFIX}
 
diff --git a/databases/php-tarantool/distinfo b/databases/php-tarantool/distinfo
index 56cbe9888748..ac8dac6d617b 100644
--- a/databases/php-tarantool/distinfo
+++ b/databases/php-tarantool/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1594117169
-SHA256 (tarantool-tarantool-php-0.3.3_GH0.tar.gz) = 0fcfb6059e20389b823f49bbbbfcfdd232678ae8ed7c27e07278d565e6530d95
-SIZE (tarantool-tarantool-php-0.3.3_GH0.tar.gz) = 108601
+TIMESTAMP = 1720447666
+SHA256 (tarantool-tarantool-php-0.4.0_GH0.tar.gz) = 7fc54e2629328b03c46601fe5269bb4d78c596ef626c14f42c31dcb0d9156ed5
+SIZE (tarantool-tarantool-php-0.4.0_GH0.tar.gz) = 112068
diff --git a/databases/php-tarantool/files/patch-src-php_tarantool.h b/databases/php-tarantool/files/patch-src-php_tarantool.h
deleted file mode 100644
index c43486477a9c..000000000000
--- a/databases/php-tarantool/files/patch-src-php_tarantool.h
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/php_tarantool.h.orig	2020-06-29 22:41:13 UTC
-+++ src/php_tarantool.h
-@@ -180,7 +180,11 @@ PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_
- PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_ioexception(void);
- PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_clienterror(void);
- PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_parsingexception(void);
-+#if PHP_MAJOR_VERSION >= 8
-+PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_exception_base(int root);
-+#else
- PHP_TARANTOOL_API zend_class_entry *php_tarantool_get_exception_base(int root TSRMLS_DC);
-+#endif
- 
- #ifdef ZTS
- #  define TARANTOOL_G(v) TSRMG(tarantool_globals_id, zend_tarantool_globals *, v)
diff --git a/databases/php-tarantool/files/patch-src-tarantool.c b/databases/php-tarantool/files/patch-src-tarantool.c
deleted file mode 100644
index ef3aa0e55cc1..000000000000
--- a/databases/php-tarantool/files/patch-src-tarantool.c
+++ /dev/null
@@ -1,15 +0,0 @@
---- src/tarantool.c.orig	2020-06-29 22:41:13 UTC
-+++ src/tarantool.c
-@@ -14,6 +14,12 @@
- 
- #include "utils.h"
- 
-+#if PHP_MAJOR_VERSION >= 8
-+#define TSRMLS_CC
-+#define TSRMLS_DC
-+#define TSRMLS_FETCH()
-+#endif
-+
- static int __tarantool_authenticate(tarantool_connection *obj);
- static void tarantool_stream_close(tarantool_connection *obj);
- 
diff --git a/databases/php-tarantool/files/patch-src-tarantool_exception.c b/databases/php-tarantool/files/patch-src-tarantool_exception.c
deleted file mode 100644
index 177d221a3f68..000000000000
--- a/databases/php-tarantool/files/patch-src-tarantool_exception.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/tarantool_exception.c.orig	2020-06-29 22:41:13 UTC
-+++ src/tarantool_exception.c
-@@ -4,6 +4,10 @@
- 
- #include "tarantool_exception.h"
- 
-+#if PHP_MAJOR_VERSION >= 8
-+#define TSRMLS_DC
-+#endif
-+
- zend_class_entry *TarantoolException_ptr;
- zend_class_entry *TarantoolIOException_ptr;
- zend_class_entry *TarantoolClientError_ptr;
diff --git a/databases/php-tarantool/files/patch-src-tarantool_msgpack.c b/databases/php-tarantool/files/patch-src-tarantool_msgpack.c
deleted file mode 100644
index ad47e883931a..000000000000
--- a/databases/php-tarantool/files/patch-src-tarantool_msgpack.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/tarantool_msgpack.c.orig	2020-06-29 22:41:13 UTC
-+++ src/tarantool_msgpack.c
-@@ -5,6 +5,10 @@
- 
- #include "third_party/msgpuck.h"
- 
-+#if PHP_MAJOR_VERSION >= 8
-+#define TSRMLS_FETCH()
-+#endif
-+
- #ifndef    HASH_KEY_NON_EXISTENT
- #define    HASH_KEY_NON_EXISTENT HASH_KEY_NON_EXISTANT
- #endif  /* HASH_KEY_NON_EXISTENT */
diff --git a/databases/php-tarantool/files/patch-src-tarantool_network.c b/databases/php-tarantool/files/patch-src-tarantool_network.c
deleted file mode 100644
index acacf9eb6def..000000000000
--- a/databases/php-tarantool/files/patch-src-tarantool_network.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/tarantool_network.c.orig	2020-06-29 22:41:13 UTC
-+++ src/tarantool_network.c
-@@ -11,6 +11,11 @@
- #include "php_tarantool.h"
- #include "tarantool_network.h"
- 
-+#if PHP_MAJOR_VERSION >= 8
-+#define TSRMLS_CC
-+#define TSRMLS_FETCH()
-+#endif
-+
- void double_to_tv(double tm, struct timeval *tv) {
- 	tv->tv_sec = floor(tm);
- 	tv->tv_usec = floor((tm - floor(tm)) * pow(10, 6));