summaryrefslogtreecommitdiff
path: root/databases/php-pdo_sqlite
diff options
context:
space:
mode:
authorsborrill <sborrill@pkgsrc.org>2009-03-13 10:57:20 +0000
committersborrill <sborrill@pkgsrc.org>2009-03-13 10:57:20 +0000
commit7036688ce1cf6f49a74cdc42729e69639d1f88b4 (patch)
treeeea3a98ed7bd9df021198aeac79b05bef96c5de6 /databases/php-pdo_sqlite
parentb764dbdac315dc9d940804ceff886f80b563289d (diff)
downloadpkgsrc-7036688ce1cf6f49a74cdc42729e69639d1f88b4.tar.gz
The php_pdo* packages have not kept step with PHP changes. The PDO
components are now built into PHP rather than maintained separately in PECL. The old PECL versions are unmaintained and haven't been altered for 3 years. This is confusing as the package versions report themselves to be 5.2.9.1.0.2, etc. but they are in fact based on the 5.1.x code-base. Therefore, we need to switch to building the PDO modules like any other PHP module. A side-effect of this is that the PECL version number will get stripped off the end meaning that the new version numbers are just 5.2.9 instead of 5.2.9.1.0.2 (for example). Unfortunately, 5.2.9 is considered to be older than 5.2.9.1.0.2 meaning that it will appear as though a downgrade has taken place. Therefore, while we are still using PHP 5.2.9, add .99 on the end (i.e. 5.2.9.99) so that the package appears newer. When PHP 5.2.10 is released this can be removed (the module.mk file explicitly cgecks for 5.2.9 before adding the .99 suffix so that it will not alter 5.2.10 if the hack is forgotten. However, for the record, when 5.2.10 is released, php-pdo/module.mk can be removed along with the references to it in each php-pdo*/Makefile
Diffstat (limited to 'databases/php-pdo_sqlite')
-rw-r--r--databases/php-pdo_sqlite/Makefile18
-rw-r--r--databases/php-pdo_sqlite/distinfo5
2 files changed, 12 insertions, 11 deletions
diff --git a/databases/php-pdo_sqlite/Makefile b/databases/php-pdo_sqlite/Makefile
index 55e8d7d607d..9ccbec37b4a 100644
--- a/databases/php-pdo_sqlite/Makefile
+++ b/databases/php-pdo_sqlite/Makefile
@@ -1,17 +1,23 @@
-# $NetBSD: Makefile,v 1.6 2009/03/05 20:58:37 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2009/03/13 10:57:20 sborrill Exp $
-PDO_DRIVER= sqlite
-PDO_COMMENT= SQLite v3
-PDO_VERSION= 1.0
+MODNAME= pdo_sqlite
+CATEGORIES+= databases
+COMMENT= PHP extension for PHP Data Objects (SQLite v3)
+
+PHP_VERSIONS_ACCEPTED= 5
PKG_DESTDIR_SUPPORT= user-destdir
+USE_PHP_EXT_PATCHES= yes
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../lang/php/ext.mk"
+# Remove the following line when PHP >= 5.2.10 is released
.include "../../databases/php-pdo/module.mk"
+CONFIGURE_ARGS+= --with-${MODNAME}
CONFIGURE_ARGS+= --with-${PKGMODNAME}=shared,${BUILDLINK_PREFIX.sqlite3}
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../databases/php-pdo/buildlink3.mk"
-
-.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/php-pdo_sqlite/distinfo b/databases/php-pdo_sqlite/distinfo
deleted file mode 100644
index 26264a6a108..00000000000
--- a/databases/php-pdo_sqlite/distinfo
+++ /dev/null
@@ -1,5 +0,0 @@
-$NetBSD: distinfo,v 1.2 2005/12/03 17:24:28 jdolecek Exp $
-
-SHA1 (php-PDO_SQLITE/PDO_SQLITE-1.0.tgz) = acad8d84b0bca37511aa4bc072288e763174c60d
-RMD160 (php-PDO_SQLITE/PDO_SQLITE-1.0.tgz) = 9a98101e0a37a8869118da0cb686c502448d422b
-Size (php-PDO_SQLITE/PDO_SQLITE-1.0.tgz) = 866928 bytes