Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #15222: Portfile3.diff

File Portfile3.diff, 4.3 kB (added by takeshi@…, 4 months ago)
  • Portfile

    old new  
    1 # $Id: Portfile 36526 2008-05-05 07:28:18Z takeshi@macports.org $ 
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 
     2# $Id: Portfile $ 
    23 
    34PortSystem 1.0 
    4  
    55name            octave 
    6 version         2.9.15 
    7 revision        2 
     6version         3.0.1 
    87categories      math science 
    9 maintainers     stechert@macports.org 
     8maintainers     stechert@macports.org alakazam@melix.net 
    109platforms       darwin 
    1110description     a Matlab-like environment for numerical analysis 
    1211long_description        \ 
     
    1817                modules written in e.g. C++, C or Fortran. 
    1918 
    2019homepage        http://www.octave.org 
    21 master_sites    ftp://ftp.octave.org/pub/octave/bleeding-edge/ 
     20master_sites    ftp://ftp.octave.org/pub/octave/ 
    2221 
    2322use_bzip2       yes 
    24 checksums       md5    c7c0449a5e1418479bebbdd565eb9cc2 \ 
    25                 sha1   4643c9681749bcb6cf7dd7190d82cc28484524b0 \ 
    26                 rmd160 bf0b56ae2a1c5baaacf65483f6fe98c1b885da03 
    27  
    28 patch.args      -p1 
    29 patchfiles      patch-configure.diff \ 
    30                 patch-configure-2.diff \ 
    31                 patch-dynamic-ld-cc.diff 
     23checksums       md5 230f3895a42386ec625bf2593a44c441 \ 
     24    sha1 e4cebe74a1182df610d91e45974653227dd4b342 \ 
     25    rmd160 3141454b1e9a8efcac0772aed63c27aaad082861 
    3226 
    3327depends_build   bin:texinfo:texinfo     \ 
    3428                bin:tex:teTeX \ 
     29                bin:tex:texlive \ 
     30                bin:tex:ptex \ 
     31                port:ghostscript \ 
    3532                port:gawk \ 
    36                 port:gsed 
     33                port:gsed \ 
     34                port:perl5.8 \ 
     35                port:texinfo 
    3736 
    3837depends_lib     port:readline                   \ 
    3938                port:curl                       \ 
     
    4342                port:SuiteSparse                \ 
    4443                port:pcre                       \ 
    4544                port:glpk                       \ 
    46                 port:gnuplot 
     45                port:gnuplot \ 
     46                port:ncurses \ 
     47                port:qhull \ 
    4748 
    4849configure.args  --enable-shared \ 
    4950                --enable-dl     \ 
    5051                --disable-static \ 
    5152                --with-hdf5     \ 
    5253                --with-fftw     \ 
    53                 --without-mpi   \ 
    54                 --with-blas="-framework Accelerate" 
     54                --with-blas="-framework Accelerate" \ 
     55                --enable-static \ 
     56                --enable-readline \ 
     57                --with-zlib     \ 
     58                --with-glpk     \ 
     59                --with-curl     \ 
     60                --with-lapack \ 
     61                --with-umfpack \ 
     62                --with-colamd \ 
     63                --with-ccolamd \ 
     64                --with-cholmod \ 
     65                --with-cxsparse 
    5566 
    5667configure.env-append    AWK="${prefix}/bin/gawk" \ 
    57                         SED="${prefix}/bin/gsed" 
    58 build.env-append        AWK="${prefix}/bin/gawk" \ 
    59                         SED="${prefix}/bin/gsed" 
    60  
    61 post-patch { 
    62         # Avoid using heimdal's broken fnmatch.h 
    63         reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/liboctave/glob-match.cc 
     68                        SED="${prefix}/bin/gsed" \ 
     69                        PERL="${prefix}/bin/perl" \ 
     70                        PYTHON=' ' \ 
     71                        GHOSTSCRIPT="${prefix}/bin/gs" \ 
     72                        MAKEINFO="${prefix}/bin/makeinfo" \ 
     73                        TEXI2DVI="${prefix}/bin/texi2dvi" \ 
     74                        TEXI2PDF="${prefix}/bin/texi2pdf" 
     75 
     76test.run        yes 
     77test.target     check 
     78 
     79variant gcc43 { 
     80        depends_lib-append      port:gcc43 
     81        configure.f77           "${prefix}/bin/gfortran-mp-4.3" 
    6482} 
    6583 
    66 pre-destroot { 
    67         file copy ${worksrcpath}/src/defaults.h ${worksrcpath}/src/defaults.h.tmp 
    68         file copy ${worksrcpath}/src/oct-conf.h ${worksrcpath}/src/oct-conf.h.tmp 
    69 } 
    70 destroot.destdir        prefix=${destroot}${prefix} 
    71 post-destroot { 
    72         file rename -force ${worksrcpath}/src/defaults.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/defaults.h 
    73         file rename -force ${worksrcpath}/src/oct-conf.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/oct-conf.h 
    74 } 
    75  
    76 if {![variant_isset g95]} { 
    77         depends_lib-append      port:gcc42 
    78         configure.compiler      macports-gcc-4.2 
    79 } 
    80  
    81 default_variants +test 
    82 variant test description {runs tests} { 
    83                   depends_build-append bin:runtest:dejagnu 
    84                   test.run      yes 
    85                   test.target   check 
    86                 } 
    87  
    88 variant ptex description {use pTeX instead of teTeX } { 
    89         depends_build-delete    bin:tex:teTeX 
    90         depends_build-append    bin:tex:pTeX 
    91 } 
    92  
    93 variant g95 description {build with g95} { 
     84if {![variant_isset gcc43]} { 
    9485        depends_lib-append      port:g95 
    9586        configure.f77   "${prefix}/bin/g95" 
    96         configure.fflags -O2 
     87} 
     88 
     89post-patch { 
     90    reinplace "s|glp_lpx_simplex|_glp_lpx_simplex|g" ${worksrcpath}/configure 
     91    reinplace "s|-lcholmod|-lcholmod -lmetis|g" ${worksrcpath}/configure 
     92    reinplace "s|#define GLPK_PRE_4_14 1|#undef GLPK_PRE_4_14|g" ${worksrcpath}/configure 
    9793} 
    9894 
    9995livecheck.check         regex 
    10096livecheck.url           http://www.gnu.org/software/octave/news.html 
    101 livecheck.regex         Version (\\d+(\\.\\d+)*) is now available 
     97livecheck.regex         Version (\\d+(\\.\\d+)*)