Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Mar 2017 11:14:39 +0000 (UTC)
From:      Bernard Spil <brnrd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r436955 - head/irc/weechat
Message-ID:  <201703261114.v2QBEdYR035356@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brnrd
Date: Sun Mar 26 11:14:39 2017
New Revision: 436955
URL: https://svnweb.freebsd.org/changeset/ports/436955

Log:
  irc/weechat: Fix python3 detection
  
    - Fix package error when python3 is used
  
  PR:		216555
  Reported by:	 Charles P <charlespigott@googlemail.com>

Modified:
  head/irc/weechat/Makefile

Modified: head/irc/weechat/Makefile
==============================================================================
--- head/irc/weechat/Makefile	Sun Mar 26 10:47:44 2017	(r436954)
+++ head/irc/weechat/Makefile	Sun Mar 26 11:14:39 2017	(r436955)
@@ -88,7 +88,7 @@ TCL_USES=		tcl:85+
 
 .include <bsd.port.pre.mk>
 
-.if defined(PORT_OPTIONS:MPYTHON) && ${PYTHON_MAJOR_VER} >= 3
+.if !empty(PORT_OPTIONS:MPYTHON) && ${PYTHON_MAJOR_VER} >= 3
 WARNING=	"Using Python 3.x is NOT recommended because many \"official\" scripts won\'t work"
 CMAKE_ARGS+=	-DENABLE_PYTHON3:BOOL=true \
 		-DPYTHON_LIBRARY:FILEPATH=${LOCALBASE}/lib/libpython${PYTHON_VER}m.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703261114.v2QBEdYR035356>