From: | "Jurek Bartuszek (jurek)" <jurek@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-util/codeblocks: codeblocks-1.0_pre20071215.ebuild |
Date: | Sat, 15 Dec 2007 12:27:51 |
Message-Id: | E1J3W6A-0004N9-6w@stork.gentoo.org |
1 | jurek 07/12/15 12:26:30 |
2 | |
3 | Added: codeblocks-1.0_pre20071215.ebuild |
4 | Log: |
5 | dev-util/codeblocks-1.0_pre20071215: version bump |
6 | (Portage version: 2.1.3.19) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-util/codeblocks/codeblocks-1.0_pre20071215.ebuild |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/codeblocks/codeblocks-1.0_pre20071215.ebuild?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/codeblocks/codeblocks-1.0_pre20071215.ebuild?rev=1.1&content-type=text/plain |
13 | |
14 | Index: codeblocks-1.0_pre20071215.ebuild |
15 | =================================================================== |
16 | # Copyright 1999-2007 Gentoo Foundation |
17 | # Distributed under the terms of the GNU General Public License v2 |
18 | # $Header: /var/cvsroot/gentoo-x86/dev-util/codeblocks/codeblocks-1.0_pre20071215.ebuild,v 1.1 2007/12/15 12:26:29 jurek Exp $ |
19 | |
20 | inherit eutils autotools wxwidgets |
21 | |
22 | #needed for wxwidgets.eclass |
23 | WX_GTK_VER="2.8" |
24 | |
25 | DESCRIPTION="Code::Blocks - a free cross-platform C/C++ IDE" |
26 | HOMEPAGE="http://www.codeblocks.org/" |
27 | SRC_URI="mirror://gentoo/${P}.tar.bz2" |
28 | |
29 | LICENSE="GPL-2" |
30 | SLOT="0" |
31 | KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
32 | IUSE="unicode contrib debug" |
33 | |
34 | RDEPEND="=x11-libs/wxGTK-${WX_GTK_VER}*" |
35 | |
36 | DEPEND="${RDEPEND} |
37 | >=sys-devel/autoconf-2.5 |
38 | >=sys-devel/automake-1.7 |
39 | >=sys-devel/libtool-1.4 |
40 | app-arch/zip" |
41 | |
42 | pkg_setup() { |
43 | if use unicode; then |
44 | #check for gtk2-unicode |
45 | need-wxwidgets unicode |
46 | else |
47 | #check for gtk2-ansi |
48 | need-wxwidgets gtk2 |
49 | fi |
50 | } |
51 | |
52 | src_compile() { |
53 | export WANT_AUTOCONF=2.5 |
54 | export WANT_AUTOMAKE=1.7 |
55 | |
56 | local TMP |
57 | |
58 | TMP="/usr/share/aclocal/libtool.m4" |
59 | einfo "Running ./bootstrap" |
60 | if [ -e "$TMP" ]; then |
61 | cp "$TMP" aclocal.m4 || die "cp failed" |
62 | fi |
63 | ./bootstrap || die "boostrap failed" |
64 | |
65 | econf --with-wx-config="${WX_CONFIG}" \ |
66 | $(use_enable contrib) \ |
67 | $(use_enable debug) \ |
68 | || die "econf failed" |
69 | |
70 | emake || die "emake failed" |
71 | } |
72 | |
73 | src_install() { |
74 | make install DESTDIR="${D}" || die "make install failed" |
75 | } |
76 | |
77 | |
78 | |
79 | -- |
80 | gentoo-commits@g.o mailing list |