1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Library to read the content of dBASE III, IV, and 5.0 files"
8 HOMEPAGE="http://developer.berlios.de/projects/dbf/"
9 SRC_URI="mirror://berlios/dbf/${P}.src.zip"
13 KEYWORDS="~amd64 ~x86"
20 doc? ( app-text/docbook-sgml-utils )
26 # Avoid collisions with /usr/include/endian.h
27 # installed by e.g. sys-libs/glibc-2.12.1-r1
28 cd src || die "src dir missing"
29 mv endian.h dbf_endian.h || die "endian.h couldn't be renamed"
30 sed -i 's/endian\.h/dbf_endian.h/g' Makefile.in *.c *.h \
31 || die "error executing sed"
37 export DOC_TO_MAN=docbook2man
44 emake DESTDIR="${D}" install || die "make install failed"