From e5ffc131acd816a73452c2b26e9a35b2a7e27ad0 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Mon, 4 Aug 2003 07:27:34 +0000 Subject: - Fix support for python2.3 defaults to python2.2, python2.3 support is broken. --- databases/metakit/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'databases') diff --git a/databases/metakit/Makefile b/databases/metakit/Makefile index dc1483edb78a..547f100ee5af 100644 --- a/databases/metakit/Makefile +++ b/databases/metakit/Makefile @@ -32,6 +32,7 @@ ONLY_FOR_ARCHS= i386 alpha .if defined(METAKIT_WITH_PYTHON) USE_PYTHON= yes +PYTHON_VERSION?= python2.2 CONFIGURE_ARGS+= --with-python=${LOCALBASE} CATEGORIES+= python PLIST_SUB+= WITH_PYTHON="" @@ -68,16 +69,24 @@ pre-patch: ${SED} -e "s=doc/==" \ ${WRKSRC}/../MetaKit.html.sed > ${WRKSRC}/../MetaKit.html .if defined(METAKIT_WITH_TCL83) || defined(METAKIT_WITH_TCL84) - @${MV} ${WRKSRC}/../unix/Makefile.in ${WRKSRC}/../unix/Makefile.in.sed + @${CP} ${WRKSRC}/../unix/Makefile.in ${WRKSRC}/../unix/Makefile.in.sed ${SED} -e "s/= tclsh/=tclsh${TCL_V}/" -e "s/tcl8.4/tcl${TCL_V}/" \ ${WRKSRC}/../unix/Makefile.in.sed \ > ${WRKSRC}/../unix/Makefile.in .endif .if defined(METAKIT_WITH_PYTHON) - @${MV} ${WRKSRC}/../unix/Makefile.in ${WRKSRC}/../unix/Makefile.in.sed + @${CP} ${WRKSRC}/../unix/Makefile.in ${WRKSRC}/../unix/Makefile.in.sed ${SED} -e "s=python2.2=${PYTHON_VERSION}=" \ ${WRKSRC}/../unix/Makefile.in.sed \ > ${WRKSRC}/../unix/Makefile.in + @${CP} ${WRKSRC}/../unix/configure ${WRKSRC}/../unix/configure.sed + ${SED} -e "s=python2.2=${PYTHON_VERSION}=" \ + ${WRKSRC}/../unix/configure.sed \ + > ${WRKSRC}/../unix/configure +.endif + +post-install: +.if defined(METAKIT_WITH_PYTHON) .endif post-install: -- cgit v1.2.3