# Copyright 1999-2006 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 MY_P="${PN}-1.0rc2" S=${WORKDIR}/${MY_P} DESCRIPTION="free cross-platform C/C++ IDE" HOMEPAGE="http://www.codeblocks.org/" SRC_URI="mirror://sourceforge/codeblocks/${PN}-1.0rc2.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="gtk2 unicode" RDEPEND=">=x11-libs/wxGTK-2.6* >=x11-libs/gtk+" DEPEND="${RDEPEND} >=sys-devel/autoconf-2.5.0 >=sys-devel/automake-1.7 >=sys-devel/libtool-1.4" WX_GTK_VER="2.6" pkg_setup() { if use unicode ; then need-wxwidgets gtk2 need-wxwidgets unicode else need-wxwidgets gtk2 fi } S="${WORKDIR}/${MY_P}" src_unpack() { unpack "${A}" cd "${S}" || die "cd failed" epatch "${FILESDIR}/${P}.patch" } src_compile() { if [ -f /usr/share/aclocal/libtool.m4 ]; then cp /usr/share/aclocal/libtool.m4 aclocal.m4 fi edos2unix bootstrap acinclude.m4 configure.in src/update chmod a+x bootstrap acinclude.m4 src/update ./bootstrap edos2unix src/setup/mime/codeblocks.desktop src/setup/mime/codeblocks.applications econf --prefix=/usr --with-wx-config=wx-config-2.6 || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "make install failed" }