pkgsrc-WIP-changes archive

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

gpsd: Substitute python interpreter harder



Module Name:	pkgsrc-wip
Committed By:	Greg Troxel <gdt%lexort.com@localhost>
Pushed By:	gdt
Date:		Tue Apr 30 18:58:46 2019 -0400
Changeset:	41b3d4852fb1bb11e0409afaf5b6a1372b4ac235

Modified Files:
	gpsd/Makefile

Log Message:
gpsd: Substitute python interpreter harder

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=41b3d4852fb1bb11e0409afaf5b6a1372b4ac235

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gpsd/Makefile | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diffs:
diff --git a/gpsd/Makefile b/gpsd/Makefile
index f26b402e8a..16663eb37f 100644
--- a/gpsd/Makefile
+++ b/gpsd/Makefile
@@ -25,12 +25,16 @@ FAKE_NCURSES=	yes
 # gpsd uses syncok
 USE_CURSES=	syncok
 
-REPLACE_PYTHON+=	gegps
-REPLACE_PYTHON+=	gpscat
-REPLACE_PYTHON+=	gpsfake
-REPLACE_PYTHON+=	gpsprof
-REPLACE_PYTHON+=	ubxtool
-REPLACE_PYTHON+=	zerk
+SUBST_CLASSES+=		pyenv
+SUBST_MESSAGE.pyenv=	Fixing path in Python scripts
+SUBST_STAGE.pyenv=	pre-build	# We don't configure :-(
+SUBST_FILES.pyenv+=	gegps
+SUBST_FILES.pyenv+=	gpscat
+SUBST_FILES.pyenv+=	gpsfake
+SUBST_FILES.pyenv+=	gpsprof
+SUBST_FILES.pyenv+=	ubxtool
+SUBST_FILES.pyenv+=	zerk
+SUBST_SED.pyenv=	-e 's,/usr/bin/env python.*$$,${PYTHONBIN},'
 
 # \todo Check if this is necessary.
 BUILD_DEPENDS+=	xmlto-[0-9]*:../../textproc/xmlto
@@ -46,7 +50,7 @@ SCONS_ARGS+=	target_python=${PYTHONBIN}
 do-build:
 	cd ${WRKSRC} && \
 	${SETENV} ${MAKE_ENV} ${SCONSBIN} \
-	prefix=${PREFIX} mandir=${PREFIX}/man \
+	prefix=${PREFIX} mandir=${PREFIX}/${PKGMANDIR} \
 	${SCONS_ARGS} \
 	-j${MAKE_JOBS:U1}
 


Home | Main Index | Thread Index | Old Index