Fork me on GitHub

Using versionator to cut version

Gentoo Mono Handbook
 
Here is an example from mono-4.0.2.5.ebuild:
mono-4.0.2.5.ebuild: Compute ${S} with versionator instead of hard-coding 
https://github.com/gentoo/dotnet/commit/c90561cfd076f44422b831985c49e07c1a34ad13

-inherit eutils linux-info mono-env flag-o-matic pax-utils autotools-utils
+inherit eutils linux-info mono-env flag-o-matic pax-utils autotools-utils versionator
 
-S="${WORKDIR}/${PN}-4.0.2"
+S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"