[dev-db/lmdb] remove unmaintained live ebuild
This commit is contained in:
parent
62ae015b35
commit
ac2f847bd9
@ -1,80 +0,0 @@
|
||||
# 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
|
||||
EGIT_REPO_URI="https://github.com/LMDB/lmdb.git"
|
||||
inherit git-r3
|
||||
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 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-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.27"
|
||||
IUSE="static-libs"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${P}/libraries/liblmdb"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -lt 10 ]] ; then
|
||||
# posix_memalign isn't available before 10.6, but on OSX
|
||||
# malloc is always aligned for any addressable type
|
||||
sed -i -e '/(__APPLE__)/a#define HAVE_MEMALIGN 1\n#define memalign(X,Y) malloc(X)' mdb.c || die
|
||||
fi
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local soname="-Wl,-soname,liblmdb$(get_libname 0)"
|
||||
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)!" \
|
||||
-e "s!^SOEXT.*!SOEXT = $(get_libname)!" \
|
||||
-e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \
|
||||
-e "/^libdir/s!lib\$!$(get_libdir)!" \
|
||||
-e "s!shared!shared ${soname}!" \
|
||||
"Makefile" || die
|
||||
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
# fdatasync lives in -lrt on Solaris 10
|
||||
[[ ${CHOST#*-solaris2.} -le 10 ]] && append-ldflags -lrt
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake LDLIBS+=" -pthread"
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
mv "${ED}"/usr/$(get_libdir)/liblmdb$(get_libname) \
|
||||
"${ED}"/usr/$(get_libdir)/liblmdb$(get_libname 0) || die
|
||||
dosym liblmdb$(get_libname 0) /usr/$(get_libdir)/liblmdb$(get_libname)
|
||||
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins "${FILESDIR}/lmdb.pc"
|
||||
sed -i -e "s!@PACKAGE_VERSION@!${PV}!" \
|
||||
-e "s!@prefix@!${EPREFIX}/usr!g" \
|
||||
-e "s!@libdir@!$(get_libdir)!" \
|
||||
"${ED}"/usr/$(get_libdir)/pkgconfig/lmdb.pc || die
|
||||
|
||||
if ! use static-libs; then
|
||||
rm "${ED}"/usr/$(get_libdir)/liblmdb.a || die
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue
Block a user