aboutsummaryrefslogtreecommitdiff
blob: d8c2f2fb2c6006993c3a48e7a1452720027179f1 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Library for parsing mathematical expressions"
HOMEPAGE="http://muparser.sourceforge.net/"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~x86"
IUSE="doc"
MY_PN="${PN/P/p}"
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}.tar.gz"
DEPEND="doc? ( app-doc/doxygen )"
S="${WORKDIR}/${PN}"

src_compile() {
	econf --disable-samples || die "econf failed"
	MAKEOPTS="$MAKEOPTS -j1" emake CXXFLAGS="${CXXFLAGS}" || die "emake failed"
	if use doc; then
		make documentation || die "make documentation failed"
	fi
}

src_install() {
	make DESTDIR="${D}" install || die "install failed"
	if use doc; then
		insinto "/usr/share/doc/${PF}"
		doins -r docs/html
	fi
}