Ticket #46649: Patchfile-octave-1.x.diff

File Patchfile-octave-1.x.diff, 2.0 KB (added by Schamschula (Marius Schamschula), 10 years ago)
  • /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/octave-1.

    old new  
    1 # $Id: octave-1.0.tcl 114205 2013-12-02 15:29:03Z michaelld@macports.org $
     1# $Id: octave-1.1.tcl $
    22#
    33# Copyright (c) 2010 The MacPorts Project
    44# All rights reserved.
     
    3333#
    3434# Usage:
    3535#
    36 #   PortGroup               octave 1.0
     36#   PortGroup               octave 1.1
    3737#   octave.setup            module version
    3838#
    3939# where module is the name of the module (e.g. communications) and
     
    9292    }
    9393}
    9494
    95 post-patch {
     95configure {
    9696    # In 10.8+, set the locale to "C" otherwise /usr/bin/sed can fail
    9797    # with an error when processing unicode characters.
    9898
     
    123123
    124124}
    125125
    126 pre-configure {
     126pre-build {
    127127
    128128    # set parameters, now that variables are available for use
    129129
    130     configure.cmd ${prefix}/bin/octave
    131     configure.args -q -f --eval 'pkg build -verbose -nodeps ${worksrcpath} ${workpath}/.tmp/${octave.module}.tar.gz'
     130    build.cmd ${prefix}/bin/octave
     131    build.args -q -f --eval 'pkg build -verbose -nodeps ${worksrcpath} ${workpath}/.tmp/${octave.module}.tar.gz'
     132    build.target ""
    132133
    133134    # fix usage of LAPACK_LIBS to include FLIBS, such that -lgfortran
    134135    # is always paired with the appropriate -Lpath statement.
    135136
    136     configure.env-append \
     137    build.env-append \
    137138        LAPACK_LIBS='[exec ${prefix}/bin/mkoctfile -p FLIBS] [exec ${prefix}/bin/mkoctfile -p LAPACK_LIBS]'
    138139
    139140    platform darwin {
     
    143144            # /usr/bin/sed can fail with an error when processing
    144145            # unicode characters.
    145146
    146             configure.env-append LC_CTYPE="C"
     147            build.env-append LC_CTYPE="C"
    147148        }
    148149    }
    149150}
    150151
    151 # dummy build phase, since this has already been done
    152 
    153 build {}
    154 
    155152destroot.keepdirs   ${destroot}${prefix}/lib/octave/packages \
    156153                    ${destroot}${prefix}/share/octave/packages
    157154