Changeset 82495
- Timestamp:
- 08/14/11 14:25:50 (4 years ago)
- Location:
- trunk/dports/python
- Files:
-
- 3 deleted
- 3 edited
- 1 copied
-
py-matplotlib/Portfile (modified) (8 diffs)
-
py-matplotlib/files/patch-04b4e50919.diff (copied) (copied from trunk/dports/python/py27-matplotlib/files/patch-04b4e50919.diff)
-
py-matplotlib/files/patch-setup.cfg.diff (modified) (1 diff)
-
py-matplotlib/files/patch-setupext.py.diff (modified) (2 diffs)
-
py25-matplotlib (deleted)
-
py26-matplotlib (deleted)
-
py27-matplotlib (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/python/py-matplotlib/Portfile
r82296 r82495 2 2 3 3 PortSystem 1.0 4 PortGroup python 241.04 PortGroup python 1.0 5 5 6 6 categories-append graphics math 7 7 name py-matplotlib 8 version 0.99.09 revision 510 maintainers nomaintainer8 version 1.0.1 9 revision 4 10 maintainers ram openmaintainer 11 11 platforms darwin 12 12 … … 23 23 distname matplotlib-${version} 24 24 25 checksums md5 8e019e17396e816cc2ef52843532e727 \ 26 sha1 5c267e96ecebe0654683b6325f423c53ae5ccd39 \ 27 rmd160 e69f3d6c877e2854becf71a25e4ba56f2ced8735 25 checksums md5 2196c0482d5b33dc8d33f67bbafc1323 \ 26 sha1 c7a832f28a66817626e7a8af21e14ea0e15f4008 \ 27 rmd160 e3e326f7f31ef995253da483444cb593b8e6753b 28 29 python.versions 24 25 26 27 28 30 29 31 depends_lib-append port:freetype \ 30 port:libpng \ 31 port:py-dateutil \ 32 port:py-tz \ 33 port:py-numpy \ 34 port:py-configobj \ 35 port:py-pyobjc2 \ 36 port:py-pyobjc2-cocoa 32 port:libpng 33 34 if {${subport} == "py24-matplotlib"} { 35 depends_lib-append port:py-dateutil \ 36 port:py-tz \ 37 port:py-numpy \ 38 port:py-configobj \ 39 port:py-pyobjc2 \ 40 port:py-pyobjc2-cocoa 41 } elseif {${subport} != ${name}} { 42 depends_lib-append port:py${python.version}-dateutil \ 43 port:py${python.version}-tz \ 44 port:py${python.version}-numpy \ 45 port:py${python.version}-configobj \ 46 port:py${python.version}-pyobjc-cocoa 47 } 37 48 38 49 patchfiles patch-setupext.py.diff \ 39 50 patch-setup.cfg.diff \ 40 patch-disable_optional_deps.diff 51 patch-disable_optional_deps.diff \ 52 patch-04b4e50919.diff 41 53 42 build.env MPLIB_BASE="${prefix}" 54 build.env MPLIB_BASE="${prefix}" PKG_CONFIG_PATH="${python.prefix}/lib/pkgconfig/" 43 55 44 56 post-patch { 45 57 reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/setupext.py 58 reinplace "s|@@PYTHON_BRANCH@@|${prefix}|" ${worksrcpath}/setupext.py 46 59 } 47 60 48 61 post-destroot { 49 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \ 50 ${destroot}${prefix}/share/${name} 62 if {${name} != ${subport}} { 63 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} \ 64 ${destroot}${prefix}/share/${subport} 51 65 xinstall -m 644 -W ${worksrcpath} CHANGELOG INSTALL \ 52 66 INTERACTIVE KNOWN_BUGS README.txt TODO \ 53 ${destroot}${prefix}/share/doc/${ name}67 ${destroot}${prefix}/share/doc/${subport} 54 68 file copy ${worksrcpath}/license \ 55 ${destroot}${prefix}/share/doc/${ name}69 ${destroot}${prefix}/share/doc/${subport} 56 70 file copy ${worksrcpath}/examples \ 57 ${destroot}${prefix}/share/${name} 71 ${destroot}${prefix}/share/${subport} 72 } 58 73 } 59 74 … … 65 80 } 66 81 67 platform darwin 8 {68 depends_lib-append port:py-pyobjc69 depends_lib-delete port:py-pyobjc2 port:py-pyobjc2-cocoa70 }71 72 82 variant cairo description "Enable Cairo backends" { 73 depends_lib-append port:py-cairo 83 if {${subport} == "py24-matplotlib"} { 84 depends_lib-append port:py-cario 85 } elseif {${subport} != ${name}} { 86 depends_lib-append port:py${python.version}-cairo 87 } 74 88 post-patch { 75 89 reinplace "s|MP_Cairo=False|MP_Cairo=True|" ${worksrcpath}/setupext.py … … 78 92 79 93 variant gtk2 description "Enable GTKAgg backend" { 80 depends_lib-append port:py-gtk2 94 if {${subport} == "py24-matplotlib"} { 95 depends_lib-append port:py-gtk 96 } elseif {${subport} != ${name}} { 97 depends_lib-append port:py${python.version}-gtk 98 } 81 99 post-patch { 82 100 reinplace "s|^gtk=False|gtk=True|" ${worksrcpath}/setup.cfg … … 86 104 87 105 variant tkinter description "Enable tkAgg backend" { 88 depends_lib-append port:py-tkinter 106 if {${subport} == "py24-matplotlib"} { 107 depends_lib-append port:py-tkinter 108 } elseif {${subport} != ${name}} { 109 depends_lib-append port:py${python.version}-tkinter 110 } 89 111 post-patch { 90 112 reinplace "s|^tkagg=False|tkagg=True|" ${worksrcpath}/setup.cfg … … 93 115 94 116 variant wxpython description "Enable wxAgg backend" { 95 depends_lib-append port:py-wxpython 117 if {${subport} == "py24-matplotlib"} { 118 depends_lib-append port:py-wxpython 119 } elseif {${subport} != ${name}} { 120 depends_lib-append port:py${python.version}-wxpython 121 } 96 122 post-patch { 97 123 reinplace "s|^wxagg=False|wxagg=True|" ${worksrcpath}/setup.cfg … … 100 126 101 127 variant qt4 description "Enable QT4Agg backend" { 102 depends_lib-append port:py-pyqt4 128 if {${subport} == "py24-matplotlib"} { 129 depends_lib-append port:py-pyqt4 130 } elseif {${subport} != ${name}} { 131 depends_lib-append port:py${python.version}-pyqt4 132 } 103 133 post-patch { 104 134 reinplace "s|MP_QT4=False|MP_QT4=True|" ${worksrcpath}/setupext.py … … 120 150 } 121 151 122 if { ![variant_isset gtk2] && ![variant_isset tkinter] && ![variant_isset wxpython] && ![variant_issetqt4] } {152 if { ![variant_isset gtk2] && ![variant_isset tkinter] && ![variant_isset qt4] } { 123 153 default_variants +tkinter 124 154 } 125 155 126 livecheck.type none 156 livecheck.type regex 157 livecheck.url ${homepage} 158 livecheck.regex {matplotlib (\d+(\.\d+)*) is available} -
trunk/dports/python/py-matplotlib/files/patch-setup.cfg.diff
r44330 r82495 1 1 --- setup.cfg 1970-01-01 01:00:00.000000000 +0100 2 +++ setup.cfg 20 08-12-16 12:27:37.000000000 +00002 +++ setup.cfg 2010-01-04 22:52:57.000000000 +0000 3 3 @@ -0,0 +1,9 @@ 4 4 +[gui_support] -
trunk/dports/python/py-matplotlib/files/patch-setupext.py.diff
r55206 r82495 1 --- setupext.py 2009-08- 01 14:15:24.000000000 -05002 +++ setupext.py 20 09-08-07 08:35:26.000000000 -05003 @@ -50, 8+50,7 @@1 --- setupext.py 2009-08-23 06:27:32.000000000 +0100 2 +++ setupext.py 2010-01-04 22:59:27.000000000 +0000 3 @@ -50,15 +50,7 @@ 4 4 'linux2' : ['/usr/local', '/usr'], 5 5 'linux' : ['/usr/local', '/usr',], 6 6 'cygwin' : ['/usr/local', '/usr',], 7 - ' darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local',7 - '_darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local', 8 8 - '/usr', '/sw'], 9 - # it appears builds with darwin are broken because of all the 10 - # different flags the deps can be compile with, so I am pushing 11 - # people to : 12 - # make -f make.osx fetch deps mpl_build mpl_install 13 - 14 - 'darwin' : [], 15 - 9 16 + 'darwin' : ['@@MPORTS_PREFIX@@'], 10 17 'freebsd4' : ['/usr/local', '/usr'], 11 18 'freebsd5' : ['/usr/local', '/usr'], 12 19 'freebsd6' : ['/usr/local', '/usr'], 13 @@ -32 0,6 +319,7 @@20 @@ -327,6 +319,7 @@ 14 21 [os.path.join(p, 'lib64') for p in basedir[sys.platform] ] ) 15 22 16 23 module.include_dirs.extend(incdirs) 17 + module.include_dirs.extend(['@@MPORTS_PREFIX@@/include/python 2.4'])24 + module.include_dirs.extend(['@@MPORTS_PREFIX@@/include/python@@PYTHON_BRANCH@@']) 18 25 module.include_dirs.append('.') 19 26 module.library_dirs.extend(libdirs) 20 27 21 @@ -9 49,10 +949,10 @@28 @@ -956,10 +949,10 @@ 22 29 return tcl_lib, tcl_inc, tk_lib, tk_inc 23 30 … … 34 41 35 42 def add_tk_flags(module): 36 @@ -9 73,52 +973,6 @@43 @@ -980,52 +973,6 @@ 37 44 raise RuntimeError('No tk/win32 support for this python version yet') 38 45 module.library_dirs.extend([os.path.join(sys.prefix, 'dlls')])
Note: See TracChangeset
for help on using the changeset viewer.

