pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/py-peewee py-peewee: Find libsqlite3 correctly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ed6fe90e9e32
branches:  trunk
changeset: 314381:ed6fe90e9e32
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Oct 26 11:57:01 2018 +0000

description:
py-peewee: Find libsqlite3 correctly.

diffstat:

 databases/py-peewee/Makefile               |   7 ++++++-
 databases/py-peewee/distinfo               |   3 ++-
 databases/py-peewee/patches/patch-setup.py |  14 ++++++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r b5e09ffbd60f -r ed6fe90e9e32 databases/py-peewee/Makefile
--- a/databases/py-peewee/Makefile      Fri Oct 26 11:11:33 2018 +0000
+++ b/databases/py-peewee/Makefile      Fri Oct 26 11:57:01 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2018/10/07 08:42:24 adam Exp $
+# $NetBSD: Makefile,v 1.46 2018/10/26 11:57:01 jperkin Exp $
 
 DISTNAME=      peewee-3.7.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -20,6 +20,11 @@
 
 REPLACE_PYTHON+=       pwiz.py
 
+SUBST_CLASSES+=                lpath
+SUBST_STAGE.lpath=     pre-configure
+SUBST_FILES.lpath=     setup.py
+SUBST_VARS.lpath=      BUILDLINK_PREFIX.sqlite3
+
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
 
 post-build:
diff -r b5e09ffbd60f -r ed6fe90e9e32 databases/py-peewee/distinfo
--- a/databases/py-peewee/distinfo      Fri Oct 26 11:11:33 2018 +0000
+++ b/databases/py-peewee/distinfo      Fri Oct 26 11:57:01 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.41 2018/10/07 08:42:24 adam Exp $
+$NetBSD: distinfo,v 1.42 2018/10/26 11:57:01 jperkin Exp $
 
 SHA1 (peewee-3.7.1.tar.gz) = 4781a13627eb4ac002faed854155316272c31bc7
 RMD160 (peewee-3.7.1.tar.gz) = 8106a17f8a749f5ac8b0d9673118eac1eb986163
 SHA512 (peewee-3.7.1.tar.gz) = 3d9ae7bf68c115a1a22f4f11460f2cb8c2f57be7757694ef4ee0d3d9d7f38c9b64f4be9afccbf7a17884b3feb0a38648b44daffe328eeb96dc5adb637aed36c6
 Size (peewee-3.7.1.tar.gz) = 2167702 bytes
+SHA1 (patch-setup.py) = 23575a58f42015a48b7503d90ed86290c92d0d03
diff -r b5e09ffbd60f -r ed6fe90e9e32 databases/py-peewee/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/py-peewee/patches/patch-setup.py        Fri Oct 26 11:57:01 2018 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-setup.py,v 1.1 2018/10/26 11:57:01 jperkin Exp $
+
+Find libsqlite3.
+
+--- setup.py.orig      2018-08-30 19:16:58.000000000 +0000
++++ setup.py
+@@ -75,6 +75,7 @@ def _have_sqlite_extension_support():
+         compiler.link_executable(
+             compiler.compile([src_file], output_dir=tmp_dir),
+             bin_file,
++            library_dirs=['@BUILDLINK_PREFIX.sqlite3@/lib'],
+             libraries=['sqlite3'])
+     except CCompilerError:
+         print('unable to compile sqlite3 C extensions - missing headers?')



Home | Main Index | Thread Index | Old Index