There's a more recent ebuild somewhere linked here in this forum (link to a bug report). I have this ebuild myself and I used it the last time to compile rev3452 (3rd Jan. 07).
Here's a little howto (you have to be root):
1. create the directory
/usr/portage/local/codeblocks/dev-util/codeblocks/ mkdir -p /usr/portage/local/codeblocks/dev-util/codeblocks/2. Add
/usr/portage/local/codeblocks to the PORTAGE_OVERLAY variable in the make.conf
PORTDIR_OVERLAY="...
/usr/portage/local/codeblocks"
3. create a file in /usr/portage/local/codeblocks/dev-util/codeblocks/ with this naming format
codeblocks-YYYYMMDD.ebuild (specifying an exact revision doesn't work with this ebuild !)
4. go into
/usr/portage/local/codeblocks/dev-util/codeblocks/ and run
ebuild codeblocks-YYYYMMDD.ebuild digest5. finally
USE="contrib unicode" emerge -av codeblocks and codeblocks compiles
Here's the ebuild I use (the one that's also in the bug report ):
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
#
# WARNING:
# If you are using gtk2.8 you need to upgrade to wxGTK-2.6.2
#
inherit eutils autotools wxwidgets subversion
#needed for wxwidgets.eclass
WX_GTK_VER="2.6"
#needed for subversion
ESVN_REPO_URI="svn://svn.berlios.de/codeblocks/trunk"
ESVN_PROJECT="${P}"
ESVN_OPTIONS="-r {${PV}}"
DESCRIPTION="free cross-platform C/C++ IDE"
HOMEPAGE="http://www.codeblocks.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="unicode contrib debug"
RDEPEND="=x11-libs/wxGTK-${WX_GTK_VER}*"
DEPEND="${RDEPEND}
>=sys-devel/autoconf-2.5
>=sys-devel/automake-1.7
>=sys-devel/libtool-1.4"
pkg_setup() {
if use unicode; then
#check for gtk2-unicode
need-wxwidgets unicode
else
#check for gtk2-ansi
need-wxwidgets gtk2
fi
}
src_compile() {
local TMP
TMP="${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}"
einfo "Syncing $TMP into $S"
rsync -a "$TMP/" "$S" || die "rsync failed"
TMP="/usr/share/aclocal/libtool.m4"
einfo "Running ./bootstrap"
if [ -e "$TMP" ]; then
cp "$TMP" aclocal.m4 || die "cp failed"
fi
./bootstrap || die "boostrap failed"
econf --with-wx-config="${WX_CONFIG}" \
$(use_enable contrib) \
$(use_enable debug) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make install DESTDIR="${D}" || die "make install failed"
}