How to install a perl packages that is not available in mac port?
ryandesign at macports.org
Sun Aug 14 09:20:58 PDT 2011
On Aug 14, 2011, at 10:49, Peng Yu wrote:
> On Sun, Aug 14, 2011 at 9:29 AM, Ryan Schmidt wrote:
>> On Aug 14, 2011, at 09:22, Peng Yu wrote:
>>> I'm wondering how to install a perl package if it is not available on
>>> mac port. I remember that I can not use cpan, as it will mess up with
>>> port installation.
>> Correct, using cpan, or other non-MacPorts methods, to install files into the MacPorts prefix, is not recommended.
>>> I tried the following. But I'm not sure how to install once the
>>> package is built on my machine.
>> Using cpan2port is a great way to get a start at a Portfile that can be used to install the port.
>> Testing a local portfile is easy. Simply "cd" into the new port's directory and type "sudo port install".
>> Once you have a port that works, you can submit it by creating a ticket in the issue tracker.
> It is not quite clear to me how to submit the package that ported.
To submit a port, file a new ticket in the issue tracker and attach the portfile and any needed patches.
> to specify the dependencies? Would you please let me know?
cpan2port ought to have put all the dependencies into the port for you already. If it missed some, add them yourself. Add the required ports to depends_lib for example.
> Also, is there a chance that a cpan package will not work with port?
There's always a chance...
> If it is always going to work, can we automatically port all cpan
> packages to mac port so that less human intervention is needed?
We haven't tried them all yet, so we don't know if they all work. We want ports that have been tested by someone, not a batch of things automatically created that might not work. We also don't want to waste time creating ports nobody is using.
More information about the macports-users