[dev-db/lmdb] sync

This commit is contained in:
Robert Förster 2021-01-02 12:24:36 +01:00
parent 2751dfcc95
commit 27eed8da44

View File

@ -1,8 +1,7 @@
# Copyright 1999-2019 Gentoo Authors # Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=7
inherit flag-o-matic multilib-minimal toolchain-funcs inherit flag-o-matic multilib-minimal toolchain-funcs
if [[ ${PV} = "9999" ]] ; then if [[ ${PV} = "9999" ]] ; then
@ -11,14 +10,14 @@ if [[ ${PV} = "9999" ]] ; then
KEYWORDS="" KEYWORDS=""
else else
SRC_URI="https://github.com/LMDB/lmdb/archive/${MY_P}.tar.gz" SRC_URI="https://github.com/LMDB/lmdb/archive/${MY_P}.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
fi fi
DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store" DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store"
HOMEPAGE="https://symas.com/lmdb/technical/" HOMEPAGE="https://symas.com/lmdb/technical/"
LICENSE="OPENLDAP" LICENSE="OPENLDAP"
SLOT="0/0.9.24" SLOT="0/0.9.27"
IUSE="static-libs" IUSE="static-libs"
DEPEND="" DEPEND=""
@ -38,8 +37,10 @@ src_prepare() {
multilib_src_configure() { multilib_src_configure() {
local soname="-Wl,-soname,liblmdb$(get_libname 0)" local soname="-Wl,-soname,liblmdb$(get_libname 0)"
[[ ${CHOST} == *-darwin* ]] && \ if [[ ${CHOST} == *-darwin* ]] ; then
soname="-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/liblmdb$(get_libname 0)" soname="-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/liblmdb$(get_libname 0)"
replace-flags -O[123456789] -O1
fi
sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \ sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \
-e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \ -e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \
-e "s!^AR.*!AR = $(tc-getAR)!" \ -e "s!^AR.*!AR = $(tc-getAR)!" \
@ -47,7 +48,7 @@ multilib_src_configure() {
-e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \ -e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \
-e "/^libdir/s!lib\$!$(get_libdir)!" \ -e "/^libdir/s!lib\$!$(get_libdir)!" \
-e "s!shared!shared ${soname}!" \ -e "s!shared!shared ${soname}!" \
"${S}/Makefile" || die "Makefile" || die
if [[ ${CHOST} == *-solaris* ]] ; then if [[ ${CHOST} == *-solaris* ]] ; then
# fdatasync lives in -lrt on Solaris 10 # fdatasync lives in -lrt on Solaris 10