# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="debug doc static" inherit base DESCRIPTION="XBase is an xbase (i.e. dBase, FoxPro, etc.) compatible C++ class library" HOMEPAGE="http://www.rekallrevealed.org/" SRC_URI="http://www.rekallrevealed.org/packages/${P}.tgz" LICENSE="GPL-2" KEYWORDS="x86" DEPEND="sys-devel/automake sys-devel/libtool" src_compile() { use debug && myconf="${myconf} --enable-debug" use static && myconf="${myconf} --enable-shared=no --enable-static=yes" ### list of options ### # # --enable-debug creates debugging code [default=no] # --enable-shared build shared libraries [default=yes] # --enable-static build static libraries [default=no] # --with-gnu-ld assume the C compiler uses GNU ld [default=no] # --without-index-ndx do not compile .ndx index support # --without-index-ntx do not compile .ntx index support # --without-memo-fields do not compile memo fields support # --without-expressions do not compile expressions support # --without-ui-html do not compile HTML support # --without-xbase-locking turn off XBase file locking # --without-realdelete turn off XBase record deletion # --without-xbase-debug turn off XBase specific debug # --with-exceptions turn on exceptions # --with-castellano turn on spanish date logic # base_src_compile } src_install() { base_src_install cd ${S} dodoc AUTHORS COPYING Changelog INSTALL NEWS README TODO if use doc; then rm html/Makefile* dohtml html/* insinto /usr/share/doc/${PF}/examples doins examples/*.cpp examples/Makefile.95 fi }