summaryrefslogtreecommitdiff
blob: 2041a7aabd52cf33356e6f93e681467d099c8148 (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
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit eutils versionator

MY_P="$(replace_version_separator '_' '-' ${P})"
DESCRIPTION="High-level domain specific language for extending or customizing the Gnu Compiler Collection"
HOMEPAGE="http://gcc-melt.org/"
SUFFIX="plugin-for-gcc-4.7-or-4.8"
SRC_URI="http://gcc-melt.org/${MY_P}-${SUFFIX}.tar.bz2"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="doc"

DEPEND="
doc? ( app-text/texi2html )
>=sys-devel/gcc-4.6
"

RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}-${SUFFIX}"

src_configure() { :; }

src_compile() {
	# Build cannot be parallel
	make

	if use doc; then
		emake melt-gendoc
		emake doc
	fi
}

src_install () {
	emake DESTDIR="${D}" install-melt-includes install-melt-sources install-melt-modules install-melt-mk install-melt-so

	if use doc; then
		dohtml *.html
		dodoc *.pdf
	fi
}