# 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 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" pkg_setup() { if ! built_with_use x11-libs/wxGTK gtk2; then die "Build x11-libs/wxGTK with USE=gtk2." fi } src_unpack() { unpack ${MY_P}.tgz cd ${WORKDIR}/${MY_P} || die "cd failed" epatch ${FILESDIR}/${P}.patch } src_compile() { 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 src/setup/mime/codeblocks.desktop src/setup/mime/codeblocks.applications econf || die "econf failed" emake || die "emake failed" } src_install() { einstall || die "einstall failed" }