Quantcast

port livecheck does not find new mandoc

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

port livecheck does not find new mandoc

Jan Stary
This is 2.4.99 running on 10.6.8

port -d livecheck mandoc does not find
http://mdocml.bsd.lv/snapshots/mdocml-1.14.1.tar.gz
because it looks for "mandoc-(\d+(?:\.\d+)*)"
i.e. the tarball differs from the port name.
What is the right place to specify the right regex?

        Jan

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: port livecheck does not find new mandoc

Joshua Root-8
On 2017-3-31 03:41 , Jan Stary wrote:
> This is 2.4.99 running on 10.6.8
>
> port -d livecheck mandoc does not find
> http://mdocml.bsd.lv/snapshots/mdocml-1.14.1.tar.gz
> because it looks for "mandoc-(\d+(?:\.\d+)*)"
> i.e. the tarball differs from the port name.
> What is the right place to specify the right regex?

In this case it should just need livecheck.name set to mdocml.

See <https://guide.macports.org/chunked/reference.livecheck.html> for
more options.

- Josh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: port livecheck does not find new mandoc

Jan Stary
In reply to this post by Jan Stary
On Mar 30 18:41:26, [hidden email] wrote:
> This is 2.4.99 running on 10.6.8
>
> port -d livecheck mandoc does not find
> http://mdocml.bsd.lv/snapshots/mdocml-1.14.1.tar.gz
> because it looks for "mandoc-(\d+(?:\.\d+)*)"
> i.e. the tarball differs from the port name.
> What is the right place to specify the right regex?

I mean, Portfile says

        distname            mdocml-${version}

so why does livecheck look "mandoc-(\d+(?:\.\d+)*)" ?

        Jan

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: port livecheck does not find new mandoc

Joshua Root-8
On 2017-3-31 05:10 , Jan Stary wrote:

> On Mar 30 18:41:26, [hidden email] wrote:
>> This is 2.4.99 running on 10.6.8
>>
>> port -d livecheck mandoc does not find
>> http://mdocml.bsd.lv/snapshots/mdocml-1.14.1.tar.gz
>> because it looks for "mandoc-(\d+(?:\.\d+)*)"
>> i.e. the tarball differs from the port name.
>> What is the right place to specify the right regex?
>
> I mean, Portfile says
>
> distname            mdocml-${version}
>
> so why does livecheck look "mandoc-(\d+(?:\.\d+)*)" ?

Because the code doesn't attempt to split the version off of $distname
to derive the default livecheck.distname (that would be hard to get
right in the general case), it just uses $name.

- Josh

P.S. Please consider updating your list addresses to use macports.org
instead of macosforge.org.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: port livecheck does not find new mandoc

Jan Stary
In reply to this post by Joshua Root-8
On Mar 31 04:49:02, [hidden email] wrote:

> On 2017-3-31 03:41 , Jan Stary wrote:
> > This is 2.4.99 running on 10.6.8
> >
> > port -d livecheck mandoc does not find
> > http://mdocml.bsd.lv/snapshots/mdocml-1.14.1.tar.gz
> > because it looks for "mandoc-(\d+(?:\.\d+)*)"
> > i.e. the tarball differs from the port name.
> > What is the right place to specify the right regex?
>
> In this case it should just need livecheck.name set to mdocml.

Edited, thanks; new Portfile comming.

        Jan

Loading...