- get rid of ugly way to prevent run-time dependency on python

- use SUBST_CMD

ok wcmaier@
This commit is contained in:
jasper 2009-01-22 16:06:05 +00:00
parent 8b8782ca2d
commit 3eba13c190
4 changed files with 15 additions and 16 deletions

View File

@ -1,30 +1,29 @@
# $OpenBSD: Makefile,v 1.13 2009/01/20 10:43:54 jasper Exp $
# $OpenBSD: Makefile,v 1.14 2009/01/22 16:06:05 jasper Exp $
SHARED_ONLY= No
PKG_ARCH= *
COMMENT= flexible communications framework, specifications
DISTNAME= telepathy-spec-0.17.17
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
CATEGORIES= books
MASTER_SITES= ${MASTER_SITES_TELEPATHY:=telepathy-spec/}
BUILD_DEPENDS= ::lang/python/2.5 \
::textproc/libxslt \
BUILD_DEPENDS= ::textproc/libxslt \
::textproc/py-docutils
MODULES+= lang/python
MODPY_RUNDEP= No
USE_GMAKE= Yes
NO_REGRESS= Yes
PKG_ARCH= *
CONFIGURE_STYLE= none
# XXX we should use MODPY_BIN from the lang/python MODULE but
# we do not want to build/run_depends on python
pre-configure:
perl -pi -e 's,!!MODPY_BIN!!,${LOCALBASE}/bin/python2.5,g' ${WRKSRC}/Makefile
perl -pi -e 's,!!MODPY_BIN!!,${LOCALBASE}/bin/python2.5,g' ${WRKSRC}/tools/*.py
${SUBST_CMD} ${WRKSRC}/Makefile ${WRKSRC}/tools/*.py
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/gtk-doc/html/telepathy-spec/

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-tools_extract-nodename_py,v 1.1.1.1 2007/10/27 16:18:54 jasper Exp $
$OpenBSD: patch-tools_extract-nodename_py,v 1.2 2009/01/22 16:06:05 jasper Exp $
--- tools/extract-nodename.py.orig Fri Oct 12 16:44:48 2007
+++ tools/extract-nodename.py Fri Oct 12 16:45:43 2007
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!!!MODPY_BIN!!
+#!${MODPY_BIN}
import sys
import xml.dom.minidom

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-tools_gengobject_py,v 1.1.1.1 2007/10/27 16:18:54 jasper Exp $
$OpenBSD: patch-tools_gengobject_py,v 1.2 2009/01/22 16:06:05 jasper Exp $
--- tools/gengobject.py.orig Fri Oct 12 16:44:51 2007
+++ tools/gengobject.py Fri Oct 12 16:45:45 2007
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!!!MODPY_BIN!!
+#!${MODPY_BIN}
import sys
import os.path

View File

@ -1,9 +1,9 @@
$OpenBSD: patch-tools_make_all_async_py,v 1.1.1.1 2007/10/27 16:18:54 jasper Exp $
$OpenBSD: patch-tools_make_all_async_py,v 1.2 2009/01/22 16:06:05 jasper Exp $
--- tools/make_all_async.py.orig Fri Oct 12 16:44:55 2007
+++ tools/make_all_async.py Fri Oct 12 16:45:46 2007
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.4
+#!!!MODPY_BIN!!
+#!${MODPY_BIN}
import sys