[82777] trunk/dports/science

Ryan Schmidt ryandesign at macports.org
Fri Aug 19 17:49:10 PDT 2011


On Aug 19, 2011, at 19:37, mk at macports.org wrote:

> Revision: 82777
>          http://trac.macports.org/changeset/82777
> Author:   mk at macports.org
> Date:     2011-08-19 17:37:14 -0700 (Fri, 19 Aug 2011)
> Log Message:
> -----------
> science/scotch: new port


> +variant universal {
> +}
> +
> +if {[variant_isset universal]} {
> +    set archflags ${configure.universal_cflags}
> +} else {
> +    set archflags ${configure.cc_archflags}
> +}
> +
> +depends_lib         port:openmpi
> +
> +build.env-append    CC=${configure.cc} \
> +                    CXX=${configure.cxx} \
> +                    CFLAGS="${configure.cflags} ${archflags}" \
> +                    CXXFLAGS="${configure.cxxflags} ${archflags}" \
> +                    LDFLAGS="[join ${configure.ldflags}] ${archflags}"

Note that as of MacPorts 2, it's simpler to just call [get_canonical_archflags] instead of manually creating an ${archflags} variable. You do still need the empty "variant universal {}" though.


> +post-install {
> +	ui_msg \
> +"  ================================================================= \n \
> +Note that this port currently doesn't install any man pages. \n \
> +Please refer to documentation available at Scotch's project site. \n \
> +================================================================="
> +}

You should use the notes feature instead of manually calling ui_msg in post-install.

Or perhaps this particular message isn't needed; I think it will be obvious to the user that there are no manpages, and I think they will be smart enough to check the project's web page for assistance.




More information about the macports-dev mailing list