Re: Help with zef Portfile

2023-11-26 Thread raf via macports-users
On Mon, Nov 27, 2023 at 06:08:00AM +1100, Joshua Root wrote: > raf wrote: > > > I tried just putting "system" before the command but it didn't work. > > I couldn't find the documentation for tcl's system, > > System isn't a standard Tcl thing, it's provided by MacPorts. It's closely > analogous

Re: Help with zef Portfile

2023-11-26 Thread Joshua Root
raf wrote: I tried just putting "system" before the command but it didn't work. I couldn't find the documentation for tcl's system, System isn't a standard Tcl thing, it's provided by MacPorts. It's closely analogous to system(3). It takes a single string which is passed to 'sh -c'. It's d

Re: Help with zef Portfile

2023-11-26 Thread raf via macports-users
On Sat, Nov 25, 2023 at 05:45:35PM +0100, Rainer Müller wrote: > On 25.11.23 16:07, Joshua Root wrote: > > The default destroot phase builds a string to pass to 'system' by > > combining destroot.cmd, destroot.args, etc. In this case, it might be > > easiest to use those for the rakudo command,

Re: Help with zef Portfile

2023-11-26 Thread raf via macports-users
On Sun, Nov 26, 2023 at 02:07:39AM +1100, Joshua Root wrote: > raf wrote: > > > The destroot part looks like this: > > > >destroot { > >"${prefix}/bin/rakudo" -I"${worksrcpath}" bin/zef \ > >--to="inst#${destroot}${prefix}/share/perl6/site" \ > >install "${wo

Re: Help with zef Portfile

2023-11-25 Thread Rainer Müller
On 25.11.23 16:07, Joshua Root wrote: The default destroot phase builds a string to pass to 'system' by combining destroot.cmd, destroot.args, etc. In this case, it might be easiest to use those for the rakudo command, and create the symlinks in a post-destroot block? Also note that all files

Re: Help with zef Portfile

2023-11-25 Thread Joshua Root
raf wrote: The destroot part looks like this: destroot { "${prefix}/bin/rakudo" -I"${worksrcpath}" bin/zef \ --to="inst#${destroot}${prefix}/share/perl6/site" \ install "${worksrcpath}" ln -s "${prefix}/share/perl6/site/bin/zef" "${prefix}/bin/zef"