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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Thu Aug 2 22:34:30 2012 UTC (9 months, 2 weeks ago) by hwoarang
Branch: MAIN
Changes since 1.4: +2 -2 lines
Stable on amd64 wrt bug #418667

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.13