Lines 1-4
Link Here
|
1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: $ |
3 |
# $Header: $ |
4 |
|
4 |
|
Lines 27-43
Link Here
|
27 |
>=sys-devel/autoconf-2.5.0 |
27 |
>=sys-devel/autoconf-2.5.0 |
28 |
>=sys-devel/automake-1.7 |
28 |
>=sys-devel/automake-1.7 |
29 |
>=sys-devel/libtool-1.4" |
29 |
>=sys-devel/libtool-1.4" |
|
|
30 |
WX_GTK_VER="2.6" |
30 |
|
31 |
|
31 |
pkg_setup() { |
32 |
pkg_setup() { |
32 |
if ! built_with_use x11-libs/wxGTK gtk2; then |
33 |
if use unicode ; then |
33 |
die "Build x11-libs/wxGTK with USE=gtk2." |
34 |
need-wxwidgets gtk2 |
|
|
35 |
need-wxwidgets unicode |
36 |
else |
37 |
need-wxwidgets gtk2 |
34 |
fi |
38 |
fi |
35 |
} |
39 |
} |
36 |
|
40 |
|
|
|
41 |
S="${WORKDIR}/${MY_P}" |
37 |
src_unpack() { |
42 |
src_unpack() { |
38 |
unpack ${MY_P}.tgz |
43 |
unpack "${A}" |
39 |
cd ${WORKDIR}/${MY_P} || die "cd failed" |
44 |
cd "${S}" || die "cd failed" |
40 |
epatch ${FILESDIR}/${P}.patch |
45 |
epatch "${FILESDIR}/${P}.patch" |
41 |
} |
46 |
} |
42 |
|
47 |
|
43 |
src_compile() { |
48 |
src_compile() { |
Lines 50-59
Link Here
|
50 |
|
55 |
|
51 |
edos2unix src/setup/mime/codeblocks.desktop src/setup/mime/codeblocks.applications |
56 |
edos2unix src/setup/mime/codeblocks.desktop src/setup/mime/codeblocks.applications |
52 |
|
57 |
|
53 |
./configure --prefix=/usr --with-wx-config=wx-config-2.6 || die "Configure failed" |
58 |
econf --prefix=/usr --with-wx-config=wx-config-2.6 || die "econf failed" |
54 |
emake || die "emake failed" |
59 |
emake || die "emake failed" |
55 |
} |
60 |
} |
56 |
|
61 |
|
57 |
src_install() { |
62 |
src_install() { |
58 |
einstall || die "einstall failed" |
63 |
make DESTDIR="${D}" install || die "make install failed" |
59 |
} |
64 |
} |