[77134] trunk/dports/science

Ryan Schmidt ryandesign at macports.org
Mon Mar 21 09:07:05 PDT 2011


On Mar 20, 2011, at 15:14, gwright at macports.org wrote:

> Revision: 77134
>          http://trac.macports.org/changeset/77134
> Author:   gwright at macports.org
> Date:     2011-03-20 13:14:51 -0700 (Sun, 20 Mar 2011)
> Log Message:
> -----------
> New port: lanHEP, version 3.1.1.  LanHEP computes Feynman
> rules (among other things) from user specified Langrangians.
> 
> Added Paths:
> -----------
>    trunk/dports/science/lanHEP/
>    trunk/dports/science/lanHEP/Portfile
> 
> Added: trunk/dports/science/lanHEP/Portfile
> ===================================================================
> --- trunk/dports/science/lanHEP/Portfile	                        (rev 0)
> +++ trunk/dports/science/lanHEP/Portfile	2011-03-20 20:14:51 UTC (rev 77134)
> @@ -0,0 +1,43 @@
> +# $Id: $

Don't forget to set svn:keywords to Id.

> +version		3.1.1
> +set shortversion	311

Consider computing shortversion based on version, so you don't have to update the version in two places every time.

> +depends_build	port:gcc42

$ sudo port install lanHEP
--->  Computing dependencies for lanHEP
--->  Dependencies to be installed: gcc42
--->  Fetching gcc42
Error: gcc42 does not build on Snow Leopard.
Error: Target org.macports.fetch returned: unsupported platform
Error: Failed to install gcc42

Can you perhaps add variants for newer gcc versions?

> +destroot {
> +	file copy ${workpath}/${distname}/lhep ${destroot}${prefix}/bin
> +	file mkdir ${destroot}${prefix}/share/${name}
> +	file copy ${workpath}/${distname}/mdl ${destroot}${prefix}/share/${name}/mdl
> +}

${workpath}/${distname} is more simply known as ${worksrcpath}.




More information about the macports-dev mailing list