summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <sven.eden@gmx.de>2018-10-22 08:26:22 +0200
committerSven Eden <sven.eden@gmx.de>2018-10-22 08:26:22 +0200
commit72368f254e5db8fe551e11495f4a74c0a1a2cfd2 (patch)
tree2c4a2a2a5bd5bb97e5ea14dc4a705bb6b536a1f4
parentmedia-libs/allegro : Removed, these versions are obsolete. (diff)
downloadseden-72368f254e5db8fe551e11495f4a74c0a1a2cfd2.tar.gz
seden-72368f254e5db8fe551e11495f4a74c0a1a2cfd2.tar.bz2
seden-72368f254e5db8fe551e11495f4a74c0a1a2cfd2.zip
dev-util/codeblocks: Synced ebuild with portage version.
This fixes various issues with the ebuild. The only change meant to be in this r1 variant is the use of wxWidgets-gtk3. Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r--dev-util/codeblocks/codeblocks-9999-r1.ebuild46
1 files changed, 28 insertions, 18 deletions
diff --git a/dev-util/codeblocks/codeblocks-9999-r1.ebuild b/dev-util/codeblocks/codeblocks-9999-r1.ebuild
index 359c380..2e10e4c 100644
--- a/dev-util/codeblocks/codeblocks-9999-r1.ebuild
+++ b/dev-util/codeblocks/codeblocks-9999-r1.ebuild
@@ -1,12 +1,13 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI=6
+
WX_GTK_VER="3.0-gtk3"
-inherit autotools eutils subversion wxwidgets
+inherit autotools gnome2-utils subversion wxwidgets xdg-utils
-DESCRIPTION="The open source, cross platform, free C++ IDE"
+DESCRIPTION="The open source, cross platform, free C, C++ and Fortran IDE"
HOMEPAGE="http://www.codeblocks.org/"
LICENSE="GPL-3"
SLOT="0"
@@ -14,23 +15,25 @@ KEYWORDS=""
SRC_URI=""
ESVN_REPO_URI="svn://svn.code.sf.net/p/${PN}/code/trunk"
-IUSE="contrib debug pch static-libs"
+IUSE="contrib debug pch"
RDEPEND="app-arch/zip
x11-libs/wxGTK:${WX_GTK_VER}[X]
contrib? (
+ app-admin/gamin
app-text/hunspell
dev-libs/boost:=
- dev-libs/libgamin
)"
+
DEPEND="${RDEPEND}
+ >=dev-libs/tinyxml-2.6.2-r3
+ >=dev-util/astyle-3.1-r2:0/3.1
virtual/pkgconfig"
-src_unpack() {
- subversion_src_unpack
-}
+PATCHES=( "${FILESDIR}"/codeblocks-17.12-nodebug.diff )
src_prepare() {
+ default
# Let's make the autorevision work.
subversion_wc_info
CB_LCD=$(LC_ALL=C svn info "${ESVN_WC_PATH}" | grep "^Last Changed Date:" | cut -d" " -f4,5)
@@ -40,21 +43,28 @@ src_prepare() {
}
src_configure() {
- need-wxwidgets unicode
+ setup-wxwidgets
+
econf \
- --with-wx-config="${WX_CONFIG}" \
+ --disable-static \
$(use_enable debug) \
$(use_enable pch) \
- $(use_enable static-libs static) \
$(use_with contrib contrib-plugins all)
}
-src_compile() {
- emake clean-zipfiles
- emake
+pkg_postinst() {
+ if [[ ${WX_GTK_VER} == "3.0" || ${WX_GTK_VER} == "3.0-gtk3" ]]; then
+ elog "The symbols browser is disabled due to it causing crashes."
+ elog "For more information see https://sourceforge.net/p/codeblocks/tickets/225/"
+ fi
+
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ gnome2_icon_cache_update
}
-src_install() {
- default
- prune_libtool_files
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ gnome2_icon_cache_update
}