# 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 DESCRIPTION="free cross-platform C/C++ IDE" HOMEPAGE="http://www.codeblocks.org/" ESVN_REPO_URI="svn://svn.berlios.de/codeblocks/trunk" ESVN_PROJECT="${P}" ESVN_BOOTSTRAP="${S}/bootstrap" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="gtk2 unicode" RDEPEND="x11-libs/wxGTK x11-libs/gtk+" DEPEND="${RDEPEND} >=sys-devel/autoconf-2.5.0 >=sys-devel/automake-1.7 >=sys-devel/libtool-1.4" pkg_setup() { if use unicode ; then need-wxwidgets gtk2 need-wxwidgets unicode else need-wxwidgets gtk2 fi } src_unpack() { subversion_src_unpack cd ${S} epatch ${FILESDIR}/${P}.patch } src_compile() { eautoconf eaclocal eautomake elibtoolize edos2unix "${S}/{bootstrap,src/update}" chmod a+x "${S}/{bootstrap,src/update}" subversion_bootstrap # if ls /usr/share/aclocal/libtool.m4; then # cp /usr/share/aclocal/aclocal.m4 aclocal.m4 # fi # edos2unix bootstrap acinclude.m4 configure.in src/update # chmod a+x bootstrap acinclude.m4 src/update # ./bootstrap edos2unix "${S}/src/setup/mime/codeblocks.{desktop,applications}" cd ${S} econf --with-wx-config=wx-config-2.6 --prefix=/usr emake || die "emake failed" } src_install() { make DESTDIR="${D}" install }