summaryrefslogtreecommitdiff
blob: c18642f32c2a8eec369596cace57564dfc7a9f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gccxml/gccxml-0.6.0-r1.ebuild,v 1.7 2009/01/02 01:37:51 halcy0n Exp $

inherit versionator eutils
PVM="$(get_version_component_range 1-2)"
DESCRIPTION="XML output extension to GCC"
HOMEPAGE="http://www.gccxml.org/"
SRC_URI="http://www.gccxml.org/files/v${PVM}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm ia64 mips ppc s390 sh ~sparc x86"
IUSE=""

DEPEND="dev-util/cmake"
RDEPEND=""

MYBUILDDIR="${WORKDIR}"/build
src_unpack() {
	mkdir "${MYBUILDDIR}"
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/obstack.h.diff
	epatch "${FILESDIR}"/${P}-gcc43.patch
}
src_compile() {
	cd "${MYBUILDDIR}"
	cmake ../${P} -DCMAKE_INSTALL_PREFIX:PATH=/usr || die "cmake failed"
	emake || die "emake failed"
}

src_install() {
	cd "${MYBUILDDIR}"
	make DESTDIR="${D}" install || die
}