[93780] trunk/dports/archivers/pbzip2/Portfile
Joshua Root
jmr at macports.org
Thu May 31 06:55:22 PDT 2012
On 2012-5-31 23:42 , Jeremy Lavergne wrote:
>> Yep, When doing that the links where absolute, the key is the call to
>> cd. As we don't have a cd macro anymore the only way I could see to do
>> this was using a system call.
>
> Ah I see, it wasn't a typo after all: you meant absolute paths not hard links.
>
> Here's one without a cd needed:
> ln -s ${prefix}/bin/pbunzip2 ${destroot}${prefix}/bin/pbunzip2
> ln -s ${prefix}/bin/pbunzip2 ${destroot}${prefix}/bin/pbzcat
>
> No matter where you move pbunzip2 and pbzcat from the destroot, they'll always point to ${prefix}/bin/pbunzip2.
Again, you don't have to link to an absolute path. This should do the
same thing as the version using system and cd:
ln -s pbzip2 ${destroot}${prefix}/bin/pbunzip2
ln -s pbzip2 ${destroot}${prefix}/bin/pbzcat
- Josh
More information about the macports-dev
mailing list