devel/cmake python3

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

devel/cmake python3

Rafael Sadowski
Switch CMake to use python3 sphinx to create docs.

OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/cmake/Makefile,v
retrieving revision 1.180
diff -u -p -r1.180 Makefile
--- Makefile 20 Mar 2020 16:44:22 -0000 1.180
+++ Makefile 29 Mar 2020 18:15:35 -0000
@@ -8,6 +8,7 @@ VER = 3.16.2
 EPOCH = 0
 DISTNAME = cmake-${VER}
 CATEGORIES = devel
+REVISION = 0
 
 HOMEPAGE = https://www.cmake.org/
 
@@ -21,7 +22,11 @@ WANTLIB += jsoncpp m rhash uv z
 
 COMPILER = base-clang ports-gcc
 
-BUILD_DEPENDS += textproc/py-sphinx>=1.4
+MODULES = lang/python
+MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
+MODPY_RUNDEP = No
+
+BUILD_DEPENDS = textproc/py-sphinx${MODPY_FLAVOR}
 
 LIB_DEPENDS = archivers/libarchive \
  devel/libuv \
@@ -37,7 +42,7 @@ CONFIGURE_ARGS = --datadir=share/cmake \
  --no-qt-gui \
  --parallel=${MAKE_JOBS} \
  --prefix=${PREFIX} \
- --sphinx-build=${LOCALBASE}/bin/sphinx-build \
+ --sphinx-build=${LOCALBASE}/bin/sphinx-build${MODPY_BIN_SUFFIX} \
  --sphinx-html \
  --sphinx-man \
  --system-libs \

Reply | Threaded
Open this post in threaded view
|

Re: devel/cmake python3

Klemens Nanni-2
On Sun, Mar 29, 2020 at 08:17:27PM +0200, Rafael Sadowski wrote:
> Switch CMake to use python3 sphinx to create docs.
OK kn

If python is not used during tests, then MODPY_TESTDEP=No as well.