[127388] users/khindenburg/ports/kde/kdesrc-build/Portfile

Ryan Schmidt ryandesign at macports.org
Sun Oct 26 22:56:14 PDT 2014


> On Oct 26, 2014, at 3:27 PM, khindenburg at macports.org wrote:
> 
> Revision
> 127388
> Author
> khindenburg at macports.org
> 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
}




More information about the macports-dev mailing list