diff options
Diffstat (limited to 'graphics/py-gtkglext/patches/patch-aa')
-rw-r--r-- | graphics/py-gtkglext/patches/patch-aa | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/graphics/py-gtkglext/patches/patch-aa b/graphics/py-gtkglext/patches/patch-aa new file mode 100644 index 00000000000..c56e3b5be54 --- /dev/null +++ b/graphics/py-gtkglext/patches/patch-aa @@ -0,0 +1,36 @@ +$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') |