|
|
|
@ -15,8 +15,8 @@ NORMAL ="\033[0m"
|
|
|
|
|
import os, re, types
|
|
|
|
|
from SCons.Script.SConscript import SConsEnvironment
|
|
|
|
|
|
|
|
|
|
# Returns the name of the shared object (i.e. libkdeui.so.4)
|
|
|
|
|
# referenced by a libtool archive (like libkdeui.la)
|
|
|
|
|
# Returns the name of the shared object (i.e. libtdeui.so.4)
|
|
|
|
|
# referenced by a libtool archive (like libtdeui.la)
|
|
|
|
|
def getSOfromLA(lafile):
|
|
|
|
|
contents = open(lafile, 'r').read()
|
|
|
|
|
match = re.search("^dlname='([^']*)'$", contents, re.M)
|
|
|
|
@ -119,8 +119,8 @@ def detect_kde(env):
|
|
|
|
|
else:
|
|
|
|
|
try:
|
|
|
|
|
tmplibdir = os.popen('kde-config --expandvars --install lib').read().strip()
|
|
|
|
|
libkdeuiSO = tmplibdir+'/'+getSOfromLA(tmplibdir+'/libkdeui.la')
|
|
|
|
|
m = re.search('(.*)/lib/libqt.*', os.popen('ldd ' + libkdeuiSO + ' | grep libqt').read().strip().split()[2])
|
|
|
|
|
libtdeuiSO = tmplibdir+'/'+getSOfromLA(tmplibdir+'/libtdeui.la')
|
|
|
|
|
m = re.search('(.*)/lib/libqt.*', os.popen('ldd ' + libtdeuiSO + ' | grep libqt').read().strip().split()[2])
|
|
|
|
|
except:
|
|
|
|
|
m=None
|
|
|
|
|
if m:
|
|
|
|
|