Do not hand roll PYTHON_CMD

This commit is contained in:
Antoine Brodin 2016-10-25 19:09:14 +00:00
parent e9f31516fc
commit b44706cc00
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424644
5 changed files with 7 additions and 7 deletions

View file

@ -47,7 +47,7 @@ DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
pre-install:
${REINPLACE_CMD} 's|libvorbis.so.0|libvorbis.so|' \
${WRKSRC}/python/format.py
${REINPLACE_CMD} 's|#! /usr/local/bin/python2.72.7|#\!${LOCALBASE}/bin/${PYTHON_VERSION}|' \
${REINPLACE_CMD} 's|#! /usr/local/bin/python2.72.7|#\!${PYTHON_CMD}|' \
${WRKSRC}/idjc
.include <bsd.port.mk>

View file

@ -49,7 +49,7 @@ post-patch:
${REINPLACE_CMD} -e 's|$$(datadir)/cyphesis|${DATADIR}|g ; \
s|confbackupdir = .*|confbackupdir = ${DOCSDIR}/conf|g'
@${REINPLACE_CMD} -e 's|/bash|/sh|' ${WRKSRC}/scripts/extract_revision.sh
@${REINPLACE_CMD} -e '1s|python|${LOCALBASE}/bin/${PYTHON_VERSION}|' ${WRKSRC}/scripts/gen_buildid.py
@${REINPLACE_CMD} -e '1s|python|${PYTHON_CMD}|' ${WRKSRC}/scripts/gen_buildid.py
@${REINPLACE_CMD} -e 's/#ifdef __APPLE__/#if defined(__APPLE__) || defined(__FreeBSD__)/g; \
s/#ifndef __APPLE__/#if !defined(__APPLE__) \&\& !defined(__FreeBSD__)/g' \
${WRKSRC}/common/system.cpp \

View file

@ -23,7 +23,7 @@ PORTEXAMPLES= *
SUB_FILES+= pkg-message
do-build:
${REINPLACE_CMD} 's|#!/usr/bin/env python3|#!${LOCALBASE}/bin/${PYTHON_VERSION}|' \
${REINPLACE_CMD} 's|#!/usr/bin/env python3|#!${PYTHON_CMD}|' \
${WRKSRC}/codespell.py
do-install:

View file

@ -18,8 +18,8 @@ USE_GNOME+= libxml2
USES+= python:2 gettext-runtime
USE_PYTHON= autoplist distutils
CPPFLAGS+= `${PYTHON_VERSION}-config --cflags`
LDFLAGS+= -L${LOCALBASE}/lib `${PYTHON_VERSION}-config --libs`
CPPFLAGS+= `${PYTHON_CMD}-config --cflags`
LDFLAGS+= -L${LOCALBASE}/lib `${PYTHON_CMD}-config --libs`
CONFIGURE_ARGS= --with-iconv=${ICONV_PREFIX} \
--with-html-dir=${PREFIX}/share/doc \
--with-html-subdir=${PORTNAME} \

View file

@ -18,8 +18,8 @@ USE_GNOME+= libxml2
USES= python:3 gettext-runtime
USE_PYTHON= autoplist distutils
CPPFLAGS+= `${PYTHON_VERSION}-config --cflags`
LDFLAGS+= -L${LOCALBASE}/lib `${PYTHON_VERSION}-config --libs`
CPPFLAGS+= `${PYTHON_CMD}-config --cflags`
LDFLAGS+= -L${LOCALBASE}/lib `${PYTHON_CMD}-config --libs`
CONFIGURE_ARGS= --with-iconv=${ICONV_PREFIX} \
--with-html-dir=${PREFIX}/share/doc \
--with-html-subdir=${PORTNAME} \