Fork me on GitHub

How to construct ebuild names for prerelease builds?

Gentoo Mono Handbook
 
Sometimes it is neccessary to have an ebuild for software, which was not released yet.

This can be done by postfixing version number:

https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-290003.2
zero or more of the suffixes _alpha, _beta, _pre, _rc or _p, which themselves may be followed by an optional integer. Suffix and integer count as separate version components.
nunit-3.0.0_alpha
nunit-3.0.0_beta
nunit-3.0.0_pre
nunit-3.0.0_pre_p20160101
nunit-3.0.0_pre_p20160101-r1
nunit-3.0.0_pre_alpha_p20160101
nunit-3.0.0_pre_alpha_p20160101-r1
nunit-3.0.0_rc1
nunit-3.0.0_rc2
nunit-3.0.0

I am unsure about ordering of "_pre_alpha" and "_alpha". For me it looks like _pre_alpfa will be preferred when two versions of ebuild exists, which mean that the above naming scheme is not very good (need to check this)

Also I am unsure about ordering of nunit-3.0.0 and nunit-3.0.0_p1 (looks like the latter supercedes the former, which is not correct)