mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-db/cdb: update to EAPI 8
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI="8"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
@@ -12,15 +12,17 @@ SRC_URI="https://cr.yp.to/${PN}/${P}.tar.gz"
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="!dev-db/tinycdb"
|
||||
RDEPEND="${DEPEND}"
|
||||
RDEPEND="!dev-db/tinycdb"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-errno.patch
|
||||
"${FILESDIR}"/${PN}-inline.patch
|
||||
"${FILESDIR}"/${PN}-stdint.patch
|
||||
)
|
||||
DOCS=( CHANGES README TODO VERSION )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
@@ -33,26 +35,25 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
echo "$(tc-getCC) ${CFLAGS} -fPIC" > conf-cc || die
|
||||
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
|
||||
echo "${EPREFIX}/usr" > conf-home || die
|
||||
echo "$(tc-getCC) ${CFLAGS} -fPIC" >conf-cc || die
|
||||
echo "$(tc-getCC) ${LDFLAGS}" >conf-ld || die
|
||||
echo "${EPREFIX}/usr" >conf-home || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv cdbstats cdbtest
|
||||
dobin ${PN}{dump,get,make{,-12,-sv},stats,test}
|
||||
|
||||
# ok so ... first off, some automakes fail at finding
|
||||
# cdb.a, so install that now
|
||||
dolib.a *.a
|
||||
|
||||
# then do this pretty little symlinking to solve the somewhat
|
||||
# cosmetic library issue at hand
|
||||
dosym cdb.a /usr/$(get_libdir)/libcdb.a
|
||||
dosym ${PN}.a /usr/$(get_libdir)/lib${PN}.a
|
||||
|
||||
# uint32.h needs installation too, otherwise compiles depending
|
||||
# on it will fail
|
||||
insinto /usr/include/cdb
|
||||
doins cdb*.h buffer.h alloc.h uint32.h
|
||||
insinto /usr/include/${PN}
|
||||
doins ${PN}*.h {alloc,buffer,uint32}.h
|
||||
|
||||
dodoc CHANGES FILES README SYSDEPS TODO VERSION
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user