Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/codeblocks: ChangeLog codeblocks-8.02-r1.ebuild
Date: Wed, 29 Jul 2009 23:37:52
Message-Id: E1MWIiT-0004Av-EH@stork.gentoo.org
1 dirtyepic 09/07/29 23:37:49
2
3 Modified: ChangeLog
4 Added: codeblocks-8.02-r1.ebuild
5 Log:
6 Fix build w/ glibc-2.10. (bug #274256)
7 Remove unicode USE flag - wxGTK-2.8 is always unicode, and configure
8 option was removed. Use emake install.
9 (Portage version: 2.2_rc33/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.15 dev-util/codeblocks/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/codeblocks/ChangeLog?rev=1.15&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/codeblocks/ChangeLog?rev=1.15&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/codeblocks/ChangeLog?r1=1.14&r2=1.15
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-util/codeblocks/ChangeLog,v
21 retrieving revision 1.14
22 retrieving revision 1.15
23 diff -u -r1.14 -r1.15
24 --- ChangeLog 12 Feb 2009 04:42:37 -0000 1.14
25 +++ ChangeLog 29 Jul 2009 23:37:49 -0000 1.15
26 @@ -1,6 +1,14 @@
27 # ChangeLog for dev-util/codeblocks
28 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-util/codeblocks/ChangeLog,v 1.14 2009/02/12 04:42:37 dirtyepic Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/codeblocks/ChangeLog,v 1.15 2009/07/29 23:37:49 dirtyepic Exp $
31 +
32 +*codeblocks-8.02-r1 (29 Jul 2009)
33 +
34 + 29 Jul 2009; Ryan Hill <dirtyepic@g.o> +codeblocks-8.02-r1.ebuild,
35 + +files/codeblocks-8.02-gcc44.patch:
36 + Fix build w/ glibc-2.10. (bug #274256)
37 + Remove unicode USE flag - wxGTK-2.8 is always unicode, and configure
38 + option was removed. Use emake install.
39
40 12 Feb 2009; Ryan Hill <dirtyepic@g.o>
41 +files/codeblocks-8.02-gcc43.patch, codeblocks-8.02.ebuild:
42
43
44
45 1.1 dev-util/codeblocks/codeblocks-8.02-r1.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/codeblocks/codeblocks-8.02-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/codeblocks/codeblocks-8.02-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: codeblocks-8.02-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-util/codeblocks/codeblocks-8.02-r1.ebuild,v 1.1 2009/07/29 23:37:49 dirtyepic Exp $
55
56 inherit autotools wxwidgets flag-o-matic eutils
57
58 WX_GTK_VER="2.8"
59
60 DESCRIPTION="Free cross-platform C/C++ IDE"
61 HOMEPAGE="http://www.codeblocks.org/"
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~x86 ~amd64"
65 SRC_URI="mirror://sourceforge/codeblocks/${P}-src.tar.bz2"
66
67 IUSE="contrib debug pch static"
68
69 RDEPEND="=x11-libs/wxGTK-${WX_GTK_VER}*
70 x11-libs/gtk+"
71
72 DEPEND="${RDEPEND}
73 >=sys-devel/autoconf-2.5.0
74 >=sys-devel/automake-1.7
75 >=sys-devel/libtool-1.4
76 app-arch/zip"
77
78 pkg_setup() {
79 need-wxwidgets unicode
80 }
81
82 src_unpack() {
83 unpack ${A}
84 epatch "${FILESDIR}/${PV}-version.patch"
85 epatch "${FILESDIR}"/${P}-gcc43.patch
86 epatch "${FILESDIR}"/${P}-gcc44.patch
87 #epatch "${FILESDIR}/${PV}-install-plugins.patch"
88 cd "${S}"
89 find src/plugins -name Makefile.am -exec \
90 sed -i -e 's#^libdir#pluginsdir#' \
91 -e 's#^lib_LTLIBRARIES#plugins_LTLIBRARIES#' \
92 '{}' \;
93 # This one's buggy
94 sed -i -e 's#^plugins_LTLIBRARIES#lib_LTLIBRARIES#' \
95 src/plugins/contrib/wxSmith/Makefile.am
96
97 eautoreconf || die "autoreconf failed"
98 # ./bootstrap || die "boostrap failed"
99 }
100
101 src_compile() {
102 # C::B is picky on CXXFLAG -fomit-frame-pointer
103 # (project-wizard crash, instability ...)
104 filter-flags -fomit-frame-pointer
105 append-flags -fno-strict-aliasing
106
107 cd "${S}"
108 local myconf="$(use_enable pch)"
109 # $(use_enable autosave) \
110 # $(use_enable class-wizard) \
111 # $(use_enable code-completion) \
112 # $(use_enable compiler) \
113 # $(use_enable debuger) \
114 # $(use_enable mime-handler) \
115 # $(use_enable open-files-list) \
116 #
117 # $(use_enable projects-importer) \
118 # $(use_enable source-formatter) \
119 # $(use_enable todo) \
120 # $(use_enable xpmanifest)
121
122 if use contrib; then
123 myconf="${myconf} --with-contrib-plugins=all"
124 fi
125 econf --with-wx-config="${WX_CONFIG}" \
126 --enable-dependency-tracking \
127 $(use_enable debug) \
128 $(use_enable static) \
129 ${myconf} || die "Died in action: econf ..."
130 emake || die "Died in action: make ..."
131 }
132
133 src_install() {
134 emake DESTDIR="${D}" install || die "Install failed"
135 }