/[gentoo-x86]/dev-db/cdb/cdb-0.75-r2.ebuild
Gentoo

Contents of /dev-db/cdb/cdb-0.75-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Tue Jul 9 16:53:16 2013 UTC (6 years, 4 months ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.1.12.12/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/cdb/cdb-0.75-r2.ebuild,v 1.14 2012/06/04 06:22:02 zmedico Exp $
4
5 inherit eutils multilib toolchain-funcs
6
7 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
8
9 DESCRIPTION="Fast, reliable, simple package for creating and reading constant databases."
10 HOMEPAGE="http://cr.yp.to/cdb.html"
11 SRC_URI="http://cr.yp.to/cdb/${P}.tar.gz"
12 LICENSE="public-domain"
13 SLOT="0"
14 IUSE=""
15
16 DEPEND=">=sys-apps/sed-4
17 !dev-db/tinycdb"
18 RDEPEND="${DEPEND}"
19
20 src_unpack() {
21 unpack ${A}
22 cd "${S}"
23 epatch "${FILESDIR}"/${P}-errno.diff
24
25 sed -i -e 's/head -1/head -n 1/g' Makefile \
26 || die "sed Makefile failed"
27 }
28
29 src_compile() {
30 echo "$(tc-getCC) ${CFLAGS}" > conf-cc
31 echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
32 echo "/usr" > conf-home
33 emake || die "emake failed"
34 }
35
36 src_install() {
37 dobin cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv cdbstats cdbtest \
38 || die "dobin failed"
39
40 # ok so ... first off, some automakes fail at finding
41 # cdb.a, so install that now
42 dolib *.a || die "dolib failed"
43
44 # then do this pretty little symlinking to solve the somewhat
45 # cosmetic library issue at hand
46 dosym cdb.a /usr/$(get_libdir)/libcdb.a || die "dosym failed"
47
48 # uint32.h needs installation too, otherwise compiles depending
49 # on it will fail
50 insinto /usr/include
51 doins cdb*.h buffer.h alloc.h uint32.h || die "doins failed"
52
53 dodoc CHANGES FILES README SYSDEPS TARGETS TODO VERSION
54 }

  ViewVC Help
Powered by ViewVC 1.1.20