# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-db/cdb/cdb-0.75.ebuild,v 1.9 2003/08/16 11:24:42 taviso Exp $ inherit eutils gcc DESCRIPTION="fast, reliable, simple package for creating and reading constant databases" HOMEPAGE="http://cr.yp.to/cdb.html" SRC_URI="http://cr.yp.to/cdb/${P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="x86 alpha" DEPEND=">=sys-apps/portage-2.0.47-r10 sys-apps/tar sys-apps/gzip" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-errno.diff } src_compile() { echo "$(gcc-getCC) ${CFLAGS}" > conf-cc echo "$(gcc-getCC)" > conf-ld echo "/usr" > conf-home emake || die "emake failed" } src_install() { dobin cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv cdbstats cdbtest newlib.a cdb.a libcdb.a insinto /usr/include doins cdb.h dodoc CHANGES FILES README SYSDEPS TARGETS TODO VERSION }