summaryrefslogtreecommitdiff
blob: 1d6b8a3450df68608bc77272baad4ee57475a858 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/tinycdb/tinycdb-0.74.ebuild,v 1.10 2007/01/30 19:56:23 chutzpah Exp $

inherit eutils

IUSE=""

DESCRIPTION="TinyCDB is a very fast and simple package for creating and reading constant data bases"
HOMEPAGE="http://www.corpit.ru/mjt/tinycdb.html"
SRC_URI="http://www.corpit.ru/mjt/tinycdb/${P}.tar.gz"

LICENSE="public-domain"
KEYWORDS="~amd64 ~hppa ia64 ppc x86"
SLOT="0"

src_unpack() {

	unpack ${A}
	cd "${S}"

	epatch "${FILESDIR}"/${PN}-libbase.diff

}

src_compile() {

	emake LIBBASE=lib${PN} all shared || die

}

src_install() {

	einstall LIBBASE=lib${PN} install-shared || die

	mv "${D}"/usr/include/{cdb,${PN}}.h

}