1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils autotools ltprune multilib
8 DESCRIPTION="A database-independent abstraction layer in C"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10 HOMEPAGE="http://libdbi.sourceforge.net/"
13 IUSE="doc static-libs"
14 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 m68k ~mips ppc ppc64 s390 sparc x86"
17 DOCS="AUTHORS ChangeLog README README.osx TODO"
23 doc? ( app-text/openjade )
25 PDEPEND=">=dev-db/libdbi-drivers-0.9.0" # On purpose, libdbi-drivers 0.8.4 does not exist
29 chown -R portage:portage "${S}"
33 #epatch "${FILESDIR}"/${PN}-0.9.0-fix-ac-macro.patch
34 #epatch "${FILESDIR}"/libdbi-0.8.1-pkg-config.patch
35 #cp -f "${FILESDIR}"/dbi.pc.in "${S}"/dbi.pc.in
36 epatch "${FILESDIR}"/libdbi-0.9.0-doc-build-fix.patch
38 # configure.in has been changed
40 # should append CFLAGS, not replace them
41 sed -i.orig -e 's/^CFLAGS = /CFLAGS += /g' src/Makefile.in
46 $(use_enable doc docs) \
47 $(use_enable static-libs static)
53 prune_libtool_files --all
55 # syslog-ng requires dbi.pc
56 insinto /usr/$(get_libdir)/pkgconfig/