pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat/weechat weechat: Fix loading the Python plugin af...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a77c24871e2a
branches:  trunk
changeset: 340061:a77c24871e2a
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Sep 21 14:57:46 2019 +0000

description:
weechat: Fix loading the Python plugin after the build system change.

Bump PKGREVISION.

diffstat:

 chat/weechat/Makefile   |   3 ++-
 chat/weechat/options.mk |  10 ++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r 2839fda27dd4 -r a77c24871e2a chat/weechat/Makefile
--- a/chat/weechat/Makefile     Sat Sep 21 13:56:57 2019 +0000
+++ b/chat/weechat/Makefile     Sat Sep 21 14:57:46 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.105 2019/09/21 10:09:25 nia Exp $
+# $NetBSD: Makefile,v 1.106 2019/09/21 14:57:46 nia Exp $
 
 DISTNAME=      weechat-2.6
+PKGREVISION=   1
 CATEGORIES=    chat
 MASTER_SITES=  https://www.weechat.org/files/src/
 EXTRACT_SUFX=  .tar.xz
diff -r 2839fda27dd4 -r a77c24871e2a chat/weechat/options.mk
--- a/chat/weechat/options.mk   Sat Sep 21 13:56:57 2019 +0000
+++ b/chat/weechat/options.mk   Sat Sep 21 14:57:46 2019 +0000
@@ -1,11 +1,12 @@
-# $NetBSD: options.mk,v 1.19 2019/09/17 11:30:27 nia Exp $
+# $NetBSD: options.mk,v 1.20 2019/09/21 14:57:46 nia Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.weechat
+# mk/curses will handle wide-curses
 PKG_SUPPORTED_OPTIONS= gnutls python lua wide-curses perl ruby
 PKG_SUGGESTED_OPTIONS= gnutls python lua wide-curses perl ruby
 
 .include "../../mk/bsd.options.mk"
-# mk/curses will handle wide-curses
+.include "../../mk/bsd.fast.prefs.mk"
 
 PLIST_VARS+=           lua plugin python perl ruby
 
@@ -18,6 +19,11 @@
 .include "../../lang/python/extension.mk"
 CMAKE_ARGS+=   -DENABLE_PYTHON=ON
 CMAKE_ARGS+=   -DPYTHON_EXECUTABLE=${PYTHONBIN}
+.if ${OPSYS} == "Darwin"
+CMAKE_ARGS+=   -DPYTHON_LIBRARIES=${PREFIX}/lib/libpython${PYVERSSUFFIX}.dylib                                                                
+.else
+CMAKE_ARGS+=   -DPYTHON_LIBRARIES=${PREFIX}/lib/libpython${PYVERSSUFFIX}.so
+.endif
 PLIST.python=  yes
 .else
 CMAKE_ARGS+=   -DENABLE_PYTHON=OFF



Home | Main Index | Thread Index | Old Index