You need special variables provided by an git eclass. Newest is git-r3.eclass which you can find in <path-to-portage-tree>/eclass/.
General docs are in devmanual.gentoo.org (which is mostly up-to-date). Here is an example in my overlay (inside the portage tree are several others, too): https://git.holgersson.xyz/holgersson-overlay/tree/games-fps/urbanterror/ urbanterror-9999.ebuild HTH, Nils -- GPG fingerprint: '00EF D31F 1B60 D5DB ADB8 31C1 C0EC E696 0E54 475B' Nils Freydank
signature.asc
Description: This is a digitally signed message part.