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

inherit eutils toolchain-funcs

DESCRIPTION="A tool for analyzing the source code of programs written in ANSI-C"
HOMEPAGE="http://spinroot.com/uno/"
SRC_URI="http://spinroot.com/${PN}/${PN}_v${PV/./}.tar.gz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

S="${WORKDIR}/${PN}/src"

src_unpack() {
	unpack ${A}
	cd "${S}"

	epatch "${FILESDIR}/${PV}-makefile.patch"
}

src_compile() {
	emake CC="$(tc-getCC)" || die "emake failed"
}

src_install() {
	dobin uno uno_local uno_global
	doman ../doc/uno.1

	insinto /usr/share/${PN}
	doins -r ../prop

	if use doc ; then
		dodoc ../doc/*.pdf
	fi
}