diff options
author | apb <apb@pkgsrc.org> | 2012-03-02 18:44:44 +0000 |
---|---|---|
committer | apb <apb@pkgsrc.org> | 2012-03-02 18:44:44 +0000 |
commit | 94ba874f0f42028504e0b2966805985c000aad5f (patch) | |
tree | 2cdb6e104ab12a70fd060a8133eb9c37fdc2f0c4 | |
parent | e72282b7f9baba818b772f77401e7e3685b2f2bd (diff) | |
download | pkgsrc-94ba874f0f42028504e0b2966805985c000aad5f.tar.gz |
Patch the setup script to use PREFIX/include and PREFIX/lib.
This should fix a build failure, where it failed to
find the installed version of zmq. (It worked for me because
I had /usr/pkg/lib in /etc/ld.so.conf.)
Bump PKGREVISION to 1.
-rw-r--r-- | net/py-zmq/Makefile | 3 | ||||
-rw-r--r-- | net/py-zmq/distinfo | 3 | ||||
-rw-r--r-- | net/py-zmq/patches/patch-setup.py | 17 |
3 files changed, 21 insertions, 2 deletions
diff --git a/net/py-zmq/Makefile b/net/py-zmq/Makefile index aee4ef22e39..5b91eec5b20 100644 --- a/net/py-zmq/Makefile +++ b/net/py-zmq/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.1 2012/01/21 20:17:27 apb Exp $ +# $NetBSD: Makefile,v 1.2 2012/03/02 18:44:44 apb Exp $ # DISTNAME= pyzmq-2.1.10 +PKGREVISION= 1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} CATEGORIES= net MASTER_SITES= https://github.com/zeromq/pyzmq/downloads/ diff --git a/net/py-zmq/distinfo b/net/py-zmq/distinfo index 58a96ef47b1..e110b5b59af 100644 --- a/net/py-zmq/distinfo +++ b/net/py-zmq/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1 2012/01/21 20:17:27 apb Exp $ +$NetBSD: distinfo,v 1.2 2012/03/02 18:44:45 apb Exp $ SHA1 (pyzmq-2.1.10.tar.gz) = d583056f5b735899b4a6fe6844dfa40c2ebd35c9 RMD160 (pyzmq-2.1.10.tar.gz) = 11f358534da9e3d13b4a7bb203a0ac6fb6f6310c Size (pyzmq-2.1.10.tar.gz) = 613843 bytes +SHA1 (patch-setup.py) = d3c9527a27bce998cd4eb65f5bd00a09b82ec97e diff --git a/net/py-zmq/patches/patch-setup.py b/net/py-zmq/patches/patch-setup.py new file mode 100644 index 00000000000..3deb7704f01 --- /dev/null +++ b/net/py-zmq/patches/patch-setup.py @@ -0,0 +1,17 @@ +$NetBSD: patch-setup.py,v 1.1 2012/03/02 18:44:45 apb Exp $ + +Use PREFIX/include and PREFIX/lib for pkgsrc build. + +--- setup.py.orig 2011-10-12 22:38:44.000000000 +0000 ++++ setup.py +@@ -126,6 +126,10 @@ else: + if ZMQ is not None: + COMPILER_SETTINGS['include_dirs'] += [pjoin(ZMQ, 'include')] + COMPILER_SETTINGS['library_dirs'] += [pjoin(ZMQ, 'lib')] ++ elif os.environ['PREFIX']: ++ PREFIX = os.environ['PREFIX'] ++ COMPILER_SETTINGS['include_dirs'] += [pjoin(PREFIX, 'include')] ++ COMPILER_SETTINGS['library_dirs'] += [pjoin(PREFIX, 'lib')] + elif sys.platform == 'darwin' and os.path.isdir('/opt/local/lib'): + # allow macports default + COMPILER_SETTINGS['include_dirs'] += ['/opt/local/include'] |