New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82495


Ignore:
Timestamp:
08/14/11 14:25:50 (4 years ago)
Author:
ram@…
Message:

python/py*-matplotlib: unify

Location:
trunk/dports/python
Files:
3 deleted
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-matplotlib/Portfile

    r82296 r82495  
    22 
    33PortSystem         1.0 
    4 PortGroup          python24 1.0 
     4PortGroup          python 1.0 
    55 
    66categories-append  graphics math 
    77name               py-matplotlib 
    8 version            0.99.0 
    9 revision           5 
    10 maintainers        nomaintainer 
     8version            1.0.1 
     9revision           4 
     10maintainers        ram openmaintainer 
    1111platforms          darwin 
    1212 
     
    2323distname           matplotlib-${version} 
    2424 
    25 checksums          md5 8e019e17396e816cc2ef52843532e727 \ 
    26                    sha1 5c267e96ecebe0654683b6325f423c53ae5ccd39 \ 
    27                    rmd160 e69f3d6c877e2854becf71a25e4ba56f2ced8735 
     25checksums          md5 2196c0482d5b33dc8d33f67bbafc1323 \ 
     26                   sha1 c7a832f28a66817626e7a8af21e14ea0e15f4008 \ 
     27                   rmd160 e3e326f7f31ef995253da483444cb593b8e6753b 
     28 
     29python.versions    24 25 26 27 
    2830 
    2931depends_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 
     34if {${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} 
    3748 
    3849patchfiles         patch-setupext.py.diff \ 
    3950                   patch-setup.cfg.diff \ 
    40                    patch-disable_optional_deps.diff 
     51                   patch-disable_optional_deps.diff \ 
     52                   patch-04b4e50919.diff 
    4153 
    42 build.env          MPLIB_BASE="${prefix}" 
     54build.env          MPLIB_BASE="${prefix}" PKG_CONFIG_PATH="${python.prefix}/lib/pkgconfig/" 
    4355 
    4456post-patch { 
    4557  reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/setupext.py 
     58  reinplace "s|@@PYTHON_BRANCH@@|${prefix}|" ${worksrcpath}/setupext.py 
    4659} 
    4760 
    4861post-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} 
    5165  xinstall -m 644 -W ${worksrcpath} CHANGELOG INSTALL \ 
    5266    INTERACTIVE KNOWN_BUGS README.txt TODO \ 
    53     ${destroot}${prefix}/share/doc/${name} 
     67    ${destroot}${prefix}/share/doc/${subport} 
    5468  file copy ${worksrcpath}/license \ 
    55     ${destroot}${prefix}/share/doc/${name} 
     69    ${destroot}${prefix}/share/doc/${subport} 
    5670  file copy ${worksrcpath}/examples \ 
    57     ${destroot}${prefix}/share/${name} 
     71    ${destroot}${prefix}/share/${subport} 
     72  } 
    5873} 
    5974 
     
    6580} 
    6681 
    67 platform darwin 8 { 
    68   depends_lib-append port:py-pyobjc 
    69   depends_lib-delete port:py-pyobjc2 port:py-pyobjc2-cocoa 
    70 } 
    71  
    7282variant 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  } 
    7488  post-patch { 
    7589    reinplace "s|MP_Cairo=False|MP_Cairo=True|" ${worksrcpath}/setupext.py 
     
    7892 
    7993variant 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  } 
    8199  post-patch { 
    82100    reinplace "s|^gtk=False|gtk=True|" ${worksrcpath}/setup.cfg 
     
    86104 
    87105variant 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  } 
    89111  post-patch { 
    90112    reinplace "s|^tkagg=False|tkagg=True|" ${worksrcpath}/setup.cfg 
     
    93115 
    94116variant 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  } 
    96122  post-patch { 
    97123    reinplace "s|^wxagg=False|wxagg=True|" ${worksrcpath}/setup.cfg 
     
    100126 
    101127variant 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  } 
    103133  post-patch { 
    104134    reinplace "s|MP_QT4=False|MP_QT4=True|" ${worksrcpath}/setupext.py 
     
    120150} 
    121151 
    122 if { ![variant_isset gtk2] && ![variant_isset tkinter] && ![variant_isset wxpython] && ![variant_isset qt4] } { 
     152if { ![variant_isset gtk2] && ![variant_isset tkinter] && ![variant_isset qt4] } { 
    123153  default_variants   +tkinter 
    124154} 
    125155 
    126 livecheck.type     none 
     156livecheck.type     regex 
     157livecheck.url      ${homepage} 
     158livecheck.regex    {matplotlib (\d+(\.\d+)*) is available} 
  • trunk/dports/python/py-matplotlib/files/patch-setup.cfg.diff

    r44330 r82495  
    11--- setup.cfg   1970-01-01 01:00:00.000000000 +0100 
    2 +++ setup.cfg   2008-12-16 12:27:37.000000000 +0000 
     2+++ setup.cfg   2010-01-04 22:52:57.000000000 +0000 
    33@@ -0,0 +1,9 @@ 
    44+[gui_support] 
  • trunk/dports/python/py-matplotlib/files/patch-setupext.py.diff

    r55206 r82495  
    1 --- setupext.py 2009-08-01 14:15:24.000000000 -0500 
    2 +++ setupext.py 2009-08-07 08:35:26.000000000 -0500 
    3 @@ -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 @@ 
    44     'linux2' : ['/usr/local', '/usr'], 
    55     'linux'  : ['/usr/local', '/usr',], 
    66     'cygwin' : ['/usr/local', '/usr',], 
    7 -    'darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local', 
     7-    '_darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local', 
    88-                '/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- 
    916+    'darwin' : ['@@MPORTS_PREFIX@@'], 
    1017     'freebsd4' : ['/usr/local', '/usr'], 
    1118     'freebsd5' : ['/usr/local', '/usr'], 
    1219     'freebsd6' : ['/usr/local', '/usr'], 
    13 @@ -320,6 +319,7 @@ 
     20@@ -327,6 +319,7 @@ 
    1421                      [os.path.join(p, 'lib64')     for p in basedir[sys.platform] ] ) 
    1522  
    1623     module.include_dirs.extend(incdirs) 
    17 +    module.include_dirs.extend(['@@MPORTS_PREFIX@@/include/python2.4']) 
     24+    module.include_dirs.extend(['@@MPORTS_PREFIX@@/include/python@@PYTHON_BRANCH@@']) 
    1825     module.include_dirs.append('.') 
    1926     module.library_dirs.extend(libdirs) 
    2027  
    21 @@ -949,10 +949,10 @@ 
     28@@ -956,10 +949,10 @@ 
    2229     return tcl_lib, tcl_inc, tk_lib, tk_inc 
    2330  
     
    3441  
    3542 def add_tk_flags(module): 
    36 @@ -973,52 +973,6 @@ 
     43@@ -980,52 +973,6 @@ 
    3744             raise RuntimeError('No tk/win32 support for this python version yet') 
    3845         module.library_dirs.extend([os.path.join(sys.prefix, 'dlls')]) 
Note: See TracChangeset for help on using the changeset viewer.