source: orange/install-scripts/mac/fink/matplotlib-py.info @ 9179:601102019a60

Revision 9179:601102019a60, 3.4 KB checked in by mitar, 2 years ago (diff)

Added our own version of matplotlib Fink package so that it works on Mac OS X 10.7.

Line 
1Info2: <<
2
3# https://github.com/matplotlib/matplotlib/issues/434
4
5Package: matplotlib-py%type_pkg[python]
6Version: 1.0.1
7Revision: 2
8Source: mirror:sourceforge:matplotlib/matplotlib-%v.tar.gz
9Source-MD5: 2196c0482d5b33dc8d33f67bbafc1323
10Type: python (2.7)
11
12# FIX: libpng15 failed to work.
13
14Maintainer: Kurt Schwehr <goatbar@users.sourceforge.net>
15Depends: <<
16 atk1-shlibs (>= 1.20.0-1),
17 cairo-shlibs (>= 1.6-1),
18 configobj-py%type_pkg[python],
19 dateutil-py%type_pkg[python],
20 fontconfig2-shlibs (>= 2.4.1-1),
21 freetype219-shlibs (>= 2.3.5-1),
22 glib2-shlibs (>= 2.14.0-1),
23 gtk+2-shlibs (>= 2.12.0-1),
24 libgettext8-shlibs,
25 libiconv,
26 libpng14-shlibs,
27 pango1-xft2-ft219-shlibs (>= 1.18.4-4),
28 pygobject2-py%type_pkg[python],
29 pygtk2-gtk-py%type_pkg[python],
30 python%type_pkg[python],
31 pytz-py%type_pkg[python],
32 numpy-py%type_pkg[python],
33 tcltk-shlibs,
34 tetex-base,
35 x11-shlibs
36<<
37
38BuildDepends: <<
39 fink (>= 0.24.12),
40# gcc4.2,
41 atk1 (>= 1.20.0-1),
42 cairo (>= 1.6-1),
43 expat1,
44 fontconfig2-dev (>= 2.4.1-1),
45 freetype219 (>= 2.3.5-1),
46 gettext-bin,
47 gettext-tools,
48 glib2-dev (>= 2.14.0-1),
49 glitz,
50 gtk+2-dev (>= 2.12.0-1),
51 libgettext8-dev,
52 libiconv-dev,
53 libpng14,
54 pango1-xft2-ft219-dev (>= 1.18.4-4),
55 pixman (>= 0.10.0-1),
56 pkgconfig (>= 0.21-1),
57 pygobject2-py%type_pkg[python]-dev,
58 pygtk2-gtk-py%type_pkg[python]-dev,
59 distribute-py%type_pkg[python],
60 tcltk-dev,
61 x11-dev,
62 xft2-dev
63<<
64
65GCC: 4.0
66
67# Apple clang and gcc 4.6 compiler gags on matplotlib
68#SetCC: gcc-4.2
69#SetCC: gcc-fsf-4.6
70#SetCXX: g++-fsf-4.6
71
72NoSetCPPFLAGS: True
73SetCPPFLAGS: -I%p/include/pygtk-2.0 -I%p/lib/freetype219/include/freetype2 -I%p/lib/fontconfig2/include -DNSIG=32
74NoSetLDFLAGS: True
75SetLDFLAGS: -L%p/lib/freetype219/lib -L%p/lib/fontconfig2/lib
76
77PatchFile: %{ni}.patch
78PatchFile-MD5: 758179e681590f68d65f36344a5e268f
79PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
80
81CompileScript:  <<
82 #!/bin/sh -ev
83 export PATH=%p/lib/freetype219:$PATH
84 export PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
85 %p/bin/python%type_raw[python] setup.py build
86<<
87
88# --compiler=%p/bin/g++-fsf-4.6
89
90InstallScript: <<
91 #!/bin/sh -ev
92 export PATH=%p/lib/freetype219:$PATH
93 export PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH"
94 %p/bin/python%type_raw[python] setup.py install --root %d
95 mkdir -p %i/share/doc/%n
96 cp -R examples %i/share/doc/%n
97<<
98License: OSI-Approved
99DocFiles: README.txt license/*LICENSE* TODO INTERACTIVE INSTALL CHANGELOG  KNOWN_BUGS
100# API_CHANGES
101Description: Pure python 2D plotting with a Matlab syntax
102DescDetail: <<
103Produces publication quality figures using in a variety of hardcopy
104formats (PNG, JPG, TIFF, PS) and interactive GUI environments
105across platforms. matplotlib can be used in python scripts,
106interactively from the python shell (ala matlab or mathematica),
107in web application servers generating dynamic charts, or embedded
108in applications.
109
110Includes GTK, TkAgg, GTKAgg, SVG, PS and Agg backends.
111<<
112DescPackaging: <<
113 Checks for qt, qt4, cairo (their python bindings) but doesn't use
114 those test results, so don't bother setting dependencies or forcing
115 non-detection of them.
116<<
117DescPort: <<
118-DNSIG is only need for the build of the py25 variant.  Don't know why.
119<<
120Homepage: http://matplotlib.sf.net
121DescUsage: <<
122The pylab frontend is broken on x86_64.
123<<
124
125<<
Note: See TracBrowser for help on using the repository browser.