3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
WX_GTK_VER="3.0-gtk3"
|
|
6 |
WX_GTK_VER="3.2-gtk3"
|
7 |
7 |
|
8 |
|
inherit autotools flag-o-matic wxwidgets xdg
|
|
8 |
inherit autotools flag-o-matic subversion wxwidgets xdg
|
9 |
9 |
|
10 |
10 |
DESCRIPTION="The open source, cross platform, free C, C++ and Fortran IDE"
|
11 |
11 |
HOMEPAGE="https://codeblocks.org/"
|
12 |
12 |
LICENSE="GPL-3"
|
13 |
13 |
SLOT="0"
|
14 |
|
KEYWORDS="amd64 ~ppc x86"
|
15 |
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
|
16 |
|
https://dev.gentoo.org/~leio/distfiles/${P}-fortran.tar.xz
|
17 |
|
https://dev.gentoo.org/~leio/distfiles/${P}-fortran-update-v1.7.tar.xz
|
18 |
|
https://dev.gentoo.org/~leio/distfiles/${P}-fortran-update-v1.8.tar.xz
|
19 |
|
https://dev.gentoo.org/~leio/distfiles/${P}-codecompletion-symbolbrowser-update.tar.xz
|
20 |
|
"
|
21 |
|
|
22 |
|
# USE="fortran" enables FortranProject plugin (updated to v1.8 2021-05-29 [r230])
|
23 |
|
# that is delivered with Code::Blocks 20.03 source code.
|
24 |
|
# https://sourceforge.net/projects/fortranproject
|
25 |
|
# https://cbfortran.sourceforge.io
|
|
14 |
KEYWORDS=""
|
|
15 |
SRC_URI=""
|
|
16 |
ESVN_REPO_URI="svn://svn.code.sf.net/p/${PN}/code/trunk"
|
|
17 |
ESVN_FETCH_CMD="svn checkout --ignore-externals"
|
|
18 |
ESVN_UPDATE_CMD="svn update --ignore-externals"
|
26 |
19 |
|
27 |
|
IUSE="contrib debug fortran"
|
|
20 |
IUSE="contrib debug"
|
28 |
21 |
|
29 |
22 |
BDEPEND="virtual/pkgconfig"
|
30 |
23 |
|
... | ... | |
44 |
37 |
sys-libs/zlib
|
45 |
38 |
)"
|
46 |
39 |
|
47 |
|
DEPEND="${RDEPEND}
|
48 |
|
x11-base/xorg-proto"
|
|
40 |
DEPEND="
|
|
41 |
${RDEPEND}
|
|
42 |
x11-base/xorg-proto
|
|
43 |
"
|
49 |
44 |
|
50 |
|
PATCHES=(
|
51 |
|
"${FILESDIR}"/${P}-env.patch
|
52 |
|
"${WORKDIR}"/patches/
|
53 |
|
)
|
|
45 |
PATCHES=( "${FILESDIR}/${P}-nodebug.diff" )
|
54 |
46 |
|
55 |
47 |
src_prepare() {
|
56 |
48 |
default
|
57 |
|
# Force to use bundled Squirrel-3.1 (patched version is used by upstream) due to it's API was changed
|
58 |
|
sed -i '/PKG_CHECK_MODULES(\[SQUIRREL\]/c\HAVE_SQUIRREL=no' configure.ac || die # Bug 884601
|
|
49 |
# Let's make the autorevision work.
|
|
50 |
subversion_wc_info
|
|
51 |
CB_LCD=$(LC_ALL=C svn info "${ESVN_WC_PATH}" | grep "^Last Changed Date:" | cut -d" " -f4,5)
|
|
52 |
echo "m4_define([SVN_REV], ${ESVN_WC_REVISION})" > revision.m4
|
|
53 |
echo "m4_define([SVN_DATE], ${CB_LCD})" >> revision.m4
|
59 |
54 |
eautoreconf
|
60 |
55 |
}
|
61 |
56 |
|
... | ... | |
65 |
60 |
|
66 |
61 |
setup-wxwidgets
|
67 |
62 |
|
68 |
|
# USE="contrib -fortran" setup:
|
69 |
|
use fortran || CONF_WITH_LST=$(use_with contrib contrib-plugins all,-FortranProject)
|
70 |
|
# USE="contrib fortran" setup:
|
71 |
|
use fortran && CONF_WITH_LST=$(use_with contrib contrib-plugins all)
|
72 |
|
# USE="-contrib fortran" setup:
|
73 |
|
use contrib || CONF_WITH_LST=$(use_with fortran contrib-plugins FortranProject)
|
74 |
|
|
75 |
63 |
local myeconfargs=(
|
76 |
64 |
--disable-pch
|
77 |
|
$(use_with contrib boost-libdir "${ESYSROOT}/usr/$(get_libdir)")
|
|
65 |
--disable-static
|
78 |
66 |
$(use_enable debug)
|
79 |
|
${CONF_WITH_LST}
|
|
67 |
$(use_with contrib boost-libdir "${ESYSROOT}/usr/$(get_libdir)")
|
|
68 |
$(use_with contrib contrib-plugins all)
|
80 |
69 |
)
|
81 |
70 |
|
82 |
71 |
econf "${myeconfargs[@]}"
|