There are two ways to name an ebuild which packages a snapshot version of a source repository:
${last_released_version}_pYYYYMMDD: treat the snapshot as a patch to the last released version.
${upcoming_version}_preYYYYMMDD: treat the snapshot as a prerelease of an upcoming version.
It's common to assume $upcoming_version to be 0 or 0.0.1 for repositories without tags.
See also: