php-psr: Add package

This extension provides the accepted PSR interfaces, so they can be used
in an extension.

WWW: https://github.com/jbboehr/php-psr
This commit is contained in:
Juraj Lutter 2020-10-09 21:00:33 +00:00
parent 00c27ed648
commit 2021cae1bb
6 changed files with 52 additions and 0 deletions

View File

@ -2907,6 +2907,7 @@ SUBDIR+= php-libawl-git
SUBDIR+= php-malware-finder
SUBDIR+= php-msgpack
SUBDIR+= php-phalcon4
SUBDIR+= php-psr
SUBDIR+= php-redis5
SUBDIR+= php-snuffleupagus
SUBDIR+= php-tclink

2
php-psr/DESCR Normal file
View File

@ -0,0 +1,2 @@
This extension provides the accepted PSR interfaces, so they can be used in an
extension.

25
php-psr/Makefile Normal file
View File

@ -0,0 +1,25 @@
# $NetBSD$
MODNAME= psr
PECL_VERSION= 1.0.0
CATEGORIES= www
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://pecl.php.net/package/psr
COMMENT= This extension provides the accepted PSR interfaces, so they can be used in an extension
LICENSE= 2-clause-bsd
PHP_VERSIONS_ACCEPTED= 72 73 74
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
INSTALLATION_DIRS+= include/php/ext/psr
PLIST_SRC+= PLIST
post-install:
${INSTALL_DATA} ${WRKSRC}/php_psr.h \
${DESTDIR}${PREFIX}/include/php/ext/psr
.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"

4
php-psr/PLIST Normal file
View File

@ -0,0 +1,4 @@
@comment $NetBSD$
include/php/ext/psr/php_psr.h
lib/php/20191128/psr.so
share/examples/php/psr.ini

14
php-psr/buildlink3.mk Normal file
View File

@ -0,0 +1,14 @@
# $NetBSD$
.include "../../lang/php/phpversion.mk"
BUILDLINK_TREE+= ${PHP_PKG_PREFIX}-psr
.if !defined(${PHP_PKG_PREFIX}_PSR_BUILDLINK3_MK)
${PHP_PKG_PREFIX}_PSR_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.${PHP_PKG_PREFIX}-psr+= ${PHP_PKG_PREFIX}-psr>=1.0.0
BUILDLINK_PKGSRCDIR.${PHP_PKG_PREFIX}-psr?= ../../www/php-psr
.endif # ${PHP_PKG_PREFIX}_PSR_BUILDLINK3_MK
BUILDLINK_TREE+= -${PHP_PKG_PREFIX}-psr

6
php-psr/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2016/03/12 09:12:52 fhajny Exp $
SHA1 (php-psr/psr-1.0.0.tgz) = b2a936d77561b71d9166c0aafcdb4ce949ae1c93
RMD160 (php-psr/psr-1.0.0.tgz) = 610d47a5f78dc046a5586416ac8812fd98da92cf
SHA512 (php-psr/psr-1.0.0.tgz) = 762278e922c03102dddb39b7997c70803c2105bffa231db20da8c246e10788803765068bbd859f2b7cad1e4fb64e91d191be55917dc14af49c8cd1211d007649
Size (php-psr/psr-1.0.0.tgz) = 27096 bytes