commit:     361ae0e37e272f005ca243ee291535b73a803216
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  8 10:06:47 2017 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sat Apr  8 10:28:03 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=361ae0e3

dev-db/kyotocabinet: Fix gcc6 support (#594064 by Peter Levine), port to eapi6, 
use ltprune.eclass

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 .../files/kyotocabinet-1.2.76-gcc6.patch           | 11 ++++++++++
 dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild  | 24 ++++++++++++++--------
 2 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-gcc6.patch 
b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-gcc6.patch
new file mode 100644
index 00000000000..3bcc6a28e79
--- /dev/null
+++ b/dev-db/kyotocabinet/files/kyotocabinet-1.2.76-gcc6.patch
@@ -0,0 +1,11 @@
+--- a/kcdbext.h
++++ b/kcdbext.h
+@@ -1278,7 +1278,7 @@
+     if (omode_ == 0) {
+       set_error(_KCCODELINE_, BasicDB::Error::INVALID, "not opened");
+       *sp = 0;
+-      return false;
++      return NULL;
+     }
+     if (!cache_) return db_.get(kbuf, ksiz, sp);
+     size_t dvsiz = 0;

diff --git a/dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild 
b/dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild
index d1cee461ef9..4b7d4de72a8 100644
--- a/dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild
+++ b/dev-db/kyotocabinet/kyotocabinet-1.2.76-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-inherit autotools eutils toolchain-funcs
+inherit autotools ltprune toolchain-funcs
 
 DESCRIPTION="A straightforward implementation of DBM"
 HOMEPAGE="http://fallabs.com/kyotocabinet/";
@@ -18,13 +18,20 @@ DEPEND="sys-libs/zlib[static-libs?]
        app-arch/xz-utils[static-libs?]"
 RDEPEND="${DEPEND}"
 
+PATCHES=(
+       "${FILESDIR}"/fix_configure-1.2.62.patch
+       "${FILESDIR}"/${PN}-1.2.76-configure-8-byte-atomics.patch
+       "${FILESDIR}"/${PN}-1.2.76-flags.patch
+       "${FILESDIR}"/${PN}-1.2.76-gcc6.patch
+)
+
 src_prepare() {
-       epatch "${FILESDIR}"/fix_configure-1.2.62.patch
-       epatch "${FILESDIR}"/${PN}-1.2.76-configure-8-byte-atomics.patch
-       epatch "${FILESDIR}"/${PN}-1.2.76-flags.patch
+       default
+
        sed -i -e "/DOCDIR/d" Makefile.in || die
        tc-export AR
 
+       mv configure.in configure.ac || die
        eautoreconf
 }
 
@@ -32,7 +39,7 @@ src_configure() {
        econf $(use_enable debug) \
                $(use_enable static-libs static) \
                $(use_enable !static-libs shared) \
-               --enable-lzma --docdir=/usr/share/doc/${PF}
+               --enable-lzma
 }
 
 src_test() {
@@ -40,8 +47,7 @@ src_test() {
 }
 
 src_install() {
-       emake DESTDIR="${D}" install
-
+       default
        prune_libtool_files
 
        if use examples; then

Reply via email to