Re: [gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?)

2015-12-06 Thread Ulrich Mueller
> On Mon, 7 Dec 2015, Jason Zaman wrote: > Can we also have get_version_component_count() in there? > I have a package that likes to change the number of parts so I need > to know how many parts before I can split it up. > Basically this: > if [[ $(get_version_component_count) -eq 6 ]]; then

Re: [gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?)

2015-12-06 Thread Michał Górny
Dnia 7 grudnia 2015 06:37:50 CET, Jason Zaman napisał(a): >On Sat, Nov 28, 2015 at 10:14:39PM +0100, Ulrich Mueller wrote: >> Questions: >> 1. Will these three functions be sufficient, or have we overlooked >>anything important? > >Can we also have get_version_component_count() in there? > >

Re: [gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?)

2015-12-06 Thread Jason Zaman
On Sat, Nov 28, 2015 at 10:14:39PM +0100, Ulrich Mueller wrote: > Questions: > 1. Will these three functions be sufficient, or have we overlooked >anything important? Can we also have get_version_component_count() in there? I have a package that likes to change the number of parts so I need t

Re: [gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?)

2015-12-02 Thread Alexis Ballier
On Wed, 2 Dec 2015 13:04:19 +0100 Ulrich Mueller wrote: > > On Wed, 2 Dec 2015, Alexis Ballier wrote: > > > What's the point, need or advantage in moving this to > > all-ebuild-scope? > > > Usually eclass refactor/api cleanup are done in a -r{n+1} while > > deprecating -rn. This would h

Re: [gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?)

2015-12-02 Thread Ulrich Mueller
> On Wed, 2 Dec 2015, Alexis Ballier wrote: > What's the point, need or advantage in moving this to all-ebuild-scope? > Usually eclass refactor/api cleanup are done in a -r{n+1} while > deprecating -rn. This would have the advantage that you can quickly > post a complete implementation and ge

Re: [gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?)

2015-12-02 Thread Alexis Ballier
On Sat, 28 Nov 2015 22:14:39 +0100 Ulrich Mueller wrote: > As you may know, we intend to move the functionality of > versionator.eclass to the package manager, possibly in EAPI 7. > The following is what mgorny and myself have come up with, see > bug 482170 [1], especially comments 15 and 16 ther

Re: [gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?)

2015-11-29 Thread Michał Górny
On Mon, 30 Nov 2015 00:23:02 +0100 Peter Stuge wrote: > Ulrich Mueller wrote: > > 1. Will these three functions be sufficient, or have we overlooked > >anything important? > > Something that comes to mind as probably being semi-frequent is to > transform a version number component into a G

Re: [gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?)

2015-11-29 Thread Peter Stuge
Ulrich Mueller wrote: > 1. Will these three functions be sufficient, or have we overlooked >anything important? Something that comes to mind as probably being semi-frequent is to transform a version number component into a Gentoo -p number. Or do you suggest doing that by replacing the separa

[gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?)

2015-11-28 Thread Ulrich Mueller
As you may know, we intend to move the functionality of versionator.eclass to the package manager, possibly in EAPI 7. The following is what mgorny and myself have come up with, see bug 482170 [1], especially comments 15 and 16 there. Currently there are 15 functions defined in that eclass, and we