[82650] trunk/dports/math/pspp-devel

Ryan Schmidt ryandesign at macports.org
Wed Aug 17 09:03:59 PDT 2011


On Aug 17, 2011, at 10:47, snc at macports.org wrote:

> Revision: 82650
>          http://trac.macports.org/changeset/82650
> Author:   snc at macports.org
> Date:     2011-08-17 08:47:32 -0700 (Wed, 17 Aug 2011)
> Log Message:
> -----------
> pspp-devel:
> * update to g72ee64
> * make use of app PortGroup
> 
> Modified Paths:
> --------------
>    trunk/dports/math/pspp-devel/Portfile

> +post-extract {
> +    if {[variant_isset gui]} {
> +        copy ${filespath}/psppire ${worksrcpath}
> +        copy ${filespath}/logo.png ${worksrcpath}
> +    }
> +}

Note that you don't need to copy the image into worksrcpath; you can leave it right there in filespath and just tell app.icon about its location in filespath.

> +patch {
> +    reinplace s|@PREFIX@|${prefix}| ${worksrcpath}/psppire
> +}

It looks like the patch phase will fail if the gui variant is not set.

It might be simpler to group all the gui things together inside the gui variant, no?




More information about the macports-dev mailing list