blob: 1afda4274efa53fdb4fbe0d1d69637ea6da35935 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 2008-2016 Pierre Lejeune <superheron@gmail.com>
# Distributed under the terms of the GNU General Public License v2
require sourceforge [ pnv="${PN}_${PV}" suffix='tar.xz' ]
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 1.13 1.12 1.11 1.10 ] ]
require freedesktop-desktop freedesktop-mime
export_exlib_phases src_prepare src_install pkg_postinst pkg_postrm
SUMMARY="Code::Blocks C/C++ IDE"
DESCRIPTION="Code::Blocks free C/C++ IDE"
HOMEPAGE="http://www.codeblocks.org"
LICENCES="GPL-3"
SLOT="0"
MYOPTIONS="
contrib-plugins [[ description = [ Build community-contributed plugins ] ]]
"
DEPENDENCIES="
build:
app-arch/zip
virtual/pkg-config
build+run:
app-admin/gamin
app-spell/hunspell:=
dev-libs/boost
media-libs/fontconfig
x11-libs/wxGTK:=[>=2.8.12]
"
DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( 'contrib-plugins' )
codeblocks_src_prepare() {
if ever at_least scm; then
edo chmod +x update_revision.sh
edo ./update_revision.sh
fi
edo sed -e "s/pkg-config,/${PKG_CONFIG},/" -i configure.ac
[[ -e "${WORK}/m4" ]] || edo mkdir "${WORK}/m4"
autotools_src_prepare
}
codeblocks_src_install() {
default
hereenvd 50codeblocks <<EOF
CODEBLOCKS_DATA_DIR="/usr"
EOF
}
codeblocks_pkg_postinst() {
freedesktop-desktop_pkg_postinst
freedesktop-mime_pkg_postinst
}
codeblocks_pkg_postrm() {
freedesktop-desktop_pkg_postrm
freedesktop-mime_pkg_postrm
}
|