git: 0c6eb36c3df8 - main - devel/php-mustache: Move devel/pecl-mustache to devel/php-mustache
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 12 Sep 2026 11:32:11 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0c6eb36c3df83ee30f1e028c9145f830f3a6a773
commit 0c6eb36c3df83ee30f1e028c9145f830f3a6a773
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-12 10:55:44 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-12 11:10:46 +0000
devel/php-mustache: Move devel/pecl-mustache to devel/php-mustache
- Update to 0.10.0
PECL is deprecated.
Changes: https://github.com/jbboehr/php-mustache/blob/master/CHANGELOG.md
---
MOVED | 1 +
devel/Makefile | 2 +-
devel/pecl-mustache/Makefile | 20 --------------------
devel/pecl-mustache/distinfo | 3 ---
devel/pecl-mustache/files/patch-config.m4 | 10 ----------
devel/pecl-mustache/files/patch-php85 | 11 -----------
devel/php-mustache/Makefile | 24 ++++++++++++++++++++++++
devel/php-mustache/distinfo | 3 +++
devel/php-mustache/files/patch-config.m4 | 10 ++++++++++
devel/{pecl-mustache => php-mustache}/pkg-descr | 0
10 files changed, 39 insertions(+), 45 deletions(-)
diff --git a/MOVED b/MOVED
index 688609a579f0..03483ca50884 100644
--- a/MOVED
+++ b/MOVED
@@ -5598,3 +5598,4 @@ sysutils/intel-nvmupdate-e830|sysutils/intel-nvmupdate-e830-e835|2026-09-03|Rena
sysutils/mprocs|sysutils/dekit|2026-09-05|Upstream renamed
www/py-beautifulsoup|www/py-beautifulsoup4|2026-09-06|Renamed to match upstream PyPI package name
devel/libheinz|devel/heinz|2026-09-12|Project was renamed upstream from libheinz to heinz
+devel/pecl-mustache|devel/php-mustache|2026-09-12|PECL is deprecated. Migrate devel/pecl-mustache to devel/php-mustache
diff --git a/devel/Makefile b/devel/Makefile
index 86ac71f3de36..f6fc3e638210 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4319,7 +4319,6 @@
SUBDIR += pecl-inotify
SUBDIR += pecl-json_post
SUBDIR += pecl-msgpack
- SUBDIR += pecl-mustache
SUBDIR += pecl-opentelemetry
SUBDIR += pecl-protobuf
SUBDIR += pecl-psr
@@ -4350,6 +4349,7 @@
SUBDIR += php-ice37
SUBDIR += php-libawl
SUBDIR += php-maxminddb
+ SUBDIR += php-mustache
SUBDIR += php-pcov
SUBDIR += php-pie
SUBDIR += php-raphf
diff --git a/devel/pecl-mustache/Makefile b/devel/pecl-mustache/Makefile
deleted file mode 100644
index 9f3d2b3af2b4..000000000000
--- a/devel/pecl-mustache/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-PORTNAME= mustache
-PORTVERSION= 0.9.3
-CATEGORIES= devel
-
-MAINTAINER= sunpoet@FreeBSD.org
-COMMENT= Mustache templating language
-WWW= https://pecl.php.net/package/mustache \
- https://github.com/jbboehr/php-mustache
-
-LICENSE= MIT
-LICENSE_FILE= ${WRKSRC}/LICENSE.md
-
-LIB_DEPENDS= libmustache.so:devel/libmustache
-
-USES= compiler:c++11-lang php:pecl
-IGNORE_WITH_PHP= 86
-
-USE_CXXSTD= c++11
-
-.include <bsd.port.mk>
diff --git a/devel/pecl-mustache/distinfo b/devel/pecl-mustache/distinfo
deleted file mode 100644
index 4bb237f164c4..000000000000
--- a/devel/pecl-mustache/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1674589704
-SHA256 (PECL/mustache-0.9.3.tgz) = a517f5d93cc647b1ea65465deb4310c7ada2556de222faa7a4097d11e1433e9d
-SIZE (PECL/mustache-0.9.3.tgz) = 40870
diff --git a/devel/pecl-mustache/files/patch-config.m4 b/devel/pecl-mustache/files/patch-config.m4
deleted file mode 100644
index 899588cbd0ec..000000000000
--- a/devel/pecl-mustache/files/patch-config.m4
+++ /dev/null
@@ -1,10 +0,0 @@
---- config.m4.orig 2020-11-13 03:48:50 UTC
-+++ config.m4
-@@ -70,7 +70,6 @@ if test "$PHP_MUSTACHE" != "no"; then
-
- AC_DEFINE(HAVE_MUSTACHE, 1, [Whether you have mustache support])
- PHP_REQUIRE_CXX()
-- PHP_ADD_LIBRARY(stdc++, 1, MUSTACHE_SHARED_LIBADD)
-
- PHP_MUSTACHE_ADD_SOURCES([
- php_mustache.cpp
diff --git a/devel/pecl-mustache/files/patch-php85 b/devel/pecl-mustache/files/patch-php85
deleted file mode 100644
index 9b8eba67e88e..000000000000
--- a/devel/pecl-mustache/files/patch-php85
+++ /dev/null
@@ -1,11 +0,0 @@
---- mustache_exceptions.cpp.orig 2022-11-26 22:02:48 UTC
-+++ mustache_exceptions.cpp
-@@ -18,7 +18,7 @@ PHP_MINIT_FUNCTION(mustache_exceptions)
- PHP_MINIT_FUNCTION(mustache_exceptions)
- {
- try {
-- zend_class_entry * exception_ce = zend_exception_get_default();
-+ zend_class_entry * exception_ce = zend_ce_exception;
-
- // MustacheException
- zend_class_entry mustache_exception_ce;
diff --git a/devel/php-mustache/Makefile b/devel/php-mustache/Makefile
new file mode 100644
index 000000000000..f8e272fd7608
--- /dev/null
+++ b/devel/php-mustache/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= mustache
+PORTVERSION= 0.10.0
+DISTVERSIONPREFIX= v
+CATEGORIES= devel
+PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Mustache templating language
+WWW= https://github.com/jbboehr/php-mustache
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+LIB_DEPENDS= libmustache.so:devel/libmustache
+
+USES= compiler:c++17-lang php:ext
+
+USE_CXXSTD= c++17
+
+USE_GITHUB= yes
+GH_ACCOUNT= jbboehr
+GH_PROJECT= php-mustache
+
+.include <bsd.port.mk>
diff --git a/devel/php-mustache/distinfo b/devel/php-mustache/distinfo
new file mode 100644
index 000000000000..b7fb95a9c6fb
--- /dev/null
+++ b/devel/php-mustache/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1789128264
+SHA256 (jbboehr-php-mustache-v0.10.0_GH0.tar.gz) = d7680543f9e2f37d985bba791e2021ef40db7fcc1fad28a64a28636675d43466
+SIZE (jbboehr-php-mustache-v0.10.0_GH0.tar.gz) = 157121
diff --git a/devel/php-mustache/files/patch-config.m4 b/devel/php-mustache/files/patch-config.m4
new file mode 100644
index 000000000000..2f46c61fba6a
--- /dev/null
+++ b/devel/php-mustache/files/patch-config.m4
@@ -0,0 +1,10 @@
+--- config.m4.orig 2026-09-08 02:56:58 UTC
++++ config.m4
+@@ -91,7 +91,6 @@ if test "$PHP_MUSTACHE" != "no"; then
+ PHP_REQUIRE_CXX()
+ PHP_CXX_COMPILE_STDCXX(17, mandatory, PHP_MUSTACHE_STDCXX)
+ PHP_MUSTACHE_ADD_FLAGS([$PHP_MUSTACHE_STDCXX])
+- PHP_ADD_LIBRARY(stdc++, 1, MUSTACHE_SHARED_LIBADD)
+
+ AC_LANG_PUSH([C++])
+ PHP_MUSTACHE_SAVED_CXXFLAGS="$CXXFLAGS"
diff --git a/devel/pecl-mustache/pkg-descr b/devel/php-mustache/pkg-descr
similarity index 100%
rename from devel/pecl-mustache/pkg-descr
rename to devel/php-mustache/pkg-descr