Download raw body.
stop mentioning python 2 in python-module(5)
On 2025/08/19 12:29, Landry Breuil wrote:
> > geo/gdal
>
> will look at this one shortly, sorry it fell off my radar.
great, thank you!
> > geo/mapserver
>
> diff below for this one, most of the gory details of running pip commands
> from cmake are in
> https://github.com/MapServer/MapServer/blob/branch-8-4/src/mapscript/python/CMakeLists.txt#L66.
> afaict the pip plumbing is not used during build, but during fake, and .. it
> could be improved wrt HOME ?
ah, so it doesn't use the ports python build infrastructure at all and
just runs pip - so we can just do this (I tested building without wheel;
it will be using the bundled copy in pip in the venv anyway):
Index: Makefile
===================================================================
RCS file: /cvs/ports/geo/mapserver/Makefile,v
diff -u -p -r1.102 Makefile
--- Makefile 15 Jan 2025 18:36:55 -0000 1.102
+++ Makefile 19 Aug 2025 11:05:22 -0000
@@ -13,6 +13,7 @@ PKGNAME-utils= mapserver-utils-${V:S/-//
PKGNAME-php= php-mapscript-${V:S/-//}
PKGNAME-perl= p5-mapscript-${V:S/-//}
PKGNAME-python= py3-mapscript-${V:S/-//}
+REVISION= 0
SHARED_LIBS += mapserver 8.0
@@ -27,12 +28,11 @@ MAINTAINER= Landry Breuil <landry@openbs
SITES= http://download.osgeo.org/mapserver/
-COMPILER = base-clang ports-gcc base-gcc
+COMPILER = base-clang ports-gcc base-gcc
MODULES= lang/php lang/python devel/cmake
MODPHP_BUILDDEP=Yes
MODPHP_RUNDEP= No
-MODPY_SETUPTOOLS= Yes
MODPY_DISTV= ${V:C/-beta.//:C/-rc.//}
CONFIGURE_STYLE=cmake
@@ -46,7 +46,6 @@ RUN_DEPENDS-utils = # empty
BUILD_DEPENDS += devel/swig databases/postgresql,-server
BUILD_DEPENDS += devel/py-pip
-BUILD_DEPENDS += devel/py-wheel
LIB_DEPENDS= devel/proj \
devel/fribidi \
@@ -85,6 +84,9 @@ CONFIGURE_ARGS += -DPHP_CONFIG_EXECUTABL
PREFIX-main= ${VARBASE}/www
SUBST_VARS+= PREFIX-main VARBASE
+
+# avoid warning about pip cache
+PORTHOME= ${WRKDIR}
post-extract:
rm -f ${WRKSRC}/cmake/Find{Freetype,PostgreSQL,ICONV}.cmake
stop mentioning python 2 in python-module(5)