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

inherit toolchain-funcs

DESCRIPTION="An easy-to-use hash implementation for C programmers"
HOMEPAGE="http://uthash.sourceforge.net"
SRC_URI="mirror://sourceforge/uthash/${P}.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc"
IUSE=""

DEPEND=""
RDEPEND=""

src_test() {
	cd "${S}"/tests
	sed -i -e "/CFLAGS/ s/-g/${CFLAGS}/" Makefile || die "sed failed."
	emake CC="$(tc-getCC)" || die "emake failed."
}

src_install() {
	insinto /usr/include
	doins src/uthash.h

	dohtml doc/html/userguide.html doc/html/tdh*.css

	doman doc/man/uthash.3
}