*/*: Cleanup php NOOP codes

There are some php modules which are by default installed and/or
statically linked in the default PHP installations and has no effect if
mentioned through USE_PHP. Remove those codes.

Also add comment for these cases like which extensions are required for
future references.

Approved by:	portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman 2023-11-12 18:07:33 +01:00
parent de9f4c666a
commit 00b411fc8b
8 changed files with 19 additions and 13 deletions

View file

@ -17,7 +17,8 @@ RUN_DEPENDS= icinga-php-library${PHP_PKGNAMESUFFIX}>=0.9:net-mgmt/icinga-php-lib
icingaweb2${PHP_PKGNAMESUFFIX}>=2.9:net-mgmt/icingaweb2
USES= php:web,flavors shebangfix
USE_PHP= curl dom json xml
# php json extension is required but it's statically linked in default php
USE_PHP= curl dom xml
USE_GITHUB= yes
GH_ACCOUNT= icinga

View file

@ -23,8 +23,9 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pymysql>0:databases/py-pymysql@${PY_FLAVOR}
USES= cpe php python shebangfix
USE_GITHUB= yes
USE_PHP= ctype curl dom fileinfo filter gd hash json ldap mbstring \
mysqli openssl pdo pdo_mysql phar posix session simplexml snmp \
# php hash/json/openssl extension is required but it's statically linked in default php
USE_PHP= ctype curl dom fileinfo filter gd ldap mbstring \
mysqli pdo pdo_mysql phar posix session simplexml snmp \
sockets tokenizer xml xmlwriter zip zlib
USE_RC_SUBR= librenms

View file

@ -13,8 +13,9 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/doc/COPYING
USES= cpe php:web,flavors zip
USE_PHP= ctype dom exif filter gd hash iconv json mbstring mysqli \
openssl pcre pdo session simplexml sodium spl tokenizer \
# php hash/json/openssl/pcre/spl extension is required but it's statically linked in default php
USE_PHP= ctype dom exif filter gd iconv mbstring mysqli \
pdo session simplexml sodium tokenizer \
xml zip zlib
# sodium is needed for randomisation stuff (prefferred option),
# could be replaced by mcrypt

View file

@ -11,8 +11,9 @@ LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= php zip
USE_PHP= curl ctype dom filter gd imap json mysqli pcre pdo posix \
session spl tokenizer xml mbstring zip zlib
# php json/pcre/spl extension is required but it's statically linked in default php
USE_PHP= curl ctype dom filter gd imap mysqli pdo posix \
session tokenizer xml mbstring zip zlib
NO_BUILD= yes
WRKSRC= ${WRKDIR}/SuiteCRM-${PORTVERSION}

View file

@ -38,7 +38,8 @@ WANT_PGSQL= server
.endif
.if ${PORT_OPTIONS:MPHP}
USE_PHP+= curl bcmath pdo mcrypt session pgsql spl dom xmlrpc ctype simplexml soap
# php spl extension is required but it's statically linked in default php
USE_PHP+= curl bcmath pdo mcrypt session pgsql dom xmlrpc ctype simplexml soap
. if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pdo_pgsql pgsql
. endif

View file

@ -16,8 +16,8 @@ USES= gettext-tools php:cli,web shebangfix
USE_GITLAB= yes
GL_SITE= https://gitlab.tt-rss.org
GL_TAGNAME= c779e2ba0d71942579dd27ccdcad0295bd06e45f
USE_PHP= ctype dom exif fileinfo filter iconv intl json mbstring openssl \
# phe json/openssl extension is required but it's statically linked in default php
USE_PHP= ctype dom exif fileinfo filter iconv intl mbstring \
pcntl pdo phar posix session simplexml sockets tokenizer xml \
xmlwriter zip
USE_RC_SUBR= ttrssd

View file

@ -16,8 +16,9 @@ IGNORE_WITH_MYSQL= 57
IGNORE_WITH_PHP= 80 83
USES= cpe php:web,flavors shebangfix
# php openssl extension is required but it's statically linked in default php
USE_PHP= ctype dom fileinfo filter gd intl \
mbstring openssl pdo session simplexml \
mbstring pdo session simplexml \
tokenizer xml zip zlib
WRKSRC= ${WRKDIR}/${PORTNAME}_src-${PORTVERSION}

View file

@ -11,8 +11,8 @@ WWW= https://webtrees.net/
LICENSE= GPLv3+
USES= cpe php shebangfix zip
USE_PHP= calendar curl dom filter gd iconv pcre pdo_mysql session xml
# php pcre extension is required but it's statically linked in default php
USE_PHP= calendar curl dom filter gd iconv pdo_mysql session xml
SHEBANG_FILES= webtrees/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php