Use MODPY_VERSION instead of hardcoding 2.6 which is not the case anymore

since we default to python 2.7
This commit is contained in:
robert 2011-06-15 19:41:02 +00:00
parent 1fa4a8cf32
commit dd75e16ee2
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.57 2011/06/15 10:59:55 robert Exp $
# $OpenBSD: Makefile,v 1.58 2011/06/15 19:41:02 robert Exp $
ONLY_FOR_ARCHS= i386 amd64
@ -7,6 +7,8 @@ COMMENT= Chromium browser
V= 12.0.742.100
DISTNAME= chromium-${V}
REVISION= 0
CATEGORIES= www
HOMEPAGE= http://sightly.net/peter/openbsd/chromium/
@ -97,6 +99,7 @@ GYP_DEFS= -Duse_system_bzip2=1 \
pre-configure:
@ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python
${SUBST_CMD} ${WRKSRC}/build/common.gypi
# gyp_chromium generates all the Makefiles from gyp
do-configure:

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-build_common_gypi,v 1.7 2011/06/08 20:36:56 robert Exp $
$OpenBSD: patch-build_common_gypi,v 1.8 2011/06/15 19:41:02 robert Exp $
--- build/common.gypi.orig Mon Jun 6 11:11:46 2011
+++ build/common.gypi Wed Jun 8 09:58:35 2011
@@ -95,7 +95,7 @@
@ -6,7 +6,7 @@ $OpenBSD: patch-build_common_gypi,v 1.7 2011/06/08 20:36:56 robert Exp $
# Python version.
- 'python_ver%': '2.5',
+ 'python_ver%': '2.6',
+ 'python_ver%': '${MODPY_VERSION}',
# Set ARM-v7 compilation flags
'armv7%': 0,