aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-07-28 11:37:07 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-07-28 13:15:17 +0000
commit5f5ed587c5dc14429a1ddae9d31a0252e9864d57 (patch)
tree96b428bca59b7408262804fae5027672a99d738d
parent42db2c39e566955903a9176e0a4c4c7589d5aaca (diff)
textproc/pecl-pspell: New Port
pspell extension has been removed from php84 onwards and is available as a pecl community module.
-rw-r--r--Mk/Uses/php.mk12
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/pecl-pspell/Makefile19
-rw-r--r--textproc/pecl-pspell/distinfo3
-rw-r--r--textproc/pecl-pspell/pkg-descr2
5 files changed, 33 insertions, 4 deletions
diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk
index 370c736019da..12992b3e2794 100644
--- a/Mk/Uses/php.mk
+++ b/Mk/Uses/php.mk
@@ -378,14 +378,14 @@ _USE_PHP_ALL= bcmath bitset bz2 calendar ctype curl dba dom \
memcache memcached mysqli odbc opcache \
openssl pcntl pcre pdo pdo_dblib pdo_firebird pdo_mysql \
pdo_odbc pdo_pgsql pdo_sqlite phar pgsql posix \
- radius random readline redis session shmop simplexml snmp \
+ pspell radius random readline redis session shmop simplexml snmp \
soap sockets sodium spl sqlite3 sysvmsg sysvsem sysvshm \
tidy tokenizer xml xmlreader xmlrpc xmlwriter xsl zephir_parser \
zip zlib
# version specific components
-_USE_PHP_VER81= ${_USE_PHP_ALL} imap pspell
-_USE_PHP_VER82= ${_USE_PHP_ALL} imap pspell
-_USE_PHP_VER83= ${_USE_PHP_ALL} imap pspell
+_USE_PHP_VER81= ${_USE_PHP_ALL} imap
+_USE_PHP_VER82= ${_USE_PHP_ALL} imap
+_USE_PHP_VER83= ${_USE_PHP_ALL} imap
_USE_PHP_VER84= ${_USE_PHP_ALL}
bcmath_DEPENDS= math/php${PHP_VER}-bcmath
@@ -428,7 +428,11 @@ pdo_sqlite_DEPENDS= databases/php${PHP_VER}-pdo_sqlite
pgsql_DEPENDS= databases/php${PHP_VER}-pgsql
phar_DEPENDS= archivers/php${PHP_VER}-phar
posix_DEPENDS= sysutils/php${PHP_VER}-posix
+. if ${PHP_VER} <= 83
pspell_DEPENDS= textproc/php${PHP_VER}-pspell
+. else
+pspell_DEPENDS= textproc/pecl-pspell${PHP_FLAVOR}
+. endif
radius_DEPENDS= net/pecl-radius@${PHP_FLAVOR}
readline_DEPENDS= devel/php${PHP_VER}-readline
redis_DEPENDS= databases/pecl-redis@${PHP_FLAVOR}
diff --git a/textproc/Makefile b/textproc/Makefile
index 61eab8f480ee..7cfb3d8dc297 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1250,6 +1250,7 @@
SUBDIR += pear-XML_HTMLSax
SUBDIR += pear-XML_Wddx
SUBDIR += pear-YAML
+ SUBDIR += pecl-pspell
SUBDIR += pecl-xdiff2
SUBDIR += pecl-yaml
SUBDIR += pecl-zephir_parser
diff --git a/textproc/pecl-pspell/Makefile b/textproc/pecl-pspell/Makefile
new file mode 100644
index 000000000000..9e6dd5ff9197
--- /dev/null
+++ b/textproc/pecl-pspell/Makefile
@@ -0,0 +1,19 @@
+PORTNAME= pspell
+DISTVERSION= 1.0.1
+CATEGORIES= textproc
+
+MAINTAINER= bofh@FreeBSD.org
+COMMENT= Shared community extension for pspell
+WWW= https://github.com/php/pecl-text-pspell
+
+LICENSE= PHP301
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libaspell.so:textproc/aspell
+
+USES= php:pecl
+IGNORE_WITH_PHP= 81 82 83
+
+TEST_TARGET= test
+
+.include <bsd.port.mk>
diff --git a/textproc/pecl-pspell/distinfo b/textproc/pecl-pspell/distinfo
new file mode 100644
index 000000000000..dad94f326696
--- /dev/null
+++ b/textproc/pecl-pspell/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722163315
+SHA256 (PECL/pspell-1.0.1.tgz) = 585441202e3a53e7b5190b38c2f8438d37b53845448d28af5f904cf65c56c02f
+SIZE (PECL/pspell-1.0.1.tgz) = 10850
diff --git a/textproc/pecl-pspell/pkg-descr b/textproc/pecl-pspell/pkg-descr
new file mode 100644
index 000000000000..af1f0d62210c
--- /dev/null
+++ b/textproc/pecl-pspell/pkg-descr
@@ -0,0 +1,2 @@
+This extension allows you to check the spelling of a word and offer
+suggestions using aspell.