[MacPorts] #51535: perl5 portgroup: revise version numbering

MacPorts noreply at macports.org
Tue May 31 10:51:40 PDT 2016


#51535: perl5 portgroup: revise version numbering
----------------------+--------------------------------
  Reporter:  mojca@…  |      Owner:  macports-tickets@…
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:           |
----------------------+--------------------------------
Changes (by mojca@…):

 * cc: jmr@… (added)


Comment:

 Ryan, thank you for the pointer. I knew that some conversion is being
 done, but I wasn't 100% sure how it was done.

 I'm not saying that the functionality is necessarily broken in MP at the
 moment, but we do need special handling for the following ports at least:
 * `p5-pod-readme`
 * `p5-mouse`
 and
 {{{
 p5-list-uniq seems to have been updated (port version: v0.21.0, new
 version: 0.20)
 }}}


 I am slightly confused by examples like the following though:
 {{{
 p5-business-issn seems to have been updated (port version: 1.001, new
 version: 0.91)
 p5-config-simple seems to have been updated (port version: 4.59, new
 version: 4.58)
 p5-net-senderbase seems to have been updated (port version: 1.02, new
 version: 1.01)
 p5-sys-meminfo seems to have been updated (port version: 0.98, new
 version: 0.91)
 }}}

 My attempted change was:
 {{{
 #!patch
 --- perl5-1.0.tcl       (revision 149111)
 +++ perl5-1.0.tcl       (working copy)
 @@ -252,8 +252,8 @@
      }

      livecheck.type      regexm
 -    livecheck.url       http://search.cpan.org/dist/${perl5.module}/
 -    livecheck.regex
 _gaq.push\\(\\\["_setCustomVar",5,"Release","[quotemeta
 ${perl5.module}]-(\[^"\]+?)\"
 +    livecheck.url       http://api.metacpan.org/release/${perl5.module}/
 +    livecheck.regex     \"name\" : \"[quotemeta
 ${perl5.module}]-(\[^"\]+?)\"
      default livecheck.version {${perl5.moduleversion}}
  }

 }}}

 (I should have used the "version" field, but that probably wouldn't make
 much of a difference in this particular case.)

 I'm tired of manually filtering out experimental versions returned by
 current regexp from CPAN, so I wanted to get a cleaner list from metacpan
 which the Perl developers consider the better portal nowadays.

-- 
Ticket URL: <https://trac.macports.org/ticket/51535#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list