svn commit: r490337 - head/devel/gdb
John Baldwin
jhb at FreeBSD.org
Tue Jan 15 01:42:20 UTC 2019
Author: jhb (src,doc committer)
Date: Tue Jan 15 01:42:19 2019
New Revision: 490337
URL: https://svnweb.freebsd.org/changeset/ports/490337
Log:
Enable separate flavors for different python versions.
Since python is enabled by default, this keeps the version with the
default python version as 'gdb' and adds a package suffix for other
python versions.
Reviewed by: pizzamig (maintainer)
Differential Revision: https://reviews.freebsd.org/D18534
Modified:
head/devel/gdb/Makefile
Modified: head/devel/gdb/Makefile
==============================================================================
--- head/devel/gdb/Makefile Tue Jan 15 01:27:57 2019 (r490336)
+++ head/devel/gdb/Makefile Tue Jan 15 01:42:19 2019 (r490337)
@@ -20,7 +20,7 @@ LIB_DEPENDS= libmpfr.so:math/mpfr
TEST_DEPENDS= runtest:misc/dejagnu
USES= compiler:c++11-lang cpe gmake libtool tar:xz
-USE_PYTHON= py3kplist
+USE_PYTHON= flavors py3kplist
TEST_TARGET= check
@@ -84,6 +84,12 @@ SYSTEM_ZLIB_WITH= system-zlib
TUI_CONFIGURE_ENABLE= tui
.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MPYTHON}
+.if ${PYTHON_VER} != ${PYTHON_DEFAULT}
+PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX}
+.endif
+.endif
.if ! ${PORT_OPTIONS:MBUNDLED_READLINE}
EXCLUDE+= readline
More information about the svn-ports-head
mailing list