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

EAPI=3

inherit cmake-utils

DESCRIPTION="SimCList is a high quality C (C++ embeddable) library for handling lists."
HOMEPAGE="http://mij.oltrelinux.com/devel/simclist/"
SRC_URI="${HOMEPAGE}/${P/_/}.tar.bz2"

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

S="${WORKDIR}/${P/_/}"

DEPEND="doc? ( app-doc/doxygen )"
RDEPEND="${DEPEND}"

src_compile(){
	cmake-utils_src_compile
	if use doc; then
		doxygen || die "doxygen failed"
	fi
}

src_install() {
	mkdir -p "${D}"/usr/include
	cp simclist.h "${D}"/usr/include/
	cd ${CMAKE_BUILD_DIR}
	dolib libsimclist.so
	cd ${S}
	if use doc; then
		dohtml -r doc/html/*
	fi
	if use examples; then
		docinto examples
		dodoc examples/*
	fi
}