[MacPorts] #2488: scipy portfile

MacPorts noreply at macports.org
Thu Mar 24 07:54:54 PDT 2016


#2488: scipy portfile
-------------------------+--------------------
  Reporter:  erickt@…    |      Owner:  mww@…
      Type:  submission  |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  1.0
Resolution:  fixed       |   Keywords:
      Port:  py-scipy    |
-------------------------+--------------------
Changes (by ryandesign@…):

 * type:  defect => submission
 * port:   => py-scipy


Old description:

> Note: there are two files here, the portfile, and a patch. Btw, I copied
> the patch from fink, so I hope
> that's okay.
>
> =======
>
> PortSystem 1.0
> PortGroup python 1.0
>
> name            py-scipy
> version         0.3.2
> categories      python
> platforms       darwin
> description     An opensource library of scientific tools for Python
>
> master_sites    http://www.scipy.org/download/scipy/src/
> distname        SciPy_complete-${version}
> patchfiles      patch-scipy.diff
>
> depends_lib-append      lib:gnuplot:gnuplot \
>                         lib:fftw:fftw \
>                         lib:py-numeric:py-numeric \
>                         lib:py-f2py:py-f2py \
>                         lib:g77:g77
>
> use_configure           no
>
> worksrcdir              ${distname}
>
> build.cmd               python setup.py
> build.target            build
> build.env               LDFLAGS="-L${prefix}/lib"
>
> destroot.cmd            ${build.cmd}
> destroot.target         install
>
> =====
>
> --- scipy_core/scipy_distutils/gnufcompiler.py  Wed Feb 18 01:51:39 2004
> +++ scipy_core/scipy_distutils/gnufcompiler.py  Thu Mar  4 06:28:32 2004
> @@ -27,7 +27,7 @@
>          'compiler_f77' : [fc_exe,"-Wall","-fno-second-underscore"],
>          'compiler_f90' : None,
>          'compiler_fix' : None,
> -        'linker_so'    : [fc_exe],
> +        'linker_so'    : ['gcc -bundle -flat_namespace -undefined
> suppress'],
>          'archiver'     : ["ar", "-cr"],
>          'ranlib'       : ["ranlib"],
>          }
> @@ -52,7 +52,7 @@
>                  # This is when Python is from Apple framework
>                  opt.extend(["-Wl,-framework","-Wl,Python"])
>              #else we are running in Fink python.
> -            opt.extend(["-lcc_dynamic","-bundle"])
> +#           opt.extend(["-lcc_dynamic","-bundle"])
>          else:
>              opt.append("-shared")
>          if sys.platform[:5]=='sunos':
> @@ -94,6 +94,7 @@
>              opt.extend(['gcc',g2c])
>          else:
>              opt.append(g2c)
> +        opt.append('cc_dynamic')
>          return opt
>
>      def get_flags_debug(self):

New description:

 Note: there are two files here, the portfile, and a patch. Btw, I copied
 the patch from fink, so I hope
 that's okay.

 {{{
 PortSystem 1.0
 PortGroup python 1.0

 name            py-scipy
 version         0.3.2
 categories      python
 platforms       darwin
 description     An opensource library of scientific tools for Python

 master_sites    http://www.scipy.org/download/scipy/src/
 distname        SciPy_complete-${version}
 patchfiles      patch-scipy.diff

 depends_lib-append      lib:gnuplot:gnuplot \
                         lib:fftw:fftw \
                         lib:py-numeric:py-numeric \
                         lib:py-f2py:py-f2py \
                         lib:g77:g77

 use_configure           no

 worksrcdir              ${distname}

 build.cmd               python setup.py
 build.target            build
 build.env               LDFLAGS="-L${prefix}/lib"

 destroot.cmd            ${build.cmd}
 destroot.target         install
 }}}

 {{{
 --- scipy_core/scipy_distutils/gnufcompiler.py  Wed Feb 18 01:51:39 2004
 +++ scipy_core/scipy_distutils/gnufcompiler.py  Thu Mar  4 06:28:32 2004
 @@ -27,7 +27,7 @@
          'compiler_f77' : [fc_exe,"-Wall","-fno-second-underscore"],
          'compiler_f90' : None,
          'compiler_fix' : None,
 -        'linker_so'    : [fc_exe],
 +        'linker_so'    : ['gcc -bundle -flat_namespace -undefined
 suppress'],
          'archiver'     : ["ar", "-cr"],
          'ranlib'       : ["ranlib"],
          }
 @@ -52,7 +52,7 @@
                  # This is when Python is from Apple framework
                  opt.extend(["-Wl,-framework","-Wl,Python"])
              #else we are running in Fink python.
 -            opt.extend(["-lcc_dynamic","-bundle"])
 +#           opt.extend(["-lcc_dynamic","-bundle"])
          else:
              opt.append("-shared")
          if sys.platform[:5]=='sunos':
 @@ -94,6 +94,7 @@
              opt.extend(['gcc',g2c])
          else:
              opt.append(g2c)
 +        opt.append('cc_dynamic')
          return opt

      def get_flags_debug(self):
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/2488#comment:6>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list