1 |
commit: 4103b7a5e8370a790cf542208b1f2429845eafc0 |
2 |
Author: band-a-prend <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Tue May 29 23:07:09 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 14 19:32:12 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4103b7a5 |
7 |
|
8 |
dev-util/codeblocks: update codeblocks-9999.ebuild |
9 |
|
10 |
Add updated codeblocks-9999.ebuild that is synced with codeblocks-17.12-r1.ebuild |
11 |
(has updated dependencies) and allow to build Codeblocks from svn trunk. |
12 |
|
13 |
The USE-flag 'fortran' removed in this ebuild-file as FortranProject plugin sources |
14 |
downloads from external svn repo and could requires from time to time changes |
15 |
of the autotools script patch to build successfully. |
16 |
|
17 |
dev-util/codeblocks/codeblocks-9999.ebuild | 44 ++++++++++++++++++------------ |
18 |
1 file changed, 27 insertions(+), 17 deletions(-) |
19 |
|
20 |
diff --git a/dev-util/codeblocks/codeblocks-9999.ebuild b/dev-util/codeblocks/codeblocks-9999.ebuild |
21 |
index 9296cc13443..1763fdfc078 100644 |
22 |
--- a/dev-util/codeblocks/codeblocks-9999.ebuild |
23 |
+++ b/dev-util/codeblocks/codeblocks-9999.ebuild |
24 |
@@ -1,12 +1,13 @@ |
25 |
# Copyright 1999-2018 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
-EAPI="5" |
29 |
+EAPI=6 |
30 |
+ |
31 |
WX_GTK_VER="3.0" |
32 |
|
33 |
-inherit autotools eutils subversion wxwidgets |
34 |
+inherit autotools gnome2-utils subversion wxwidgets xdg-utils |
35 |
|
36 |
-DESCRIPTION="The open source, cross platform, free C++ IDE" |
37 |
+DESCRIPTION="The open source, cross platform, free C, C++ and Fortran IDE" |
38 |
HOMEPAGE="http://www.codeblocks.org/" |
39 |
LICENSE="GPL-3" |
40 |
SLOT="0" |
41 |
@@ -14,23 +15,25 @@ KEYWORDS="" |
42 |
SRC_URI="" |
43 |
ESVN_REPO_URI="svn://svn.code.sf.net/p/${PN}/code/trunk" |
44 |
|
45 |
-IUSE="contrib debug pch static-libs" |
46 |
+IUSE="contrib debug pch" |
47 |
|
48 |
RDEPEND="app-arch/zip |
49 |
x11-libs/wxGTK:${WX_GTK_VER}[X] |
50 |
contrib? ( |
51 |
+ app-admin/gamin |
52 |
app-text/hunspell |
53 |
dev-libs/boost:= |
54 |
- dev-libs/libgamin |
55 |
)" |
56 |
+ |
57 |
DEPEND="${RDEPEND} |
58 |
+ >=dev-libs/tinyxml-2.6.2-r3 |
59 |
+ >=dev-util/astyle-3.1-r2:0/3.1 |
60 |
virtual/pkgconfig" |
61 |
|
62 |
-src_unpack() { |
63 |
- subversion_src_unpack |
64 |
-} |
65 |
+PATCHES=( "${FILESDIR}"/codeblocks-17.12-nodebug.diff ) |
66 |
|
67 |
src_prepare() { |
68 |
+ default |
69 |
# Let's make the autorevision work. |
70 |
subversion_wc_info |
71 |
CB_LCD=$(LC_ALL=C svn info "${ESVN_WC_PATH}" | grep "^Last Changed Date:" | cut -d" " -f4,5) |
72 |
@@ -40,21 +43,28 @@ src_prepare() { |
73 |
} |
74 |
|
75 |
src_configure() { |
76 |
- need-wxwidgets unicode |
77 |
+ setup-wxwidgets |
78 |
+ |
79 |
econf \ |
80 |
- --with-wx-config="${WX_CONFIG}" \ |
81 |
+ --disable-static \ |
82 |
$(use_enable debug) \ |
83 |
$(use_enable pch) \ |
84 |
- $(use_enable static-libs static) \ |
85 |
$(use_with contrib contrib-plugins all) |
86 |
} |
87 |
|
88 |
-src_compile() { |
89 |
- emake clean-zipfiles |
90 |
- emake |
91 |
+pkg_postinst() { |
92 |
+ if [[ ${WX_GTK_VER} == "3.0" || ${WX_GTK_VER} == "3.0-gtk3" ]]; then |
93 |
+ elog "The symbols browser is disabled due to it causing crashes." |
94 |
+ elog "For more information see https://sourceforge.net/p/codeblocks/tickets/225/" |
95 |
+ fi |
96 |
+ |
97 |
+ xdg_desktop_database_update |
98 |
+ xdg_mimeinfo_database_update |
99 |
+ gnome2_icon_cache_update |
100 |
} |
101 |
|
102 |
-src_install() { |
103 |
- default |
104 |
- prune_libtool_files |
105 |
+pkg_postrm() { |
106 |
+ xdg_desktop_database_update |
107 |
+ xdg_mimeinfo_database_update |
108 |
+ gnome2_icon_cache_update |
109 |
} |