- Update to 0.2.2

- Add LICENSE
- Use new LIB_DEPENDS syntax
- Convert to STAGEDIR

PR:		ports/181417
Submitted by:	Gea-Suan Lin (maintainer)
This commit is contained in:
Antoine Brodin 2013-10-30 20:55:19 +00:00
parent 08b53ff575
commit a1ada3ecd7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332171
3 changed files with 8 additions and 21 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= zookeeper
PORTVERSION= 0.2.1
PORTVERSION= 0.2.2
CATEGORIES= devel
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
@ -12,15 +12,16 @@ DIST_SUBDIR= PECL
MAINTAINER= gslin@gslin.org
COMMENT= PHP extension for interfacing with Apache ZooKeeper
LIB_DEPENDS= zookeeper_st:${PORTSDIR}/devel/zookeeper
LICENSE= PHP301
LIB_DEPENDS= libzookeeper_mt.so:${PORTSDIR}/devel/zookeeper
USE_PHP= session
USE_PHP_BUILD= session
USE_PHPEXT= yes
NO_STAGE= yes
post-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/zookeeper-api.php ${DATADIR}/
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/zookeeper-api.php ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (PECL/zookeeper-0.2.1.tgz) = 17352a58a216273cb0883eddd0a8bbcefb00a73817a99649f42baea128f398d6
SIZE (PECL/zookeeper-0.2.1.tgz) = 17974
SHA256 (PECL/zookeeper-0.2.2.tgz) = ce657910472b0880e2f9dd0c73558a94a15c2cfc0208ba305dcc02e27cb34f78
SIZE (PECL/zookeeper-0.2.2.tgz) = 19905

View file

@ -1,14 +0,0 @@
--- php_zookeeper.c.orig 2012-01-14 06:08:49.000000000 +0800
+++ php_zookeeper.c 2013-01-12 16:24:08.000000000 +0800
@@ -715,7 +715,11 @@
i_obj = ecalloc(1, sizeof(*i_obj));
zend_object_std_init( &i_obj->zo, ce TSRMLS_CC );
+#if PHP_VERSION_ID < 50399
zend_hash_copy(i_obj->zo.properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
+#else
+ object_properties_init(&(i_obj->zo), ce);
+#endif
retval.handle = zend_objects_store_put(i_obj, (zend_objects_store_dtor_t)zend_objects_destroy_object, (zend_objects_free_object_storage_t)php_zk_free_storage, NULL TSRMLS_CC);
retval.handlers = zend_get_std_object_handlers();