Ticket #34236: py-biggles.diff

File py-biggles.diff, 4.6 KB (added by jmroot (Joshua Root), 12 years ago)
  • python/py-biggles/Portfile

     
    11# $Id$
    22
    33PortSystem 1.0
    4 PortGroup python24 1.0
     4PortGroup python 1.0
    55
    66name             py-biggles
    7 version          1.6.5
    8 revision         1
     7version          1.6.6
    98categories       python graphics math science
    109platforms        darwin
    1110maintainers      deric
     
    1312long_description Biggles is a Python module for the creation of \
    1413                  publication-quality 2D scientific plots.
    1514homepage         http://biggles.sourceforge.net/
    16 master_sites     sourceforge:biggles
     15master_sites     sourceforge:project/biggles/biggles/${version}
    1716distname         python2-biggles-${version}
    18 checksums        md5     be1ba7a98cd58ce875e181bd60930b63 \
    19                  sha1    067f7fd2803bbdf148a29c48da10a667cf304aed \
    20                  rmd160  227ea00cbd73e3d2c502bd3398438fe5420559f6
     17checksums        md5     5a9cfdf9d8401e1705fce43e4e4adaca \
     18                 sha1    d2bcd0141845657189ef5834516e50e6cb777702 \
     19                 rmd160  a6b16ddfba224402693eca086666fbd6b51ce413
    2120
    22 depends_lib      lib:libplot.2.2:plotutils port:py24-numpy port:xorg-libXaw
     21python.versions  24 25 26 27
    2322
    24 build.target       build_ext
    25 build.args         -I${prefix}/include
    26 
    27 post-extract {
    28      # edit setup.py in accordance with INSTALL so that libplot_prefix points to MacPorts prefix
    29      system "sed \"s/\\/usr\\/local/[regsub -all {/} $prefix {\/}]/\" ${worksrcpath}/setup.py > ${worksrcpath}/setup.py.tmp"
    30      system "mv ${worksrcpath}/setup.py.tmp ${worksrcpath}/setup.py"
     23if {$subport != $name} {
     24    depends_lib      port:plotutils port:py${python.version}-numpy port:xorg-libXaw
     25   
     26    build.target       build_ext
     27    build.args         -I${prefix}/include
    3128}
  • python/py25-biggles/Portfile

     
    1 # $Id$
    2 
    3 PortSystem 1.0
    4 PortGroup python25 1.0
    5 
    6 name             py25-biggles
    7 version          1.6.5
    8 revision         1
    9 categories       python graphics math science
    10 platforms        darwin
    11 maintainers      macports.org:deric
    12 description      Creates 2D scientific plots
    13 long_description Biggles is a Python module for the creation of \
    14                   publication-quality 2D scientific plots.
    15 homepage         http://biggles.sourceforge.net/
    16 master_sites     sourceforge:biggles
    17 distname         python2-biggles-${version}
    18 checksums        md5     be1ba7a98cd58ce875e181bd60930b63 \
    19                  sha1    067f7fd2803bbdf148a29c48da10a667cf304aed \
    20                  rmd160  227ea00cbd73e3d2c502bd3398438fe5420559f6
    21 
    22 
    23 depends_lib      lib:libplot.2.2:plotutils port:py25-numpy port:xorg-libXaw
    24 
    25 build.target       build_ext
    26 build.args         -I${prefix}/include
    27 
    28 post-extract {
    29      # edit setup.py in accordance with INSTALL so that libplot_prefix points to MacPorts prefix
    30      system "sed \"s/\\/usr\\/local/[regsub -all {/} $prefix {\/}]/\" ${worksrcpath}/setup.py > ${worksrcpath}/setup.py.tmp"
    31      system "mv ${worksrcpath}/setup.py.tmp ${worksrcpath}/setup.py"
    32 }
  • python/py26-biggles/Portfile

     
    1 # $Id$
    2 
    3 PortSystem 1.0
    4 PortGroup python26 1.0
    5 
    6 name             py26-biggles
    7 version          1.6.5
    8 revision         1
    9 categories       python graphics math science
    10 platforms        darwin
    11 maintainers      deric
    12 description      Creates 2D scientific plots
    13 long_description Biggles is a Python module for the creation of \
    14                   publication-quality 2D scientific plots.
    15 homepage         http://biggles.sourceforge.net/
    16 master_sites     sourceforge:biggles
    17 distname         python2-biggles-${version}
    18 checksums        md5     be1ba7a98cd58ce875e181bd60930b63 \
    19                  sha1    067f7fd2803bbdf148a29c48da10a667cf304aed \
    20                  rmd160  227ea00cbd73e3d2c502bd3398438fe5420559f6
    21 
    22 
    23 depends_lib      lib:libplot.2.2:plotutils port:py26-numpy port:xorg-libXaw
    24 
    25 build.target       build_ext
    26 build.args         -I${prefix}/include
    27 
    28 post-extract {
    29      # edit setup.py in accordance with INSTALL so that libplot_prefix points to MacPorts prefix
    30      system "sed \"s/\\/usr\\/local/[regsub -all {/} $prefix {\/}]/\" ${worksrcpath}/setup.py > ${worksrcpath}/setup.py.tmp"
    31      system "mv ${worksrcpath}/setup.py.tmp ${worksrcpath}/setup.py"
    32 }