# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools wxwidgets subversion ESVN_REPO_URI="svn://svn.berlios.de/codeblocks/trunk" ESVN_PROJECT="${P}" WX_GTK_VER="2.6" DESCRIPTION="free cross-platform C/C++ IDE" HOMEPAGE="http://www.codeblocks.org/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="gtk2 unicode debug" RDEPEND="=x11-libs/wxGTK-2.6* x11-libs/gtk+ !dev-util/codeblocks !dev-util/codeblocks-cvs" DEPEND="${RDEPEND} >=sys-devel/autoconf-2.5.0 >=sys-devel/automake-1.7 >=sys-devel/libtool-1.4 app-arch/zip" pkg_setup() { if use unicode ; then need-wxwidgets gtk2 need-wxwidgets unicode else need-wxwidgets gtk2 fi } src_compile() { cd ${S} epatch ${FILESDIR}/${P}.patch eautoreconf || die "Died in action: autoreconf..." einfo "Changing properties ..." && \ edos2unix ${S}/{bootstrap,src/update} && \ chmod a+rx ${S}/{bootstrap,src/update} && \ edos2unix ${S}/src/setup/mime/codeblocks.{desktop,applications} || \ die "Died in action: properties ..." ./bootstrap || die "Died in action: called bootstrap ..." econf --with-wx-config=wx-config-2.6 --enable-dependency-tracking \ $(use_enable debug) || die "Died in action: econf ..." make || die "Died in action: make ..." } src_install() { make DESTDIR="${D}" install || die "Died in action: make install ... " }