$NetBSD: patch-aa,v 1.1.1.1 2007/07/13 15:01:27 drochner Exp $

--- setup.py.in.orig	2003-09-03 07:42:55.000000000 +0200
+++ setup.py.in
@@ -58,12 +58,9 @@ 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()
 
         self.install_template_as('pygtkglext.pc.in',
-                                 os.path.join(self.libdir, 'pkgconfig'),
+                                 os.path.join(os.getenv('PREFIX'), 'lib', 'pkgconfig'),
                                  'pygtkglext-' + API_VERSION + '.pc')
 
         # Modify the base installation dir
@@ -76,8 +73,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 +81,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')
