Browse Source

[dev-db/lmdb] sync

master
Robert Förster 11 months ago
parent
commit
27eed8da44
  1. 13
      dev-db/lmdb/lmdb-9999.ebuild

13
dev-db/lmdb/lmdb-9999.ebuild

@ -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
EAPI=7
inherit flag-o-matic multilib-minimal toolchain-funcs
if [[ ${PV} = "9999" ]] ; then
@ -11,14 +10,14 @@ if [[ ${PV} = "9999" ]] ; then
KEYWORDS=""
else
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
DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store"
HOMEPAGE="https://symas.com/lmdb/technical/"
LICENSE="OPENLDAP"
SLOT="0/0.9.24"
SLOT="0/0.9.27"
IUSE="static-libs"
DEPEND=""
@ -38,8 +37,10 @@ src_prepare() {
multilib_src_configure() {
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)"
replace-flags -O[123456789] -O1
fi
sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \
-e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \
-e "s!^AR.*!AR = $(tc-getAR)!" \
@ -47,7 +48,7 @@ multilib_src_configure() {
-e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \
-e "/^libdir/s!lib\$!$(get_libdir)!" \
-e "s!shared!shared ${soname}!" \
"${S}/Makefile" || die
"Makefile" || die
if [[ ${CHOST} == *-solaris* ]] ; then
# fdatasync lives in -lrt on Solaris 10

Loading…
Cancel
Save