mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-libs/gdbm: Removed old.
Package-Manager: portage-2.2.28 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
DIST gdbm-1.10.tar.gz 655599 SHA256 23f8134c5b94bbfb06d756a6b78f074fba6e6028cf2fe01341d40b26db773441 SHA512 e93604a79d693ccc4be5ba4b41bb3f046186d95ebfdb075f8b201adde8405299cf34011c4863438bef2f5eda38304ad9ad562a56644b46c46036dc8f45b4dd9c WHIRLPOOL 3d71980caa96697c30679af99bcdaad0c595f15636c6ababe33dc9ff243101fd7f6cf25372dfb943c3ae91c5ab3364ca9599e16332ee3086abdd166fb1bef6f7
|
||||
DIST gdbm-1.11.tar.gz 811662 SHA256 8d912f44f05d0b15a4a5d96a76f852e905d051bb88022fcdfd98b43be093e3c3 SHA512 272fb65ab9ca0a21e9f0dcfb2c638457e87cbb938c65ee850123474d11f2858496f84d3fa9edca27cd91c7220160cfdb59f90bd46ddc45395514addc9fd4151c WHIRLPOOL 827f100826273fb8e6d8fdc88fffdb81e5630a7d07bdbeeb7d25759809c5165613446567b0b48bf862d4a4b231e5db921e28c9d6915e669fd0ce795f4a9f150a
|
||||
DIST gdbm-1.12.tar.gz 841213 SHA256 d97b2166ee867fd6ca5c022efee80702d6f30dd66af0e03ed092285c3af9bcea SHA512 25e03dceed6986f1977d304a5ad059ac6c603a88ad4aa18c831ec42df82d68006f2e04b8a3cc400d0a4970750c78ba24a3f84cdff70de9f278cfd854c059699e WHIRLPOOL 63f6592eafc5332cb754a1def412beaecaa21d751a41eab90be84ea0100846efa088c2a10f223238a17a48109e880d945db1f19eb62b8ddea673b413021f8669
|
||||
DIST gdbm-1.8.3.tar.gz 228695 SHA256 cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a281dc9 SHA512 2a01751ee8f730db563b4f52185c72f1c7a4f66530d6736f05f7446153be685ea0bb6ea1d2bad16ce31547fea879dc48507ff65ad35b0973df9aa385713b10d7 WHIRLPOOL 9d2e402b2ec00cadfc64e40d87da095f293f157386abbe9a64ebe8b7a2af9b965546805826ffe3d5c88212dec0628ab2ae3ebef91de2da7fc69d0937d03d7075
|
||||
DIST gdbm-1.9.1.tar.gz 554843 SHA256 6025852637772b0699f2294b5f14fd4a084bca3c8161d29d64d1f30d6d1a9aed SHA512 4e491d956ed3212ab735d77463c7d62c16910d526951568ca728e03e4a184b5a9825d722e1a4b34d93a703fe31bf4c92972c9f7daad82670d85c2aa113b4c509 WHIRLPOOL f2aa9a7d65456c35a7b24e35601fffc8c55732f59e17802789a8e7303d2c07e92a38cf7167fbe4d25f2fa01313916994f5fe0b80e4b8c4e367666b70f0399cc3
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
Respect system LDFLAGS when generating gdbm libs
|
||||
|
||||
http://bugs.gentoo.org/209730
|
||||
|
||||
--- Makefile.in
|
||||
+++ Makefile.in
|
||||
@@ -146,12 +146,12 @@
|
||||
|
||||
libgdbm.la: $(LOBJS) gdbm.h
|
||||
rm -f libgdbm.la
|
||||
- $(LIBTOOL) --mode=link $(CC) -o libgdbm.la -rpath $(libdir) \
|
||||
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o libgdbm.la -rpath $(libdir) \
|
||||
-version-info $(SHLIB_VER) $(LOBJS)
|
||||
|
||||
libgdbm_compat.la: $(C_LOBJS) gdbm.h libgdbm.la
|
||||
rm -f libgdbm_compat.la
|
||||
- $(LIBTOOL) --mode=link $(CC) -o libgdbm_compat.la -rpath $(libdir) \
|
||||
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o libgdbm_compat.la -rpath $(libdir) \
|
||||
-version-info $(SHLIB_VER) $(C_LOBJS) libgdbm.la
|
||||
|
||||
gdbm.h: gdbm.proto gdbmerrno.h gdbm.proto2
|
||||
@@ -1,19 +0,0 @@
|
||||
Since libgdbm_compat uses libgdbm, make sure we link it in.
|
||||
|
||||
http://bugs.gentoo.org/165263
|
||||
|
||||
--- gdbm-1.8.3/Makefile.in
|
||||
+++ gdbm-1.8.3/Makefile.in
|
||||
@@ -161,10 +161,10 @@
|
||||
$(LIBTOOL) --mode=link $(CC) -o libgdbm.la -rpath $(libdir) \
|
||||
-version-info $(SHLIB_VER) $(LOBJS)
|
||||
|
||||
-libgdbm_compat.la: $(C_LOBJS) gdbm.h
|
||||
+libgdbm_compat.la: $(C_LOBJS) gdbm.h libgdbm.la
|
||||
rm -f libgdbm_compat.la
|
||||
$(LIBTOOL) --mode=link $(CC) -o libgdbm_compat.la -rpath $(libdir) \
|
||||
- -version-info $(SHLIB_VER) $(C_LOBJS)
|
||||
+ -version-info $(SHLIB_VER) $(C_LOBJS) libgdbm.la
|
||||
|
||||
gdbm.h: gdbm.proto gdbmerrno.h gdbm.proto2
|
||||
rm -f gdbm.h
|
||||
@@ -1,45 +0,0 @@
|
||||
Install with proper ownership.
|
||||
|
||||
http://bugs.gentoo.org/24178
|
||||
|
||||
--- gdbm/Makefile.in
|
||||
+++ gdbm/Makefile.in
|
||||
@@ -14,10 +14,6 @@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
|
||||
-# File ownership and group
|
||||
-BINOWN = bin
|
||||
-BINGRP = bin
|
||||
-
|
||||
MAKEINFO = makeinfo
|
||||
TEXI2DVI = texi2dvi
|
||||
|
||||
@@ -131,22 +127,17 @@
|
||||
$(INSTALL_ROOT)$(includedir) $(INSTALL_ROOT)$(man3dir) \
|
||||
$(INSTALL_ROOT)$(infodir)
|
||||
$(LIBTOOL) $(INSTALL) -c libgdbm.la $(INSTALL_ROOT)$(libdir)/libgdbm.la
|
||||
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) gdbm.h \
|
||||
- $(INSTALL_ROOT)$(includedir)/gdbm.h
|
||||
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.3 \
|
||||
- $(INSTALL_ROOT)$(man3dir)/gdbm.3
|
||||
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.info \
|
||||
- $(INSTALL_ROOT)$(infodir)/gdbm.info
|
||||
+ $(INSTALL_DATA) gdbm.h $(INSTALL_ROOT)$(includedir)/gdbm.h
|
||||
+ $(INSTALL_DATA) $(srcdir)/gdbm.3 $(INSTALL_ROOT)$(man3dir)/gdbm.3
|
||||
+ $(INSTALL_DATA) $(srcdir)/gdbm.info $(INSTALL_ROOT)$(infodir)/gdbm.info
|
||||
|
||||
install-compat:
|
||||
$(srcdir)/mkinstalldirs $(INSTALL_ROOT)$(libdir) \
|
||||
$(INSTALL_ROOT)$(includedir)
|
||||
$(LIBTOOL) $(INSTALL) -c libgdbm_compat.la \
|
||||
$(INSTALL_ROOT)$(libdir)/libgdbm_compat.la
|
||||
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/dbm.h \
|
||||
- $(INSTALL_ROOT)$(includedir)/dbm.h
|
||||
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/ndbm.h \
|
||||
- $(INSTALL_ROOT)$(includedir)/ndbm.h
|
||||
+ $(INSTALL_DATA) $(srcdir)/dbm.h $(INSTALL_ROOT)$(includedir)/dbm.h
|
||||
+ $(INSTALL_DATA) $(srcdir)/ndbm.h $(INSTALL_ROOT)$(includedir)/ndbm.h
|
||||
|
||||
#libgdbm.a: $(OBJS) gdbm.h
|
||||
# rm -f libgdbm.a
|
||||
@@ -1,24 +0,0 @@
|
||||
fix from upstream
|
||||
https://bugs.gentoo.org/383743
|
||||
|
||||
From ae9ea0011da4ba01e5639611d61c442af8d42817 Mon Sep 17 00:00:00 2001
|
||||
From: Sergey Poznyakoff <gray@gnu.org.ua>
|
||||
Date: Sun, 14 Aug 2011 20:17:54 +0000
|
||||
Subject: * compat/Makefile.am (libgdbm_compat_la_LIBADD): Link against libgdbm.
|
||||
|
||||
2011-08-14 Sergey Poznyakoff <gray@gnu.org.ua>
|
||||
|
||||
* compat/Makefile.am (libgdbm_compat_la_LIBADD): Link against
|
||||
libgdbm. Suggested by Adam Sampson.
|
||||
|
||||
--- a/compat/Makefile.in
|
||||
+++ b/compat/Makefile.in
|
||||
@@ -23,7 +23,7 @@
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
-libgdbm_compat_la_LIBADD =
|
||||
+libgdbm_compat_la_LIBADD = ../src/libgdbm.la
|
||||
am__objects_1 = dbminit.lo delete.lo fetch.lo store.lo seq.lo close.lo
|
||||
am__objects_2 = dbmopen.lo dbmdelete.lo dbmerr.lo dbmfetch.lo \
|
||||
dbmstore.lo dbmseq.lo dbmclose.lo dbmdirfno.lo dbmpagfno.lo \
|
||||
@@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit flag-o-matic libtool multilib multilib-minimal
|
||||
|
||||
EX_P="${PN}-1.8.3"
|
||||
DESCRIPTION="Standard GNU database libraries"
|
||||
HOMEPAGE="https://www.gnu.org/software/gdbm/"
|
||||
SRC_URI="mirror://gnu/gdbm/${P}.tar.gz
|
||||
exporter? ( mirror://gnu/gdbm/${EX_P}.tar.gz )"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+berkdb exporter nls static-libs"
|
||||
|
||||
RDEPEND="
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r4
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
EX_S="${WORKDIR}"/${EX_P}
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# gdbm doesn't appear to use either of these libraries
|
||||
export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
|
||||
|
||||
if multilib_is_native_abi && use exporter ; then
|
||||
pushd "${EX_S}" >/dev/null
|
||||
append-lfs-flags
|
||||
econf --disable-shared
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--includedir="${EPREFIX}"/usr/include/gdbm \
|
||||
--with-gdbm183-libdir="${EX_S}/.libs" \
|
||||
--with-gdbm183-includedir="${EX_S}" \
|
||||
$(use_enable berkdb libgdbm-compat) \
|
||||
$(multilib_is_native_abi && use_enable exporter gdbm-export) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
use exporter && emake -C "${EX_S}" libgdbm.la
|
||||
emake
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
use static-libs || find "${ED}" -name '*.la' -delete
|
||||
mv "${ED}"/usr/include/gdbm/gdbm.h "${ED}"/usr/include/ || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserve_old_lib libgdbm{,_compat}.so.{2,3} #32510
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
preserve_old_lib_notify libgdbm{,_compat}.so.{2,3} #32510
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit libtool flag-o-matic
|
||||
|
||||
EX_P="${PN}-1.8.3"
|
||||
DESCRIPTION="Standard GNU database libraries"
|
||||
HOMEPAGE="https://www.gnu.org/software/gdbm/"
|
||||
SRC_URI="mirror://gnu/gdbm/${P}.tar.gz
|
||||
exporter? ( mirror://gnu/gdbm/${EX_P}.tar.gz )"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+berkdb exporter static-libs"
|
||||
|
||||
EX_S="${WORKDIR}"/${EX_P}
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# gdbm doesn't appear to use either of these libraries
|
||||
export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
|
||||
|
||||
if use exporter ; then
|
||||
pushd "${EX_S}" >/dev/null
|
||||
append-lfs-flags
|
||||
econf --disable-shared
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
econf \
|
||||
--includedir="${EPREFIX}"/usr/include/gdbm \
|
||||
--with-gdbm183-libdir="${EX_S}/.libs" \
|
||||
--with-gdbm183-includedir="${EX_S}" \
|
||||
$(use_enable berkdb libgdbm-compat) \
|
||||
$(use_enable exporter gdbm-export) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use exporter ; then
|
||||
emake -C "${WORKDIR}"/${EX_P} libgdbm.la
|
||||
fi
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use static-libs || find "${ED}" -name '*.la' -delete
|
||||
mv "${ED}"/usr/include/gdbm/gdbm.h "${ED}"/usr/include/ || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserve_old_lib libgdbm{,_compat}.so.{2,3} #32510
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
preserve_old_lib_notify libgdbm{,_compat}.so.{2,3} #32510
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit eutils libtool multilib
|
||||
|
||||
DESCRIPTION="Standard GNU database libraries"
|
||||
HOMEPAGE="https://www.gnu.org/software/gdbm/gdbm.html"
|
||||
SRC_URI="mirror://gnu/gdbm/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="berkdb"
|
||||
|
||||
DEPEND="berkdb? ( sys-libs/db )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/${P}-fix-install-ownership.patch #24178
|
||||
epatch "${FILESDIR}"/${P}-compat-linking.patch #165263
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use berkdb || export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
|
||||
econf --includedir=/usr/include/gdbm || die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 INSTALL_ROOT="${D}" install install-compat || die
|
||||
mv "${D}"/usr/include/gdbm/gdbm.h "${D}"/usr/include/ || die
|
||||
dodoc ChangeLog NEWS README
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserve_old_lib libgdbm.so.2 #32510
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
preserve_old_lib_notify libgdbm.so.2 #32510
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit eutils libtool flag-o-matic
|
||||
|
||||
DESCRIPTION="Standard GNU database libraries"
|
||||
HOMEPAGE="https://www.gnu.org/software/gdbm/gdbm.html"
|
||||
SRC_URI="mirror://gnu/gdbm/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="berkdb"
|
||||
|
||||
DEPEND="berkdb? ( sys-libs/db )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/${P}-fix-install-ownership.patch #24178
|
||||
epatch "${FILESDIR}"/${P}-compat-linking.patch #165263
|
||||
epatch "${FILESDIR}"/${P}-build.patch #209730
|
||||
elibtoolize
|
||||
append-lfs-flags
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use berkdb || export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
|
||||
econf \
|
||||
--includedir=/usr/include/gdbm \
|
||||
--disable-dependency-tracking \
|
||||
--enable-fast-install \
|
||||
|| die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 INSTALL_ROOT="${D}" install install-compat || die
|
||||
mv "${D}"/usr/include/gdbm/gdbm.h "${D}"/usr/include/ || die
|
||||
dodoc ChangeLog NEWS README
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserve_old_lib libgdbm.so.2 #32510
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
preserve_old_lib_notify libgdbm.so.2 #32510
|
||||
|
||||
ewarn "32bit systems might have to rebuild all gdbm databases due to"
|
||||
ewarn "LFS changes in the gdbm format. You can either delete the db"
|
||||
ewarn "and regenerate it from scratch, or use the converter:"
|
||||
ewarn "https://bugs.gentoo.org/attachment.cgi?id=215326"
|
||||
ewarn
|
||||
ewarn "See this comment for information on how to use it:"
|
||||
ewarn "https://bugs.gentoo.org/299390#c15"
|
||||
ewarn
|
||||
ewarn "You should be able to locate most gdbm db's on your system with:"
|
||||
ewarn "find /etc /var -type f -exec file {} + | grep 'GNU dbm 1.x or ndbm database'"
|
||||
ewarn
|
||||
ewarn "You could also try using this helper script:"
|
||||
ewarn "https://bugs.gentoo.org/attachment.cgi?id=222581"
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils libtool flag-o-matic
|
||||
|
||||
EX_P="${PN}-1.8.3"
|
||||
DESCRIPTION="Standard GNU database libraries"
|
||||
HOMEPAGE="https://www.gnu.org/software/gdbm/"
|
||||
SRC_URI="mirror://gnu/gdbm/${P}.tar.gz
|
||||
exporter? ( mirror://gnu/gdbm/${EX_P}.tar.gz )"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+berkdb exporter static-libs"
|
||||
|
||||
EX_S="${WORKDIR}"/${EX_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-compat-link.patch #383743
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# gdbm doesn't appear to use either of these libraries
|
||||
export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
|
||||
|
||||
if use exporter ; then
|
||||
pushd "${EX_S}" >/dev/null
|
||||
append-lfs-flags
|
||||
econf --disable-shared
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
econf \
|
||||
--includedir="${EPREFIX}"/usr/include/gdbm \
|
||||
--with-gdbm183-libdir="${EX_S}/.libs" \
|
||||
--with-gdbm183-includedir="${EX_S}" \
|
||||
$(use_enable berkdb libgdbm-compat) \
|
||||
$(use_enable exporter gdbm-export) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use exporter ; then
|
||||
emake -C "${WORKDIR}"/${EX_P} libgdbm.la || die
|
||||
fi
|
||||
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
use static-libs || find "${ED}" -name '*.la' -delete
|
||||
mv "${ED}"/usr/include/gdbm/gdbm.h "${ED}"/usr/include/ || die
|
||||
dodoc ChangeLog NEWS README
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserve_old_lib libgdbm{,_compat}.so.{2,3} #32510
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
preserve_old_lib_notify libgdbm{,_compat}.so.{2,3} #32510
|
||||
}
|
||||
Reference in New Issue
Block a user