# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.4.2-r1.ebuild,v 1.1 2006/06/30 08:39:12 dragonheart Exp $ inherit toolchain-funcs eutils versionator DESCRIPTION="Cross platform Make" HOMEPAGE="http://www.cmake.org/" SRC_URI="http://www.cmake.org/files/v$(get_version_component_range 1-2)/${P}.tar.gz" LICENSE="CMake" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}-kde.patch" } src_compile() { cd ${S} tc-export CC CXX LD ./bootstrap \ --prefix=/usr \ --docdir=/share/doc/${PN} \ --datadir=/share/${PN} \ --mandir=/share/man || die "./bootstrap failed" emake || die } src_test() { einfo "Self tests broken" make test || \ einfo "note test failure on qtwrapping was expected - nature of portage rather than a true failure" } src_install() { make install DESTDIR=${D} || die "install failed" mv ${D}usr/share/doc/cmake ${D}usr/share/doc/${PF} }