aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorglarkin <glarkin@FreeBSD.org>2010-04-13 04:30:49 +0800
committerglarkin <glarkin@FreeBSD.org>2010-04-13 04:30:49 +0800
commit0f82c05259e16d112c8a500746bb83332891971e (patch)
tree7be04d308c36951db4fec18136d5f0094bb14a08 /databases
parente65f5be362596d3dc52a97ae56017ce66b2fb7ba (diff)
downloadfreebsd-ports-gnome-0f82c05259e16d112c8a500746bb83332891971e.tar.gz
freebsd-ports-gnome-0f82c05259e16d112c8a500746bb83332891971e.tar.zst
freebsd-ports-gnome-0f82c05259e16d112c8a500746bb83332891971e.zip
- Unbreak after recent PHP 5.3.2 update
- Upgrade to 0.5 - Adopt the port
Diffstat (limited to 'databases')
-rw-r--r--databases/php-sqlite3/Makefile7
-rw-r--r--databases/php-sqlite3/distinfo6
-rw-r--r--databases/php-sqlite3/files/patch-php_sqlite3.c20
3 files changed, 25 insertions, 8 deletions
diff --git a/databases/php-sqlite3/Makefile b/databases/php-sqlite3/Makefile
index ce830ea5dcf4..fc4cf56e3758 100644
--- a/databases/php-sqlite3/Makefile
+++ b/databases/php-sqlite3/Makefile
@@ -6,20 +6,17 @@
#
PORTNAME= sqlite3
-PORTVERSION= 0.4
+PORTVERSION= 0.5
CATEGORIES= databases
MASTER_SITES= SF/php-${PORTNAME}/source%20code/release%20${PORTVERSION}
PKGNAMEPREFIX= php-
EXTRACT_SUFX= .tgz
-#DISTFILES= sqlite3-0.4.tgz
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= glarkin@FreeBSD.org
COMMENT= A port for the PHP sqlite3 extension
BUILD_DEPENDS= sqlite3>=3.0:${PORTSDIR}/databases/sqlite3
-BROKEN= does not build with php 5.3
-
CONFIGURE_ARGS= --with-sqlite3=${LOCALBASE}
USE_PHP= yes
USE_PHPIZE= yes
diff --git a/databases/php-sqlite3/distinfo b/databases/php-sqlite3/distinfo
index 0299b43c5176..f17e75bd1b3c 100644
--- a/databases/php-sqlite3/distinfo
+++ b/databases/php-sqlite3/distinfo
@@ -1,3 +1,3 @@
-MD5 (sqlite3-0.4.tgz) = fc15ace3f5fd0aac0186745d6cff8a70
-SHA256 (sqlite3-0.4.tgz) = e5a14bc18d29aff39e8b831f30aa28384ca60f0df3edae9ce3173dc69c27ab8d
-SIZE (sqlite3-0.4.tgz) = 14005
+MD5 (sqlite3-0.5.tgz) = bf3db9ee02088f77cedda99f6916dd07
+SHA256 (sqlite3-0.5.tgz) = 3b733ac9212f0484777857df33a9a22d1fcd2dcbc447f5ac38b57f26ea065707
+SIZE (sqlite3-0.5.tgz) = 14106
diff --git a/databases/php-sqlite3/files/patch-php_sqlite3.c b/databases/php-sqlite3/files/patch-php_sqlite3.c
new file mode 100644
index 000000000000..27fe4376ca54
--- /dev/null
+++ b/databases/php-sqlite3/files/patch-php_sqlite3.c
@@ -0,0 +1,20 @@
+--- ./php_sqlite3.c.orig 2010-04-12 14:26:36.000000000 -0400
++++ ./php_sqlite3.c 2010-04-12 14:27:02.000000000 -0400
+@@ -471,7 +471,7 @@
+ * duplicate it (SQLITE_STATIC flag).
+ */
+
+- z_val->refcount++;
++ Z_ADDREF_P(z_val);
+
+ if (sqlite3_bind_text(stmt->stmt, idx, Z_STRVAL_P(z_val), Z_STRLEN_P(z_val), SQLITE_STATIC) != SQLITE_OK)
+ RETURN_FALSE;
+@@ -504,7 +504,7 @@
+ * duplicate it (SQLITE_STATIC flag).
+ */
+
+- z_val->refcount++;
++ Z_ADDREF_P(z_val);
+
+ if (sqlite3_bind_blob(stmt->stmt, idx, Z_STRVAL_P(z_val), Z_STRLEN_P(z_val), SQLITE_STATIC) != SQLITE_OK)
+ RETURN_FALSE;