Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/tokyocabinet/
Date: Thu, 18 Feb 2016 18:40:35
Message-Id: 1455820772.6b135162ca799672675c4cb617812fb01a96d12b.patrick@gentoo
1 commit: 6b135162ca799672675c4cb617812fb01a96d12b
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 18 18:39:16 2016 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 18:39:32 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b135162
7
8 dev-db/tokyocabinet: Add more useflags #575078
9
10 Package-Manager: portage-2.2.27
11
12 dev-db/tokyocabinet/tokyocabinet-1.4.48-r1.ebuild | 61 +++++++++++++++++++++++
13 1 file changed, 61 insertions(+)
14
15 diff --git a/dev-db/tokyocabinet/tokyocabinet-1.4.48-r1.ebuild b/dev-db/tokyocabinet/tokyocabinet-1.4.48-r1.ebuild
16 new file mode 100644
17 index 0000000..7cdd7b7
18 --- /dev/null
19 +++ b/dev-db/tokyocabinet/tokyocabinet-1.4.48-r1.ebuild
20 @@ -0,0 +1,61 @@
21 +# Copyright 1999-2012 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI="5"
26 +
27 +inherit eutils autotools
28 +
29 +DESCRIPTION="A library of routines for managing a database"
30 +HOMEPAGE="http://fallabs.com/tokyocabinet/"
31 +SRC_URI="${HOMEPAGE}${P}.tar.gz"
32 +
33 +LICENSE="LGPL-2.1"
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
36 +IUSE="bzip2 debug doc examples threads zlib"
37 +
38 +DEPEND="bzip2? ( app-arch/bzip2 )
39 + zlib? ( sys-libs/zlib )"
40 +RDEPEND="${DEPEND}"
41 +
42 +src_prepare() {
43 + epatch "${FILESDIR}/fix_rpath.patch"
44 + sed -i \
45 + -e "/ldconfig/d" \
46 + -e "/DATADIR/d" Makefile.in || die
47 + # cflags fix - remove -O2 at end of line and -fomit-frame-pointer
48 + sed -i -e 's/-O3"$/"/' configure.in || die
49 + sed -i -e 's/-fomit-frame-pointer//' configure.in || die
50 + # flag only works on x86 derivatives, remove everywhere else
51 + if ! use x86 && ! use amd64; then sed -i -e 's/ -minline-all-stringops//' configure.in; fi
52 + eautoreconf
53 +}
54 +
55 +src_configure() {
56 + # we use the "fastest" target without the -O3
57 + econf \
58 + $(use_enable debug) \
59 + $(use_enable bzip2 bzip) \
60 + $(use_enable zlib) \
61 + $(use_enable threads pthread) \
62 + --enable-off64 --enable-fastest
63 +}
64 +
65 +src_install() {
66 + emake DESTDIR="${D}" install || die "Install failed"
67 +
68 + if use examples; then
69 + insinto /usr/share/${PF}/example
70 + doins example/* || die "Install failed"
71 + fi
72 +
73 + if use doc; then
74 + insinto /usr/share/doc/${PF}
75 + doins -r doc/* || die "Install failed"
76 + fi
77 +}
78 +
79 +src_test() {
80 + emake -j1 check || die "Tests failed"
81 +}