summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pycairo/files/pycairo-1.8.8-pkgconfig_dir.patch')
-rw-r--r--dev-python/pycairo/files/pycairo-1.8.8-pkgconfig_dir.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-python/pycairo/files/pycairo-1.8.8-pkgconfig_dir.patch b/dev-python/pycairo/files/pycairo-1.8.8-pkgconfig_dir.patch
new file mode 100644
index 000000000000..27c24a89402e
--- /dev/null
+++ b/dev-python/pycairo/files/pycairo-1.8.8-pkgconfig_dir.patch
@@ -0,0 +1,17 @@
+--- setup.py
++++ setup.py
+@@ -4,6 +4,7 @@
+ import distutils.dir_util as dut
+ import distutils.file_util as fut
+ import io
++import os
+ import subprocess
+ import sys
+
+@@ -106,5 +107,5 @@
+ description = "python interface for cairo",
+ ext_modules = [cairo],
+ data_files=[('include/pycairo',['src/pycairo.h']),
+- ('lib/pkgconfig',[pkgconfig_file])],
++ (os.environ.get('PKGCONFIG_DIR', 'lib/pkgconfig'),[pkgconfig_file])],
+ )