how to make a perl module dependent of another module with a minimum version
Ryan Schmidt
ryandesign at macports.org
Tue Apr 1 22:34:45 PDT 2014
On Apr 1, 2014, at 12:07, Joël Brogniart wrote:
> I'd like to update the p5-email-mime perl module to version 1.926. But that version depends on p5-email-mime-contenttype version >= 1.016. So I made a p5-email-mime-contenttype update, but I don't know how to specify in the p5-email-mime portfile the minimum version for the p5-email-mime-contenttype module.
>
> Is it possible to add a version condition?
> Could I use:
> depends_lib-append port:p${perl5.major}-email-mime-contenttype >= 1.016
There is no capability to specify versions in dependencies. But it is not necessary to do so. If p5-email-mime 1.926 requires p5-email-mime-contenttype >= 1.016, then we simply commit the update to the p5-email-mime-contenttype port making it 1.016 first, followed by committing the update to the p5-email-mime port. Then you can be sure that any user who has the p5-email-mime 1.926 portfile also has the p5-email-mime-contenttype 1.016 portfile, and when they try to install or upgrade p5-email-mime, its dependencies will be installed or upgraded first.
More information about the macports-dev
mailing list