diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-10-26 11:57:01 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-10-26 11:57:01 +0000 |
commit | 689822509738e21fb7acf3a376eb8562b169d09a (patch) | |
tree | 6edbdede89816376e58347fb9cab33e225673e38 | |
parent | 324b24ae588427221166779376d8f6a71ba5bbd7 (diff) | |
download | pkgsrc-689822509738e21fb7acf3a376eb8562b169d09a.tar.gz |
py-peewee: Find libsqlite3 correctly.
-rw-r--r-- | databases/py-peewee/Makefile | 7 | ||||
-rw-r--r-- | databases/py-peewee/distinfo | 3 | ||||
-rw-r--r-- | databases/py-peewee/patches/patch-setup.py | 14 |
3 files changed, 22 insertions, 2 deletions
diff --git a/databases/py-peewee/Makefile b/databases/py-peewee/Makefile index f0ded156f36..9ae33b9ec0d 100644 --- a/databases/py-peewee/Makefile +++ b/databases/py-peewee/Makefile @@ -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 @@ MESSAGE_SUBST+= PYPKGPREFIX=${PYPKGPREFIX} 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 --git a/databases/py-peewee/distinfo b/databases/py-peewee/distinfo index 8595efdb007..2aee583c5e6 100644 --- a/databases/py-peewee/distinfo +++ b/databases/py-peewee/distinfo @@ -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 --git a/databases/py-peewee/patches/patch-setup.py b/databases/py-peewee/patches/patch-setup.py new file mode 100644 index 00000000000..b76e95476db --- /dev/null +++ b/databases/py-peewee/patches/patch-setup.py @@ -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?') |