In Gentoo Linux the Code::Blocks is available as dev-util/codeblocks package where build of application from upstream code is available as codeblocks-9999 package version.
Such package versions are unstable and therefore should be initially unmased (https://wiki.gentoo.org/wiki/Knowledge_Base:Unmasking_a_package) before trying to build and install.
The previous revision could be built with the aid of portage/ebuild helper ESVN_REVISION user variable (from subversion.eclass (https://devmanual.gentoo.org/eclass-reference/subversion.eclass/index.html)). I.e. to build revision 13485 the following command could be used after package version unmasking:
ESVN_REVISION=13485 emerge -1av =dev-util/codeblocks-9999
Unfortunately I don't know how to automatically download the SVN revision tarballs from Sourceforge so upstream versions aren't available in Gentoo in offline systems.