1c1,2
< # $Id: Portfile 33572 2008-01-30 14:21:35Z nox@macports.org $
---
> # -*- 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
> # $Id: Portfile $
5,6c6
< version		2.9.15
< revision    1
---
> version		3.0.0
8c8
< maintainers     stechert@macports.org
---
> maintainers     nomaintainer
11,17c11,17
< long_description	\
< 		Octave provides a convenient command line interface	\
< 		for solving linear and nonlinear problems numerically,	\
< 		using a language that is mostly compatible with Matlab.	\
< 		It is easily extensible and customizable via		\
< 		user-defined functions or using dynamically loaded	\
< 		modules written in e.g. C++, C or Fortran.
---
> long_description \
>     Octave provides a convenient command line interface	\
>     for solving linear and nonlinear problems numerically, \
>     using a language that is mostly compatible with Matlab. \
>     It is easily extensible and customizable via \
>     user-defined functions or using dynamically loaded	\
>     modules written in e.g. C++, C or Fortran.
20c20
< master_sites	ftp://ftp.octave.org/pub/octave/bleeding-edge/
---
> master_sites	ftp://ftp.octave.org/pub/octave/
23,59c23,83
< checksums	md5 c7c0449a5e1418479bebbdd565eb9cc2
< 
< patch.args	-p1
< patchfiles	patch-configure \
< 		patch-configure-2 \
< 		patch-dynamic-ld-cc
< 
< depends_build   bin:texinfo:texinfo	\
< 		bin:tex:teTeX \
< 		port:gawk \
< 		port:gsed
< 
< depends_lib     port:readline			\
< 		port:hdf5			\
< 		port:fftw-3			\
< 		port:metis			\
< 		port:SuiteSparse		\
< 		port:pcre			\
< 		port:glpk			\
< 		port:gnuplot
< 
< configure.args	--enable-shared	\
< 		--enable-dl	\
< 		--disable-static \
< 		--with-hdf5	\
< 		--with-fftw	\
< 		--without-mpi	\
< 		--with-blas="-framework Accelerate"
< 
< configure.env-append	AWK="${prefix}/bin/gawk" \
< 			SED="${prefix}/bin/gsed"
< build.env-append	AWK="${prefix}/bin/gawk" \
< 			SED="${prefix}/bin/gsed"
< 
< post-patch {
< 	# Avoid using heimdal's broken fnmatch.h
< 	reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/liboctave/glob-match.cc
---
> checksums	md5 d5512acdf60ac04398ff258cbc37f3c4 \
>     sha1 874b3d40db5d882e37614ffa6cdb9fdd71e173f8 \
>     rmd160 02fc58b63210ec99cfcad9dc2cee2ad1b6d11326
> 
> depends_build \
>     bin:gawk:gawk \
>     bin:gsed:gsed \
>     bin:perl:perl5.8 \
>     bin:gs:ghostscript \
>     bin:tex:texlive \
>     bin:makeinfo:texinfo \
>     bin:texi2dvi:texinfo \
>     bin:texi2pdf:texinfo
> 
> depends_lib \
>     port:ncurses \
>     port:qhull \
>     port:readline \
>     port:hdf5 \
>     port:fftw-3 \
>     port:metis \
>     port:SuiteSparse \
>     port:pcre \
>     port:glpk \
>     port:gnuplot \
>     port:curl
> 
> configure.args \
>     --enable-static \
>     --enable-shared \
>     --enable-dl \
>     --enable-readline \
>     --with-zlib	\
>     --with-hdf5	\
>     --with-fftw	\
>     --with-glpk	\
>     --with-curl	\
>     --with-blas=-"-framework Accelerate" \
>     --with-lapack \
>     --with-umfpack \
>     --with-colamd \
>     --with-ccolamd \
>     --with-cholmod \
>     --with-cxsparse
> 
> configure.env-append \
>     AWK="${prefix}/bin/gawk" \
>     SED="${prefix}/bin/gsed" \
>     PERL="${prefix}/bin/perl" \
>     PYTHON=' ' \
>     GHOSTSCRIPT="${prefix}/bin/gs" \
>     MAKEINFO="${prefix}/bin/makeinfo" \
>     TEXI2DVI="${prefix}/bin/texi2dvi" \
>     TEXI2PDF="${prefix}/bin/texi2pdf"
> 
> test.run	yes
> test.target	check
> 
> variant gcc43 {
> 	depends_lib-append	port:gcc43
> 	configure.f77		"${prefix}/bin/gfortran-mp-4.3"
62,88c86
< pre-destroot {
< 	file copy ${worksrcpath}/src/defaults.h ${worksrcpath}/src/defaults.h.tmp
< 	file copy ${worksrcpath}/src/oct-conf.h ${worksrcpath}/src/oct-conf.h.tmp
< }
< destroot.destdir	prefix=${destroot}${prefix}
< post-destroot {
< 	file rename -force ${worksrcpath}/src/defaults.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/defaults.h
< 	file rename -force ${worksrcpath}/src/oct-conf.h.tmp ${destroot}${prefix}/include/${name}-${version}/${name}/oct-conf.h
< }
< 
< if {![variant_isset g95]} {
< 	depends_lib-append	port:gcc42
< 	configure.compiler	macports-gcc-4.2
< }
< 
< default_variants +test
< variant test	{ depends_build-append	bin:runtest:dejagnu
< 		  test.run	yes
< 		  test.target	check
< 		}
< 
< variant ptex {
< 	depends_build-delete	bin:tex:teTeX
< 	depends_build-append	bin:tex:pTeX
< }
< 
< variant g95 {
---
> if {![variant_isset gcc43]} {
91c89,94
< 	configure.env-append	FFLAGS=-O2 MACOSX_DEPLOYMENT_TARGET=10.4
---
> }
> 
> post-patch {
>     reinplace "s|glp_lpx_simplex|_glp_lpx_simplex|g" ${worksrcpath}/configure
>     reinplace "s|-lcholmod|-lcholmod -lmetis|g" ${worksrcpath}/configure
>     reinplace "s|#define GLPK_PRE_4_14 1|#undef GLPK_PRE_4_14|g" ${worksrcpath}/configure
96c99
< livecheck.regex		Version (\\d+(\\.\\d+)*) is now available
---
> livecheck.regex		Version (\\d+(\\.\\d+)*)
