Changeset 44330


Ignore:
Timestamp:
Dec 26, 2008, 2:11:37 PM (9 years ago)
Author:
ram@…
Message:

python/py-matplotlib: sync with py25-matplotlib, closes #17765 & #17766

Location:
trunk/dports/python/py-matplotlib
Files:
1 edited
2 copied

Legend:

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

    r38954 r44330  
    66categories-append  graphics math
    77name               py-matplotlib
    8 version            0.98.3
     8version            0.98.5.1
    99maintainers        nomaintainer
    1010platforms          darwin
     
    2222distname           matplotlib-${version}
    2323
    24 checksums          md5 d6b579f52705df584650fb6f61302f92 \
    25                    sha1 9d3ded193cdbebf7d02aaf48372359eb3621a3eb \
    26                    rmd160 960356e1822aec9f196f60337730c0bc6d3531d6
     24checksums          md5 57c2dbe87642001ada2baca7c49c826f \
     25                   sha1 bb78b4a169b97fbebfc436771053473786e3126c \
     26                   rmd160 4c0ec6ec649ab954a002bea111e0185969639100
    2727
    2828depends_lib-append port:freetype \
     
    3030                   port:py-dateutil \
    3131                   port:py-tz \
    32                    port:py-numpy
     32                   port:py-numpy \
     33                   port:py-configobj
    3334
    34 patchfiles         patch-setupext.py.diff
     35patchfiles         patch-setupext.py.diff \
     36                   patch-setup.cfg.diff \
     37                   patch-disable_optional_deps.diff
    3538
    3639build.env          MPLIB_BASE="${prefix}"
    37 
    38 post-extract {
    39   if {[variant_isset gtk2]} {
    40     reinplace "s|^BUILD_GTKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTKAGG=1|" \
    41       ${worksrcpath}/setup.py
    42     reinplace "s|^BUILD_GTK\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTK=1|" \
    43       ${worksrcpath}/setup.py
    44   } else {
    45     reinplace "s|^BUILD_GTKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTKAGG=0|" \
    46       ${worksrcpath}/setup.py
    47     reinplace "s|^BUILD_GTK\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTK=0|" \
    48       ${worksrcpath}/setup.py
    49   }
    50   if {[variant_isset tkinter]} {
    51     reinplace "s|^BUILD_TKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_TKAGG=1|" \
    52       ${worksrcpath}/setup.py
    53   } else {
    54     reinplace "s|^BUILD_TKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_TKAGG=0|" \
    55       ${worksrcpath}/setup.py
    56   }
    57   if {[variant_isset wxpython]} {
    58     reinplace "s|^BUILD_WXAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_WXAGG=1|" \
    59       ${worksrcpath}/setup.py
    60   } else {
    61     reinplace "s|^BUILD_WXAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_WXAGG=0|" \
    62       ${worksrcpath}/setup.py
    63   }
    64 }
    6540
    6641post-patch {
     
    7146  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
    7247    ${destroot}${prefix}/share/${name}
    73   xinstall -m 644 -W ${worksrcpath} API_CHANGES CHANGELOG INSTALL \
     48  xinstall -m 644 -W ${worksrcpath} CHANGELOG INSTALL \
    7449    INTERACTIVE KNOWN_BUGS README.txt TODO \
    7550    ${destroot}${prefix}/share/doc/${name}
     
    8055}
    8156
    82 variant cairo description "Allow to use cairo for interactive plotting" {
     57post-activate {
     58  ui_msg "\nThe default backend is now the non-interactive Agg backend, different
     59backends can be specified using the ~/.matplotlib/matplotlibrc file.
     60More details, regarding backends, can be found in the matplotlib FAQ:
     61\nhttp://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend\n"
     62}
     63
     64variant cairo description "Enable Cairo backends" {
    8365  depends_lib-append port:py-cairo
     66  post-patch {
     67    reinplace "s|MP_Cairo=False|MP_Cairo=True|" ${worksrcpath}/setupext.py
     68  }
    8469}
    85 variant gtk2 conflicts tkinter wxpython description "Use GTKAgg for interactive plotting" {
     70
     71variant gtk2 description "Enable GTKAgg backend" {
    8672  depends_lib-append port:py-gtk
     73  post-patch {
     74    reinplace "s|^gtk=False|gtk=True|" ${worksrcpath}/setup.cfg
     75    reinplace "s|^gtkagg=False|gtkagg=True|" ${worksrcpath}/setup.cfg
     76  }
    8777}
    88 variant tkinter conflicts gtk2 wxpython description "Use tkAgg for interactive plotting" {
     78
     79variant tkinter description "Enable tkAgg backend" {
    8980  depends_lib-append port:py-tkinter
     81  post-patch {
     82    reinplace "s|^tkagg=False|tkagg=True|" ${worksrcpath}/setup.cfg
     83  }
    9084}
    91 variant wxpython conflicts gtk2 tkinter description "Use wxAgg for interactive plotting" {
     85
     86variant wxpython description "Enable wxAgg backend" {
    9287  depends_lib-append port:py-wxpython
     88  post-patch {
     89    reinplace "s|^wxagg=False|wxagg=True|" ${worksrcpath}/setup.cfg
     90  }
    9391}
     92
     93variant latex description "Enable LaTeX support" {
     94  depends_lib-append port:texlive
     95  post-patch {
     96    reinplace "s|MP_LaTeX=False|MP_LaTeX=True|" ${worksrcpath}/setupext.py
     97  }
     98}
     99
     100variant ghostscript description "Enable GhostScript support" {
     101  depends_lib-append port:ghostscript
     102  post-patch {
     103    reinplace "s|MP_GhostScript=False|MP_GhostScript=True|" ${worksrcpath}/setupext.py
     104  }
     105}
     106
    94107if { ![variant_isset gtk2] && ![variant_isset tkinter] && ![variant_isset wxpython] } {
    95108  default_variants   +tkinter
Note: See TracChangeset for help on using the changeset viewer.