summaryrefslogtreecommitdiff
path: root/dev-python/matplotlib/files/matplotlib-1.3.1-unbundle-agg.patch
blob: d5a4ae39bad594a66e8429f09c1bc59b400fcfbf (plain)
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
--- setupext.py.orig	2013-08-02 09:39:43.914247832 +0200
+++ setupext.py	2013-08-02 09:40:14.785304342 +0200
@@ -749,22 +749,7 @@
             return str(e) + ' Using local copy.'
 
     def add_flags(self, ext):
-        if self.found_external:
-            pkg_config.setup_extension(ext, 'libagg')
-        else:
-            ext.include_dirs.append('agg24/include')
-            agg_sources = [
-                'agg_bezier_arc.cpp',
-                'agg_curves.cpp',
-                'agg_image_filters.cpp',
-                'agg_trans_affine.cpp',
-                'agg_vcgen_contour.cpp',
-                'agg_vcgen_dash.cpp',
-                'agg_vcgen_stroke.cpp',
-                'agg_vpgen_segmentator.cpp'
-                ]
-            ext.sources.extend(
-                os.path.join('agg24', 'src', x) for x in agg_sources)
+        pkg_config.setup_extension(ext, 'libagg', default_include_dirs=["/usr/include/agg2"])
 
 
 class FreeType(SetupPackage):