[66590] trunk/dports/devel

Rainer Müller raimue at macports.org
Sat Apr 17 15:04:58 PDT 2010


On 2010-04-17 23:05 , tommyd at macports.org wrote:
> +depends_lib-append  port:py-gtk2
> +
> +use_configure       no
> +
> +post-patch {
> +    reinplace "s|/usr/bin/env python|${prefix}/bin/python|g" \
> +        ${worksrcpath}/src/usr/bin/diffuse
> +}

No port provides ${prefix}/bin/python, so this cannot be used here. As
you declare a dependency on py-gtk2 you seem to prefer python24, so this
should be ${prefix}/bin/python2.4. But I would encourage to use some
more recent version of python. I would choose ${prefix}/bin/python2.6
and py26-gtk2.

> +
> +build {}
> +
> +destroot {
> +    system "cd ${worksrcpath} && ./install.py \
> +       --prefix=${prefix} \
> +       --destdir=${destroot} \
> +       --sysconfdir=${prefix}/etc"              
> +}

You also need to specify which python to use here to run the install.py
script.

Rainer


More information about the macports-dev mailing list