New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82098


Ignore:
Timestamp:
08/08/11 00:33:15 (4 years ago)
Author:
stromnov@…
Message:

unify py*-sympy

Location:
trunk/dports/python
Files:
10 added
3 deleted
1 edited

Legend:

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

    r67230 r82098  
    33 
    44PortSystem          1.0 
    5 PortGroup           python24 1.0 
     5PortGroup           python 1.0 
     6PortGroup           select 1.0 
    67 
    78name                py-sympy 
    8 version             0.6.6 
    9 categories          python math 
    10 maintainers         nomaintainer 
     9version             0.7.1 
     10revision            0 
     11categories-append   science math 
     12license             BSD 
     13platforms           darwin 
     14supported_archs     noarch 
     15 
     16maintainers         stromnov openmaintainer 
    1117 
    1218description         Python module for symbolic mathematics. 
     
    1824    not require any external libraries. 
    1925 
    20 platforms           darwin 
    21 distname            sympy-${version} 
    2226homepage            http://code.google.com/p/sympy/ 
    2327master_sites        googlecode:sympy 
    2428 
    25 checksums           md5     aa7be690a1df7e7415fe968f5e076733 \ 
    26                     sha1    aad5f919552a4e3710baee83ef0b2573d1950881 \ 
    27                     rmd160  663671a544d47ff25df407a6168affe7b7b89767 
     29checksums           md5     3847b5ed5c1531bf3c1b849dc2337253 \ 
     30                    sha1    b8609cc7e08d2883f96526ee8a4afdc90d77b911 \ 
     31                    rmd160  ba6f95435d72708a12e4c4285d82d5e51d38bce4 
    2832 
    29 post-destroot { 
    30     file delete ${destroot}${prefix}/bin/test ${destroot}${prefix}/bin/doctest 
    31     move ${destroot}${prefix}/bin/isympy \ 
    32          ${destroot}${prefix}/bin/isympy${python.branch} 
    33     move ${destroot}${prefix}/share/man/man1/isympy.1 \ 
    34          ${destroot}${prefix}/share/man/man1/isympy${python.branch}.1 
     33python.versions     24 25 26 27 
     34 
     35subport py24-sympy { 
     36    version         0.7.0 
     37    revision        0 
     38    checksums       md5     c4d00a7fe8c4cee4b3308e06bc475cf5 \ 
     39                    sha1    b95030d8901486d51692d1dd4fe689fb569c7ff7 \ 
     40                    rmd160  21df1e843865c52a51210542f93840e256366c3d 
     41} 
     42 
     43distname            sympy-${version} 
     44 
     45if {$subport != $name} { 
     46 
     47    post-destroot { 
     48        set gzip [findBinary gzip ${portutil::autoconf::gzip_path}] 
     49        if {$subport == "py24-sympy" || $subport == "py25-sympy"} { 
     50            move ${destroot}${prefix}/bin/isympy \ 
     51                 ${destroot}${prefix}/bin/isympy-${python.branch} 
     52            move ${destroot}${prefix}/share/man/man1/isympy.1 \ 
     53                 ${destroot}${prefix}/share/man/man1/isympy-${python.branch}.1 
     54            system "$gzip -9vf ${destroot}${prefix}/share/man/man1/isympy-${python.branch}.1" 
     55            file attributes ${destroot}${prefix}/share/man/man1/isympy-${python.branch}.1.gz \ 
     56                -permissions 00444 
     57        } else { 
     58            system "$gzip -9vf ${destroot}${python.prefix}/share/man/man1/isympy.1" 
     59            file attributes ${destroot}${python.prefix}/share/man/man1/isympy.1.gz -permissions 00444 
     60            ln -s ${python.prefix}/share/man/man1/isympy.1.gz \ 
     61                ${destroot}${prefix}/share/man/man1/isympy-${python.branch}.1.gz 
     62        } 
     63    } 
     64 
     65    depends_build       port:gzip 
     66    depends_run         port:py-sympy_select 
     67 
     68    select.group        py-sympy 
     69    select.file         ${filespath}/py${python.version}-sympy 
     70 
     71    notes \ 
     72"To make the Python ${python.branch} version of py-sympy the one that is run 
     73when you execute the commands without a version suffix, e.g. 'isympy', 
     74run: 
     75port select --set ${select.group} [file tail ${select.file}]" 
     76 
    3577} 
    3678 
Note: See TracChangeset for help on using the changeset viewer.