Gentoo Archives: gentoo-commits

From: "Matti Bickel (mabi)" <mabi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/cdb: cdb-0.75-r3.ebuild ChangeLog
Date: Tue, 30 Mar 2010 23:20:32
Message-Id: E1NwkjU-0001Fp-Gn@stork.gentoo.org
1 mabi 10/03/30 23:20:28
2
3 Modified: ChangeLog
4 Added: cdb-0.75-r3.ebuild
5 Log:
6 fix bug #248327
7 (Portage version: 2.1.7.17/cvs/Linux i686)
8
9 Revision Changes Path
10 1.45 dev-db/cdb/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/cdb/ChangeLog?rev=1.45&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/cdb/ChangeLog?rev=1.45&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/cdb/ChangeLog?r1=1.44&r2=1.45
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/cdb/ChangeLog,v
19 retrieving revision 1.44
20 retrieving revision 1.45
21 diff -u -r1.44 -r1.45
22 --- ChangeLog 1 Aug 2008 15:05:00 -0000 1.44
23 +++ ChangeLog 30 Mar 2010 23:20:28 -0000 1.45
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-db/cdb
26 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-db/cdb/ChangeLog,v 1.44 2008/08/01 15:05:00 hattya Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/cdb/ChangeLog,v 1.45 2010/03/30 23:20:28 mabi Exp $
30 +
31 +*cdb-0.75-r3 (30 Mar 2010)
32 +
33 + 30 Mar 2010; <mabi@g.o> +cdb-0.75-r3.ebuild,
34 + +files/cdb-0.75-stdint.diff:
35 + fix file collision (bug #248327) thanks to Rolf Eike Beer for the patch
36
37 01 Aug 2008; Akinori Hattori <hattya@g.o> cdb-0.75-r2.ebuild:
38 fixes bug #210730.
39
40
41
42 1.1 dev-db/cdb/cdb-0.75-r3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/cdb/cdb-0.75-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/cdb/cdb-0.75-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cdb-0.75-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-db/cdb/cdb-0.75-r3.ebuild,v 1.1 2010/03/30 23:20:28 mabi Exp $
52
53 inherit eutils toolchain-funcs
54
55 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
56
57 DESCRIPTION="Fast, reliable, simple package for creating and reading constant databases."
58 HOMEPAGE="http://cr.yp.to/cdb.html"
59 SRC_URI="http://cr.yp.to/cdb/${P}.tar.gz"
60 LICENSE="public-domain"
61 SLOT="0"
62 IUSE=""
63
64 DEPEND=">=sys-apps/sed-4
65 !dev-db/tinycdb"
66 RDEPEND="${DEPEND}"
67
68 src_unpack() {
69 unpack ${A}
70 cd "${S}"
71 epatch "${FILESDIR}"/${P}-errno.diff
72 epatch "${FILESDIR}"/${P}-stdint.diff
73
74 sed -i -e 's/head -1/head -n 1/g' Makefile \
75 || die "sed Makefile failed"
76 }
77
78 src_compile() {
79 echo "$(tc-getCC) ${CFLAGS}" > conf-cc
80 echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
81 echo "/usr" > conf-home
82 emake || die "emake failed"
83 }
84
85 src_install() {
86 dobin cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv cdbstats cdbtest \
87 || die "dobin failed"
88
89 # ok so ... first off, some automakes fail at finding
90 # cdb.a, so install that now
91 dolib *.a || die "dolib failed"
92
93 # then do this pretty little symlinking to solve the somewhat
94 # cosmetic library issue at hand
95 dosym cdb.a /usr/$(get_libdir)/libcdb.a || die "dosym failed"
96
97 # uint32.h needs installation too, otherwise compiles depending
98 # on it will fail
99 insinto /usr/include/cdb
100 doins cdb*.h buffer.h alloc.h uint32.h || die "doins failed"
101
102 dodoc CHANGES FILES README SYSDEPS TODO VERSION
103 }