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

EAPI=4
AUTOTOOLS_AUTORECONF=no
inherit autotools-utils

DESCRIPTION="xbase (i.e. dBase, FoxPro, etc.) compatible C++ class library"
HOMEPAGE="http://linux.techass.com/projects/xdb/"
SRC_URI="mirror://sourceforge/xdb/${PN}64-${PV}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ~arm hppa ppc ppc64 x86 ~x86-fbsd"
IUSE="doc static-libs"

S="${WORKDIR}"/${PN}64-${PV}

PATCHES=(
		"${FILESDIR}"/${P}-fixconfig.patch
		"${FILESDIR}"/${P}-gcc44.patch
		"${FILESDIR}"/${PN}-2.0.0-ppc.patch
		"${FILESDIR}"/${P}-xbnode.patch
		"${FILESDIR}"/${P}-lesserg.patch
		"${FILESDIR}"/${P}-outofsource.patch
		"${FILESDIR}"/${P}-gcc47.patch
		"${FILESDIR}"/${P}-gcc-version.patch
)

src_install() {
	autotools-utils_src_install
	# media-tv/linuxtv-dvb-apps collision, bug #208596
	mv "${ED}/usr/bin/zap" "${ED}/usr/bin/${PN}-zap" || die

	if use doc; then
		dohtml html/*
		insinto /usr/share/doc/${PF}/examples
		doins examples/*
	fi
}