1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 inherit autotools subversion wxwidgets xdg-utils
10 DESCRIPTION="The open source, cross platform, free C, C++ and Fortran IDE"
11 HOMEPAGE="http://www.codeblocks.org/"
16 ESVN_REPO_URI="svn://svn.code.sf.net/p/${PN}/code/trunk"
17 ESVN_FETCH_CMD="svn checkout --ignore-externals"
19 IUSE="contrib debug pch"
21 BDEPEND="virtual/pkgconfig"
24 >=dev-libs/tinyxml-2.6.2-r3
25 >=dev-util/astyle-3.1-r2:0/3.1
26 x11-libs/wxGTK:${WX_GTK_VER}[X]
35 PATCHES=( "${FILESDIR}"/codeblocks-17.12-nodebug.diff )
39 # Let's make the autorevision work.
41 CB_LCD=$(LC_ALL=C svn info "${ESVN_WC_PATH}" | grep "^Last Changed Date:" | cut -d" " -f4,5)
42 echo "m4_define([SVN_REV], ${ESVN_WC_REVISION})" > revision.m4
43 echo "m4_define([SVN_DATE], ${CB_LCD})" >> revision.m4
54 $(use_with contrib contrib-plugins all)
58 elog "The Symbols Browser is disabled due to it causing crashes."
59 elog "For more information see https://sourceforge.net/p/codeblocks/tickets/225/"
61 xdg_desktop_database_update
63 xdg_mimeinfo_database_update
67 xdg_desktop_database_update
69 xdg_mimeinfo_database_update