1 |
On 12:51 Sun 04 Nov , Krzysiek Pawlik wrote: |
2 |
> A little introduction: cmake is an alternative for autotools, more and more |
3 |
> packages are using it (and some new big ones are on the way, KDE4 for example). |
4 |
> |
5 |
> I've wrote an eclass that makes writing ebuilds for such packages a little |
6 |
> easier - it provides an ecmake function that takes care of few needed variables, |
7 |
> prefix and such. |
8 |
|
9 |
Great! When's the scons one coming? =) |
10 |
|
11 |
> # Copyright 1999-2007 Gentoo Foundation |
12 |
> # Distributed under the terms of the GNU General Public License v2 |
13 |
> # $Header: $ |
14 |
> |
15 |
> # |
16 |
> # Original Author: nelchael |
17 |
> # Purpose: Automate src_install and src_compile for packages using cmake |
18 |
> # |
19 |
|
20 |
This would be a great opportunity to start using real eclass |
21 |
documentation (e.g. that found in eutils.eclass) so we can autogenerate |
22 |
a useful manpage on how to use it. |
23 |
|
24 |
> # If you want to build in source tree set CMAKE_IN_SOURCE_BUILD to anything: |
25 |
> [[ -n "${CMAKE_IN_SOURCE_BUILD}" ]] && CMAKE_BUILD_DIR="${S}" |
26 |
|
27 |
Why would I want to do that? Some documentation would help. |
28 |
|
29 |
> function ecmake() { |
30 |
|
31 |
Why are some functions declared with 'function' and others not? |
32 |
|
33 |
> -DCMAKE_CXX_COMPILER="$(type -P $(tc-getCXX))" \ |
34 |
|
35 |
Why the 'type -P' bit? |
36 |
|
37 |
> make DESTDIR="${D}" install || die "make install failed" |
38 |
|
39 |
Does emake work? |
40 |
|
41 |
Thanks, |
42 |
Donnie |
43 |
-- |
44 |
gentoo-dev@g.o mailing list |