From d53ea27d88e085b3be4e6fd323076113c3858b9d Mon Sep 17 00:00:00 2001 From: eric Date: Wed, 30 Jan 2008 17:33:13 +0000 Subject: [PATCH] Update to py-sqlite-2.4.1 from Martynas. Fixes an issue other ports (like gajim) were having. ok martynas@, bernd@ --- databases/py-sqlite2/Makefile | 16 ++++++---------- databases/py-sqlite2/distinfo | 10 +++++----- databases/py-sqlite2/patches/patch-setup_cfg | 11 +++++++++++ 3 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 databases/py-sqlite2/patches/patch-setup_cfg diff --git a/databases/py-sqlite2/Makefile b/databases/py-sqlite2/Makefile index e272125aa7d..de47bdc3052 100644 --- a/databases/py-sqlite2/Makefile +++ b/databases/py-sqlite2/Makefile @@ -1,19 +1,19 @@ -# $OpenBSD: Makefile,v 1.9 2008/01/12 23:05:13 eric Exp $ - -SHARED_ONLY= Yes +# $OpenBSD: Makefile,v 1.10 2008/01/30 17:33:13 eric Exp $ COMMENT= SQLite3 adapter for Python -VERSION= 2.4.0 +VERSION= 2.4.1 DISTNAME= pysqlite-${VERSION} PKGNAME= py-sqlite2-${VERSION} CATEGORIES= databases devel MAINTAINER= Eric Faurot -MASTER_SITES= http://initd.org/pub/software/pysqlite/releases/${VERSION:R}/${VERSION}/ HOMEPAGE= http://pysqlite.org/ +MASTER_SITES= http://initd.org/pub/software/pysqlite/releases/${VERSION:R}/${VERSION}/ \ + http://mirrors.protection.cx/~martynas/ + # BSD-like PERMIT_PACKAGE_FTP= Yes PERMIT_PACKAGE_CDROM= Yes @@ -28,11 +28,7 @@ SUBST_VARS= VERSION MODULES= lang/python pre-configure: - cd ${WRKSRC} && \ - sed "s|/usr/local|${LOCALBASE}|" setup.cfg | \ - sed "s|^\(include_dirs\)=.*|\1=${LOCALBASE}/include/|" | \ - sed "s|^\(library_dirs\)=.*|\1=${LOCALBASE}/lib/|" > setup.cfg_ - mv ${WRKSRC}/setup.cfg_ ${WRKSRC}/setup.cfg + @perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g' ${WRKSRC}/setup.cfg do-regress: fake @cd ${WRKSRC}/pysqlite2/test && \ diff --git a/databases/py-sqlite2/distinfo b/databases/py-sqlite2/distinfo index 0f48e3deafd..97f8e2746ca 100644 --- a/databases/py-sqlite2/distinfo +++ b/databases/py-sqlite2/distinfo @@ -1,5 +1,5 @@ -MD5 (pysqlite-2.4.0.tar.gz) = RrRZDFG5+2LNC+FDlkZUng== -RMD160 (pysqlite-2.4.0.tar.gz) = ELrMB41ITCInsnLOWaKGolyjgZY= -SHA1 (pysqlite-2.4.0.tar.gz) = U3IN+XCUXmVGY1DkvNWbl05OdQA= -SHA256 (pysqlite-2.4.0.tar.gz) = fmbAfT65MDX5Jy0BRw5TGnyfnZdRrQbzqcE7T2fAoGo= -SIZE (pysqlite-2.4.0.tar.gz) = 84800 +MD5 (pysqlite-2.4.1.tar.gz) = fZpIdacQe5TrSqLchholNw== +RMD160 (pysqlite-2.4.1.tar.gz) = aT9NeJOI7wRWRJ0BsNNCqvGZCDI= +SHA1 (pysqlite-2.4.1.tar.gz) = A9LFLGXgF+ZX2FLAWDqjm7ZWOnM= +SHA256 (pysqlite-2.4.1.tar.gz) = gkDxrAV+LjiYLMCooSmb2Ix7hO8URIfzx8bgGjTyyAc= +SIZE (pysqlite-2.4.1.tar.gz) = 84996 diff --git a/databases/py-sqlite2/patches/patch-setup_cfg b/databases/py-sqlite2/patches/patch-setup_cfg new file mode 100644 index 00000000000..1de5426ba3e --- /dev/null +++ b/databases/py-sqlite2/patches/patch-setup_cfg @@ -0,0 +1,11 @@ +$OpenBSD: patch-setup_cfg,v 1.1 2008/01/30 17:33:13 eric Exp $ +--- setup.cfg.orig Mon Jan 28 21:11:24 2008 ++++ setup.cfg Tue Jan 29 10:26:08 2008 +@@ -1,5 +1,5 @@ + [build_ext] + #define= +-#include_dirs=/usr/local/include +-#library_dirs=/usr/local/lib ++include_dirs=_LOCALBASE_/include ++library_dirs=_LOCALBASE_/lib + libraries=sqlite3