> On Oct 26, 2014, at 3:27 PM, [email protected] wrote:
>
> Revision
> 127388
> Author
> [email protected]
> Date
> 2014-10-26 13:27:08 -0700 (Sun, 26 Oct 2014)
> Log Message
>
> kdesrc-build: do not use git commit as version; use cmake PortGroup; use
> perl_version for deps; change script perl to use macports
> Modified Paths
>
> • users/khindenburg/ports/kde/kdesrc-build/Portfile
> +post-configure {
> + reinplace "s|#!/usr/bin/env perl|#!${prefix}/bin/perl${perl_version}|g"
> ${worksrcpath}/${name}
> + reinplace "s|#!/usr/bin/env perl|#!${prefix}/bin/perl${perl_version}|g"
> ${worksrcpath}/kdesrc-build-setup
> +}
This is fine, but note that reinplace can take multiple filenames, and also
that it has a -W flag for specifying a working directory, so this can be
simplified to:
post-configure {
reinplace -W ${worksrcpath} "s|#!/usr/bin/env
perl|#!${prefix}/bin/perl${perl_version}|g" ${name} kdesrc-build-setup
}
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev