summaryrefslogtreecommitdiff
blob: 4d98da833f0b2fd71ee5afbc7d2960a851311c93 (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
45
46
47
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/xbase/xbase-3.1.2.ebuild,v 1.2 2012/07/29 18:19:41 armin76 Exp ${PN}/${PN}-2.0.0-r1.ebuild,v 1.6 2012/06/29 14:42:09 jer Exp $

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 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd"
IUSE="doc static-libs"

RDEPEND=""
DEPEND="${DEPEND}
	sys-devel/automake
	sys-devel/libtool"

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/{*.cpp,examples.ide,makefile.g95}
	fi
}