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: Sat, 14 Jul 2018 19:33:28
Message-Id: 1531596424.31ffca401e7ae1076e7f828245f1435f06069b04.leio@gentoo
1 commit: 31ffca401e7ae1076e7f828245f1435f06069b04
2 Author: band-a-prend <torokhov-s-a <AT> yandex <DOT> ru>
3 AuthorDate: Sat May 26 20:32:03 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 14 19:27:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31ffca40
7
8 dev-util/codeblocks: init copy to 17-12-{r1,r301}
9
10 dev-util/codeblocks/codeblocks-17.12-r1.ebuild | 80 ++++++++++++++++++++++++
11 dev-util/codeblocks/codeblocks-17.12-r301.ebuild | 80 ++++++++++++++++++++++++
12 2 files changed, 160 insertions(+)
13
14 diff --git a/dev-util/codeblocks/codeblocks-17.12-r1.ebuild b/dev-util/codeblocks/codeblocks-17.12-r1.ebuild
15 new file mode 100644
16 index 00000000000..ed606b14c4a
17 --- /dev/null
18 +++ b/dev-util/codeblocks/codeblocks-17.12-r1.ebuild
19 @@ -0,0 +1,80 @@
20 +# Copyright 1999-2018 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +
23 +EAPI=6
24 +
25 +WX_GTK_VER="3.0"
26 +
27 +inherit autotools flag-o-matic gnome2-utils wxwidgets xdg-utils
28 +
29 +DESCRIPTION="The open source, cross platform, free C++ IDE"
30 +HOMEPAGE="http://www.codeblocks.org/"
31 +LICENSE="GPL-3"
32 +SLOT="0"
33 +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd"
34 +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.tar.xz https://dev.gentoo.org/~leio/distfiles/${P}-fortran.tar.xz"
35 +
36 +# USE="fortran" enables FortranProject plugin (v1.5)
37 +# that is delivered with Code::Blocks 17.12 source code.
38 +# https://sourceforge.net/projects/fortranproject
39 +# http://cbfortran.sourceforge.net
40 +
41 +IUSE="contrib debug fortran pch"
42 +
43 +RDEPEND="app-arch/zip
44 + x11-libs/wxGTK:${WX_GTK_VER}[X]
45 + contrib? (
46 + app-text/hunspell
47 + dev-libs/boost:=
48 + dev-libs/libgamin
49 + )"
50 +
51 +DEPEND="${RDEPEND}
52 + virtual/pkgconfig"
53 +
54 +PATCHES=(
55 + "${FILESDIR}"/codeblocks-17.12-nodebug.diff
56 + "${WORKDIR}"/patches/
57 +)
58 +
59 +src_prepare() {
60 + default
61 + eautoreconf
62 +}
63 +
64 +src_configure() {
65 + setup-wxwidgets
66 +
67 + append-cxxflags $(test-flags-CXX -fno-delete-null-pointer-checks)
68 +
69 + # USE="contrib -fortran" setup:
70 + use fortran || CONF_WITH_LST=$(use_with contrib contrib-plugins all,-FortranProject)
71 + # USE="contrib fortran" setup:
72 + use fortran && CONF_WITH_LST=$(use_with contrib contrib-plugins all)
73 + # USE="-contrib fortran" setup:
74 + use contrib || CONF_WITH_LST=$(use_with fortran contrib-plugins FortranProject)
75 +
76 + econf \
77 + --with-wx-config="${WX_CONFIG}" \
78 + --disable-static \
79 + $(use_enable debug) \
80 + $(use_enable pch) \
81 + ${CONF_WITH_LST}
82 +}
83 +
84 +pkg_postinst() {
85 + if [[ ${WX_GTK_VER} == "3.0" || ${WX_GTK_VER} == "3.0-gtk3" ]]; then
86 + elog "The symbols browser is disabled due to it causing crashes."
87 + elog "For more information see https://sourceforge.net/p/codeblocks/tickets/225/"
88 + fi
89 +
90 + xdg_desktop_database_update
91 + xdg_mimeinfo_database_update
92 + gnome2_icon_cache_update
93 +}
94 +
95 +pkg_postrm() {
96 + xdg_desktop_database_update
97 + xdg_mimeinfo_database_update
98 + gnome2_icon_cache_update
99 +}
100
101 diff --git a/dev-util/codeblocks/codeblocks-17.12-r301.ebuild b/dev-util/codeblocks/codeblocks-17.12-r301.ebuild
102 new file mode 100644
103 index 00000000000..3b627ef7a23
104 --- /dev/null
105 +++ b/dev-util/codeblocks/codeblocks-17.12-r301.ebuild
106 @@ -0,0 +1,80 @@
107 +# Copyright 1999-2018 Gentoo Foundation
108 +# Distributed under the terms of the GNU General Public License v2
109 +
110 +EAPI=6
111 +
112 +WX_GTK_VER="3.0-gtk3"
113 +
114 +inherit autotools flag-o-matic gnome2-utils wxwidgets xdg-utils
115 +
116 +DESCRIPTION="The open source, cross platform, free C++ IDE"
117 +HOMEPAGE="http://www.codeblocks.org/"
118 +LICENSE="GPL-3"
119 +SLOT="0"
120 +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd"
121 +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.tar.xz https://dev.gentoo.org/~leio/distfiles/${P}-fortran.tar.xz"
122 +
123 +# USE="fortran" enables FortranProject plugin (v1.5)
124 +# that is delivered with Code::Blocks 17.12 source code.
125 +# https://sourceforge.net/projects/fortranproject
126 +# http://cbfortran.sourceforge.net
127 +
128 +IUSE="contrib debug fortran pch"
129 +
130 +RDEPEND="app-arch/zip
131 + x11-libs/wxGTK:${WX_GTK_VER}[X]
132 + contrib? (
133 + app-text/hunspell
134 + dev-libs/boost:=
135 + dev-libs/libgamin
136 + )"
137 +
138 +DEPEND="${RDEPEND}
139 + virtual/pkgconfig"
140 +
141 +PATCHES=(
142 + "${FILESDIR}"/codeblocks-17.12-nodebug.diff
143 + "${WORKDIR}"/patches/
144 +)
145 +
146 +src_prepare() {
147 + default
148 + eautoreconf
149 +}
150 +
151 +src_configure() {
152 + setup-wxwidgets
153 +
154 + append-cxxflags $(test-flags-CXX -fno-delete-null-pointer-checks)
155 +
156 + # USE="contrib -fortran" setup:
157 + use fortran || CONF_WITH_LST=$(use_with contrib contrib-plugins all,-FortranProject)
158 + # USE="contrib fortran" setup:
159 + use fortran && CONF_WITH_LST=$(use_with contrib contrib-plugins all)
160 + # USE="-contrib fortran" setup:
161 + use contrib || CONF_WITH_LST=$(use_with fortran contrib-plugins FortranProject)
162 +
163 + econf \
164 + --with-wx-config="${WX_CONFIG}" \
165 + --disable-static \
166 + $(use_enable debug) \
167 + $(use_enable pch) \
168 + ${CONF_WITH_LST}
169 +}
170 +
171 +pkg_postinst() {
172 + if [[ ${WX_GTK_VER} == "3.0" || ${WX_GTK_VER} == "3.0-gtk3" ]]; then
173 + elog "The symbols browser is disabled due to it causing crashes."
174 + elog "For more information see https://sourceforge.net/p/codeblocks/tickets/225/"
175 + fi
176 +
177 + xdg_desktop_database_update
178 + xdg_mimeinfo_database_update
179 + gnome2_icon_cache_update
180 +}
181 +
182 +pkg_postrm() {
183 + xdg_desktop_database_update
184 + xdg_mimeinfo_database_update
185 + gnome2_icon_cache_update
186 +}