public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Donnie Berkholz <dberkholz@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] RFC: cmake.eclass
Date: Sun, 4 Nov 2007 04:12:44 -0800	[thread overview]
Message-ID: <20071104121243.GN30328@supernova> (raw)
In-Reply-To: <472DB250.2090406@gentoo.org>

On 12:51 Sun 04 Nov     , Krzysiek Pawlik wrote:
> A little introduction: cmake is an alternative for autotools, more and more
> packages are using it (and some new big ones are on the way, KDE4 for example).
> 
> I've wrote an eclass that makes writing ebuilds for such packages a little
> easier - it provides an ecmake function that takes care of few needed variables,
> prefix and such.

Great! When's the scons one coming? =)

> # Copyright 1999-2007 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
> # $Header: $
> 
> #
> # Original Author: nelchael
> # Purpose: Automate src_install and src_compile for packages using cmake
> #

This would be a great opportunity to start using real eclass 
documentation (e.g. that found in eutils.eclass) so we can autogenerate 
a useful manpage on how to use it.

> # If you want to build in source tree set CMAKE_IN_SOURCE_BUILD to anything:
> [[ -n "${CMAKE_IN_SOURCE_BUILD}" ]] && CMAKE_BUILD_DIR="${S}"

Why would I want to do that? Some documentation would help.

> function ecmake() {

Why are some functions declared with 'function' and others not?

> 		-DCMAKE_CXX_COMPILER="$(type -P $(tc-getCXX))" \

Why the 'type -P' bit?

> 	make DESTDIR="${D}" install || die "make install failed"

Does emake work?

Thanks,
Donnie
-- 
gentoo-dev@gentoo.org mailing list



  reply	other threads:[~2007-11-04 12:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-04 11:51 [gentoo-dev] RFC: cmake.eclass Krzysiek Pawlik
2007-11-04 12:12 ` Donnie Berkholz [this message]
2007-11-04 12:34   ` Krzysiek Pawlik
     [not found] ` <200711041420.38049.philantrop@gentoo.org>
2007-11-04 13:30   ` Krzysiek Pawlik
2007-11-04 14:09     ` Krzysiek Pawlik
2007-11-04 14:35       ` Wulf C. Krueger
2007-11-04 14:01 ` Marijn Schouten (hkBst)
2007-11-04 14:07   ` Krzysiek Pawlik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071104121243.GN30328@supernova \
    --to=dberkholz@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox