Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/codeblocks/
Date: Mon, 20 Jan 2020 10:10:40
Message-Id: 1579515024.b8fe3d55b8e12e0977a7289d9e64e7eb95374f1e.leio@gentoo
1 commit: b8fe3d55b8e12e0977a7289d9e64e7eb95374f1e
2 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
3 AuthorDate: Sun Jan 12 20:47:12 2020 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 20 10:10:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8fe3d55
7
8 dev-util/codeblocks: bump 17.12-r302 to migrate to EAPI-7 and to fix RDEPEND
9
10 Closes: https://github.com/gentoo/gentoo/pull/14305
11 Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
12 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
13
14 dev-util/codeblocks/codeblocks-17.12-r302.ebuild | 83 ++++++++++++++++++++++++
15 1 file changed, 83 insertions(+)
16
17 diff --git a/dev-util/codeblocks/codeblocks-17.12-r302.ebuild b/dev-util/codeblocks/codeblocks-17.12-r302.ebuild
18 new file mode 100644
19 index 00000000000..e7e1bf80857
20 --- /dev/null
21 +++ b/dev-util/codeblocks/codeblocks-17.12-r302.ebuild
22 @@ -0,0 +1,83 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +WX_GTK_VER="3.0-gtk3"
29 +
30 +inherit autotools wxwidgets xdg-utils
31 +
32 +DESCRIPTION="The open source, cross platform, free C, C++ and Fortran IDE"
33 +HOMEPAGE="http://www.codeblocks.org/"
34 +LICENSE="GPL-3"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~ppc ~x86"
37 +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.tar.xz
38 +https://dev.gentoo.org/~leio/distfiles/${P}-fortran.tar.xz
39 +https://dev.gentoo.org/~leio/distfiles/${P}_update_astyle_plugin_to_v3.1.patch.xz"
40 +
41 +# USE="fortran" enables FortranProject plugin (v1.5)
42 +# that is delivered with Code::Blocks 17.12 source code.
43 +# https://sourceforge.net/projects/fortranproject
44 +# http://cbfortran.sourceforge.net
45 +
46 +IUSE="contrib debug fortran pch"
47 +
48 +BDEPEND="virtual/pkgconfig"
49 +
50 +RDEPEND="app-arch/zip
51 + >=dev-libs/tinyxml-2.6.2-r3
52 + >=dev-util/astyle-3.0.1-r1:0=
53 + x11-libs/wxGTK:${WX_GTK_VER}[X]
54 + contrib? (
55 + app-admin/gamin
56 + app-text/hunspell
57 + dev-libs/boost:=
58 + )"
59 +
60 +DEPEND="${RDEPEND}"
61 +
62 +PATCHES=(
63 + "${FILESDIR}"/codeblocks-17.12-nodebug.diff
64 + "${WORKDIR}"/patches/
65 + )
66 +
67 +src_prepare() {
68 + default
69 + if has_version ">=dev-util/astyle-3.1" ; then
70 + eapply "${WORKDIR}"/codeblocks-17.12_update_astyle_plugin_to_v3.1.patch
71 + fi
72 + eautoreconf
73 +}
74 +
75 +src_configure() {
76 + setup-wxwidgets
77 +
78 + # USE="contrib -fortran" setup:
79 + use fortran || CONF_WITH_LST=$(use_with contrib contrib-plugins all,-FortranProject)
80 + # USE="contrib fortran" setup:
81 + use fortran && CONF_WITH_LST=$(use_with contrib contrib-plugins all)
82 + # USE="-contrib fortran" setup:
83 + use contrib || CONF_WITH_LST=$(use_with fortran contrib-plugins FortranProject)
84 +
85 + econf \
86 + --disable-static \
87 + $(use_enable debug) \
88 + $(use_enable pch) \
89 + ${CONF_WITH_LST}
90 +}
91 +
92 +pkg_postinst() {
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 +
96 + xdg_desktop_database_update
97 + xdg_icon_cache_update
98 + xdg_mimeinfo_database_update
99 +}
100 +
101 +pkg_postrm() {
102 + xdg_desktop_database_update
103 + xdg_icon_cache_update
104 + xdg_mimeinfo_database_update
105 +}