1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$NetBSD: patch-aa,v 1.3 2010/05/20 11:09:51 drochner Exp $
--- setup.py.in.orig 2003-09-03 05:42:55.000000000 +0000
+++ setup.py.in
@@ -58,12 +58,12 @@ if version < [2, 2]:
class PyGtkGLExtInstallLib(InstallLib):
def run(self):
- self.add_template_option('VERSION', VERSION)
- self.add_template_option('PYGTKGLEXT_API_VERSION', API_VERSION)
- self.prepare()
+ dd = os.getenv('DESTDIR')
+ if not dd:
+ dd = ""
self.install_template_as('pygtkglext.pc.in',
- os.path.join(self.libdir, 'pkgconfig'),
+ os.path.join(dd + os.getenv('PREFIX'), 'lib', 'pkgconfig'),
'pygtkglext-' + API_VERSION + '.pc')
# Modify the base installation dir
@@ -76,8 +76,6 @@ class PyGtkGLExtInstallLib(InstallLib):
"""Install template filename into target directory install_dir."""
template = open(filename).read()
- for key, value in self.template_options.items():
- template = template.replace(key, value)
output = os.path.join(install_dir, install_filename)
self.mkpath(install_dir)
@@ -86,7 +84,7 @@ class PyGtkGLExtInstallLib(InstallLib):
self.local_outputs.append(output)
return output
-if not pkgc_version_check('pygtk-2.0', 'PyGTK', PYGTK_REQUIRED_VERSION):
+if not pkgc_version_check('pygtk-2.0', PYGTK_REQUIRED_VERSION):
raise SystemExit, "Aborting"
pygtkincludedir = getoutput('pkg-config --variable pygtkincludedir pygtk-2.0')
codegendir = getoutput('pkg-config --variable codegendir pygtk-2.0')
|