pecl-phar-2.0.0, support for PHP archives (.phar)

This commit is contained in:
jolan 2009-08-15 01:20:51 +00:00
parent 55c1a1a17a
commit 722cf3c5b7
6 changed files with 85 additions and 0 deletions

49
www/pecl-phar/Makefile Normal file
View File

@ -0,0 +1,49 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/08/15 01:20:51 jolan Exp $
SHARED_ONLY= Yes
COMMENT= support for PHP archives (.phar)
DISTNAME= phar-2.0.0
PKGNAME= pecl-${DISTNAME}
EXTRACT_SUFX= .tgz
MASTER_SITES= http://pecl.php.net/get/
CATEGORIES= www
HOMEPAGE= http://pecl.php.net/package/phar/
# PHP License
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
AUTOCONF_VERSION= 2.62
AUTOMAKE_VERSION= 1.9
BUILD_DEPENDS= :pear-*:www/pear \
${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
RUN_DEPENDS= :php5-core-*:www/php5/core \
:php5-bz2-*:www/php5/extensions,-bz2
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
AUTOCONF_VERSION=${AUTOCONF_VERSION}
PREFIX= /var/www
DESTDIRNAME= INSTALL_ROOT
NO_REGRESS= Yes
USE_LIBTOOL= Yes
LIBTOOL_FLAGS+= --tag=disable-static
pre-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/phpize
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/conf/php5.sample
@echo "extension=phar.so" > \
${PREFIX}/conf/php5.sample/phar.ini
.include <bsd.port.mk>

5
www/pecl-phar/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (phar-2.0.0.tgz) = /boQQyIWwiwZz4qGs95WuQ==
RMD160 (phar-2.0.0.tgz) = seQl/qCd6BHH0Y5aaWW0pbom+RE=
SHA1 (phar-2.0.0.tgz) = GmTyWPj4OyqsjtV0mum464J3yNA=
SHA256 (phar-2.0.0.tgz) = HZ+lXB0hTTQq8VkHq++BZa/aRg+SW2NKLHA7/+Vmepc=
SIZE (phar-2.0.0.tgz) = 450821

1
www/pecl-phar/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
pecl-phar is an extension version of PEAR's PHP_Archive package.

10
www/pecl-phar/pkg/MESSAGE Normal file
View File

@ -0,0 +1,10 @@
You can enable this module by creating a symbolic
link from ${PREFIX}/conf/php5.sample/phar.ini to
${PREFIX}/conf/php5/phar.ini.
ln -fs ${PREFIX}/conf/php5.sample/phar.ini \
${PREFIX}/conf/php5/phar.ini
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,
you should fully stop and then restart the server.

11
www/pecl-phar/pkg/PLIST Normal file
View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/08/15 01:20:51 jolan Exp $
@comment conf/php5.sample/
@group bin
conf/php5.sample/phar.ini
@comment lib/
@comment lib/php/
@comment lib/php/modules/
@owner root
lib/php/modules/phar.so
@owner
@group

View File

@ -0,0 +1,9 @@
You can disable this module by removing the
${PREFIX}/conf/php5/phar.ini symbolic link by
issuing the following command:
rm -f ${PREFIX}/conf/php5/phar.ini
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,
you should fully stop and then restart the server.