From 4c8ba2dfce49e95ed8c579d04776ac1f132566c6 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 15 Nov 2009 21:51:27 +0100 Subject: [PATCH] koffice: fixed to compile with python 2.6 --- kde/koffice/koffice.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kde/koffice/koffice.conf b/kde/koffice/koffice.conf index e20eb406c..096721e1b 100644 --- a/kde/koffice/koffice.conf +++ b/kde/koffice/koffice.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../koffice/koffice.conf -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2009 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2004 Clifford Wolf # @@ -15,5 +15,9 @@ # --- SDE-COPYRIGHT-NOTE-END --- var_append confopt ' ' "--enable-pgsql=no" -makeopt="$makeopt"' LIBPYTHON="-ltcl -ltk -lpython2.4"' +if pkginstalled python; then + pyver=$(pkgprefix ver python | cut -d. -f1-2) + + var_append makeopt ' ' "'LIBPYTHON=-ltcl -ltk -lpython$pyver'" +fi