1 |
commit: 8597839fe14042f30a08c3d57574566ba8a5d8f7 |
2 |
Author: band-a-prend <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Fri Apr 27 00:51:57 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 5 20:09:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8597839f |
7 |
|
8 |
dev-util/codeblocks: ver. 17.12 for wxGTK:3.0-gtk3 |
9 |
|
10 |
Adding additional 'codeblocks-17.12-r300.ebuild' for building with wxGTK:3.0-gtk3 |
11 |
instead of wxGTK:2.8. |
12 |
|
13 |
This also contains USE flag 'fortran' (introduced in codeblocks-17.12.ebuild ) |
14 |
which controls the building of 'FortranProject plugin' for Code::Blocks IDE |
15 |
( https://sourceforge.net/projects/fortranproject/ ) |
16 |
after applying of 'FortranProject_autotools_build.diff' patch. |
17 |
|
18 |
Bug: bugs.gentoo.org/643494 |
19 |
|
20 |
dev-util/codeblocks/codeblocks-17.12-r300.ebuild | 85 ++++++++++++++++++++++++ |
21 |
1 file changed, 85 insertions(+) |
22 |
|
23 |
diff --git a/dev-util/codeblocks/codeblocks-17.12-r300.ebuild b/dev-util/codeblocks/codeblocks-17.12-r300.ebuild |
24 |
new file mode 100644 |
25 |
index 00000000000..7470b026d37 |
26 |
--- /dev/null |
27 |
+++ b/dev-util/codeblocks/codeblocks-17.12-r300.ebuild |
28 |
@@ -0,0 +1,85 @@ |
29 |
+# Copyright 1999-2018 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+ |
32 |
+EAPI=6 |
33 |
+ |
34 |
+WX_GTK_VER="3.0-gtk3" |
35 |
+ |
36 |
+inherit autotools flag-o-matic gnome2-utils wxwidgets xdg-utils |
37 |
+ |
38 |
+DESCRIPTION="The open source, cross platform, free C++ IDE" |
39 |
+HOMEPAGE="http://www.codeblocks.org/" |
40 |
+LICENSE="GPL-3" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd" |
43 |
+SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.tar.xz https://dev.gentoo.org/~leio/distfiles/${P}-fortran.tar.xz" |
44 |
+ |
45 |
+# USE="fortran" enables FortranProject plugin (v1.5) |
46 |
+# that is delivered with Code::Blocks 17.12 source code. |
47 |
+# https://sourceforge.net/projects/fortranproject |
48 |
+# http://cbfortran.sourceforge.net |
49 |
+ |
50 |
+IUSE="contrib debug fortran pch" |
51 |
+ |
52 |
+RDEPEND="app-arch/zip |
53 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X] |
54 |
+ contrib? ( |
55 |
+ app-text/hunspell |
56 |
+ dev-libs/boost:= |
57 |
+ dev-libs/libgamin |
58 |
+ )" |
59 |
+ |
60 |
+DEPEND="${RDEPEND} |
61 |
+ sys-devel/autoconf:2.69 |
62 |
+ sys-devel/automake |
63 |
+ virtual/pkgconfig" |
64 |
+ |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/codeblocks-17.12-nodebug.diff |
67 |
+ "${WORKDIR}"/patches/ |
68 |
+) |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ eautoreconf |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ setup-wxwidgets |
77 |
+ |
78 |
+ append-cxxflags $(test-flags-CXX -fno-delete-null-pointer-checks) |
79 |
+ |
80 |
+ # USE="contrib -fortran" setup: |
81 |
+ use fortran || CONF_WITH_LST=$(use_with contrib contrib-plugins all,-FortranProject) |
82 |
+ # USE="contrib fortran" setup: |
83 |
+ use fortran && CONF_WITH_LST=$(use_with contrib contrib-plugins all) |
84 |
+ # USE="-contrib fortran" setup: |
85 |
+ use contrib || CONF_WITH_LST=$(use_with fortran contrib-plugins FortranProject) |
86 |
+ |
87 |
+ econf \ |
88 |
+ --with-wx-config="${WX_CONFIG}" \ |
89 |
+ --disable-static \ |
90 |
+ $(use_enable debug) \ |
91 |
+ $(use_enable pch) \ |
92 |
+ ${CONF_WITH_LST} |
93 |
+} |
94 |
+ |
95 |
+pkg_postinst() { |
96 |
+ if [[ ${WX_GTK_VER} == "3.0" || ${WX_GTK_VER} == "3.0-gtk3" ]]; then |
97 |
+ elog "KNOWN ISSUE:" |
98 |
+ elog "The symbols browser is disabled in wx3.x builds due to it causes crashes." |
99 |
+ elog "For more information see ticket https://sourceforge.net/p/codeblocks/tickets/225/" |
100 |
+ elog "with related commits https://sourceforge.net/p/codeblocks/code/11027/" |
101 |
+ elog "and https://sourceforge.net/p/codeblocks/code/11141/" |
102 |
+ fi |
103 |
+ |
104 |
+ xdg_desktop_database_update |
105 |
+ xdg_mimeinfo_database_update |
106 |
+ gnome2_icon_cache_update |
107 |
+} |
108 |
+ |
109 |
+pkg_postrm() { |
110 |
+ xdg_desktop_database_update |
111 |
+ xdg_mimeinfo_database_update |
112 |
+ gnome2_icon_cache_update |
113 |
+} |