[92003] trunk/dports/lang

Ryan Schmidt ryandesign at macports.org
Sun Apr 15 16:27:21 PDT 2012


On Apr 15, 2012, at 17:04, takeshi at macports.org wrote:

> Revision: 92003
>          https://trac.macports.org/changeset/92003
> Author:   takeshi at macports.org
> Date:     2012-04-15 15:04:07 -0700 (Sun, 15 Apr 2012)
> Log Message:
> -----------
> berkeley_upc: adding Berkeley UPC
> 
> Added Paths:
> -----------
>    trunk/dports/lang/berkeley_upc/
>    trunk/dports/lang/berkeley_upc/Portfile
>    trunk/dports/lang/berkeley_upc/files/
>    trunk/dports/lang/berkeley_upc/files/patch-configure.diff
> 
> Added: trunk/dports/lang/berkeley_upc/Portfile
> ===================================================================
> --- trunk/dports/lang/berkeley_upc/Portfile	                        (rev 0)
> +++ trunk/dports/lang/berkeley_upc/Portfile	2012-04-15 22:04:07 UTC (rev 92003)
> @@ -0,0 +1,90 @@
> +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
> +# $Id$
> +
> +PortSystem          1.0
> +
> +name                berkeley_upc
> +version             2.14.0
> +categories          lang science parallel
> +maintainers         takeshi
> +description         Unified Parallel C runtime
> +license             BSD LGPL GPL-3
> +long_description    \
> +    This is the runtime component of the Berkeley UPC compiler. \
> +    It also contains the 'upcc' front end to the UPC compilation system.
> +homepage            http://upc.lbl.gov/
> +platforms           darwin
> +master_sites        ${homepage}/download/release/

This download URL becomes "http://upc.lbl.gov//download/release/". To avoid that unsightly double slash, master_sites should be set to "${homepage}download/release/".


> +configure.args-append \
> +                    --prefix=${prefix}/lib/${name} \

--prefix=${prefix} is already in configure.pre_args; if you want to set a different --prefix, do so by overriding configure.pre_args.


> +depends_lib         port:openmpi \
> +                    bin:perl:perl5


> +variant gcc44 conflicts gcc45 description {build with gcc44} {
> +    depends_lib port:gcc44
> +    configure.compiler  macports-gcc-4.4
> +}
> +
> +variant gcc45 conflicts gcc44 description {build with gcc45} {
> +    depends_lib port:gcc45
> +    configure.compiler  macports-gcc-4.5
> +}


The depends_lib in the gcc variants is overwriting the portfile's global depends_lib; in the variants, you should append to the dependencies rather than overwriting them.




More information about the macports-dev mailing list