diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-11-25 13:43:27 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-11-25 13:43:27 +0000 |
commit | 120471d7533fc8cc01fdcc472c6601f8e4cbc988 (patch) | |
tree | 70119696af4268801745c4090974833f2a4442f9 /sys-libs/gdbm/gdbm-1.10-r1.ebuild | |
parent | Mask multilib sys-libs/gdbm for emul-linux bump. (diff) | |
download | gentoo-2-120471d7533fc8cc01fdcc472c6601f8e4cbc988.tar.gz gentoo-2-120471d7533fc8cc01fdcc472c6601f8e4cbc988.tar.bz2 gentoo-2-120471d7533fc8cc01fdcc472c6601f8e4cbc988.zip |
Enable multilib support, bug #488376. Acked by Chainsaw.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'sys-libs/gdbm/gdbm-1.10-r1.ebuild')
-rw-r--r-- | sys-libs/gdbm/gdbm-1.10-r1.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sys-libs/gdbm/gdbm-1.10-r1.ebuild b/sys-libs/gdbm/gdbm-1.10-r1.ebuild new file mode 100644 index 000000000000..6d6281b24213 --- /dev/null +++ b/sys-libs/gdbm/gdbm-1.10-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/gdbm/gdbm-1.10-r1.ebuild,v 1.1 2013/11/25 13:43:27 mgorny Exp $ + +EAPI="4" + +inherit flag-o-matic libtool multilib multilib-minimal + +EX_P="${PN}-1.8.3" +DESCRIPTION="Standard GNU database libraries" +HOMEPAGE="http://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 ~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" + +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_build_binaries && 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_build_binaries && use_enable exporter gdbm-export) \ + $(use_enable static-libs static) +} + +multilib_src_compile() { + if use exporter ; then + emake -C "${EX_S}" libgdbm.la + fi + + emake +} + +multilib_src_install_all() { + 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 +} |