[84109] trunk/dports/python

Ryan Schmidt ryandesign at macports.org
Sat Sep 17 08:26:59 PDT 2011


On Sep 17, 2011, at 07:29, adfernandes at macports.org wrote:

> Revision: 84109
>          http://trac.macports.org/changeset/84109
> Author:   adfernandes at macports.org
> Date:     2011-09-17 05:29:34 -0700 (Sat, 17 Sep 2011)
> Log Message:
> -----------
> new port: py27-pylibelf : using py27, cannot get it to work with the python portgroup, advice appreciated

What problems are you experiencing?


> +patch.pre_args  -p1
> +patchfiles      setup.diff
> +
> +checksums   files/setup.diff \
> +            sha1   33cff8a1ccfb1537e8d6b54899ec4d44eed499ac \
> +            rmd160 89362c1af28818fb5d2cba83094269aa9c0afe0b

MacPorts won't attempt to verify checksums of patchfiles already in the files directory so you can delete these checksums.


> +post-patch {
> +    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
> +    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/constfile2cython.py
> +}

Reinplace accepts any number of arguments for any number of files in which to do the substitution so you can simplify this to:

post-patch {
    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py \
        ${worksrcpath}/constfile2cython.py
}





More information about the macports-dev mailing list