| 1 |
|
# Copyright 1999-2026 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| 5 |
5 |
|
| 6 |
6 |
WX_GTK_VER="3.2-gtk3"
|
| 7 |
7 |
|
| 8 |
|
inherit autotools flag-o-matic multiprocessing wxwidgets xdg
|
| 9 |
|
|
| 10 |
|
REV=13518
|
| 11 |
|
REV_DATE="2024-05-05 20:30:28"
|
| 12 |
|
FP_NAME=fortranproject
|
| 13 |
|
FP_REV=378
|
|
8 |
inherit autotools flag-o-matic multiprocessing subversion wxwidgets xdg
|
| 14 |
9 |
|
| 15 |
10 |
DESCRIPTION="The open source, cross platform, free C, C++ and Fortran IDE"
|
| 16 |
11 |
HOMEPAGE="https://www.codeblocks.org/"
|
| 17 |
|
SRC_URI="https://downloads.sourceforge.net/${PN}/${P/-/_}.tar.xz -> ${P}.tar.xz"
|
| 18 |
|
S="${WORKDIR}/${P/-/_}"
|
| 19 |
|
|
| 20 |
12 |
LICENSE="GPL-3"
|
| 21 |
13 |
SLOT="0"
|
| 22 |
|
KEYWORDS="~amd64 ~ppc ~x86"
|
|
14 |
ESVN_REPO_URI="svn://svn.code.sf.net/p/${PN}/code/trunk"
|
|
15 |
ESVN_FETCH_CMD="svn checkout --ignore-externals"
|
|
16 |
ESVN_UPDATE_CMD="svn update --ignore-externals"
|
| 23 |
17 |
|
| 24 |
|
IUSE="fortran contrib debug"
|
|
18 |
IUSE="contrib debug"
|
| 25 |
19 |
|
| 26 |
20 |
BDEPEND="virtual/pkgconfig"
|
| 27 |
21 |
|
| 28 |
|
RDEPEND="
|
| 29 |
|
app-arch/zip
|
|
22 |
RDEPEND="app-arch/zip
|
| 30 |
23 |
dev-libs/glib:2
|
| 31 |
24 |
>=dev-libs/tinyxml-2.6.2-r3
|
| 32 |
25 |
>=dev-util/astyle-3.1-r2:0=
|
| ... | ... | |
| 37 |
30 |
app-text/hunspell:=
|
| 38 |
31 |
media-libs/fontconfig
|
| 39 |
32 |
virtual/zlib:=
|
| 40 |
|
)
|
| 41 |
|
"
|
|
33 |
)"
|
| 42 |
34 |
|
| 43 |
35 |
DEPEND="
|
| 44 |
36 |
${RDEPEND}
|
| ... | ... | |
| 46 |
38 |
contrib? ( dev-libs/boost:= )
|
| 47 |
39 |
"
|
| 48 |
40 |
|
| 49 |
|
PATCHES=(
|
| 50 |
|
"${FILESDIR}/${P}_env.patch"
|
| 51 |
|
"${FILESDIR}/${PN}-20.03_p13518_FortranProject-r378-autotools-build.patch"
|
| 52 |
|
"${FILESDIR}/${PN}-25.03_DisplayEvents.cpp-fix-linking-wxGTK-r13653.patch"
|
| 53 |
|
"${FILESDIR}/${PN}-25.03_autotools-fix-linking-TinyXML-r13855.patch"
|
| 54 |
|
"${FILESDIR}/${P}_fix_boost-1.89.0.patch"
|
| 55 |
|
)
|
|
41 |
PATCHES=( "${FILESDIR}/${P}-nodebug.diff" )
|
| 56 |
42 |
|
| 57 |
43 |
src_prepare() {
|
| 58 |
44 |
default
|
| 59 |
|
|
| 60 |
45 |
# Let's make the autorevision work.
|
| 61 |
|
echo "m4_define([SVN_REV], ${REV})" > revision.m4
|
| 62 |
|
echo "m4_define([SVN_DATE], ${REV_DATE})" >> revision.m4
|
| 63 |
|
|
|
46 |
subversion_wc_info
|
|
47 |
CB_LCD=$(LC_ALL=C svn info "${ESVN_WC_PATH}" | grep "^Last Changed Date:" | cut -d" " -f4,5)
|
|
48 |
echo "m4_define([SVN_REV], ${ESVN_WC_REVISION})" > revision.m4
|
|
49 |
echo "m4_define([SVN_DATE], ${CB_LCD})" >> revision.m4
|
| 64 |
50 |
eautoreconf
|
| 65 |
51 |
}
|
| 66 |
52 |
|
| 67 |
53 |
src_configure() {
|
| 68 |
54 |
# Bug 858338
|
| 69 |
55 |
append-flags -fno-strict-aliasing
|
|
56 |
# Upstream issue: https://sourceforge.net/p/codeblocks/tickets/1512
|
|
57 |
append-cxxflags -std=c++17
|
| 70 |
58 |
|
| 71 |
59 |
setup-wxwidgets
|
| 72 |
60 |
|
| 73 |
|
# USE="contrib -fortran" setup:
|
| 74 |
|
use fortran || CONF_WITH_LST=$(use_with contrib contrib-plugins all,-FortranProject)
|
| 75 |
|
# USE="contrib fortran" setup:
|
| 76 |
|
use fortran && CONF_WITH_LST=$(use_with contrib contrib-plugins all)
|
| 77 |
|
# USE="-contrib fortran" setup:
|
| 78 |
|
use contrib || CONF_WITH_LST=$(use_with fortran contrib-plugins FortranProject)
|
| 79 |
|
|
| 80 |
61 |
local myeconfargs=(
|
| 81 |
62 |
--disable-pch
|
| 82 |
63 |
--disable-static
|
| 83 |
|
$(use_with contrib boost-libdir "${ESYSROOT}/usr/$(get_libdir)")
|
| 84 |
64 |
$(use_enable debug)
|
| 85 |
|
${CONF_WITH_LST}
|
|
65 |
$(use_with contrib boost-libdir "${ESYSROOT}/usr/$(get_libdir)")
|
|
66 |
$(use_with contrib contrib-plugins all)
|
| 86 |
67 |
)
|
| 87 |
68 |
|
| 88 |
69 |
econf "${myeconfargs[@]}"
|