Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 488376 | Differences between
and this patch

Collapse All | Expand All

(-)gdbm-1.10.ebuild (-9 / +15 lines)
Lines 1-10 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2013 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-libs/gdbm/gdbm-1.10.ebuild,v 1.3 2013/02/17 20:03:35 zmedico Exp $
3
# $Header: $
4
4
5
EAPI="4"
5
EAPI="4"
6
6
7
inherit libtool flag-o-matic
7
inherit flag-o-matic libtool multilib-minimal
8
8
9
EX_P="${PN}-1.8.3"
9
EX_P="${PN}-1.8.3"
10
DESCRIPTION="Standard GNU database libraries"
10
DESCRIPTION="Standard GNU database libraries"
Lines 17-58 SLOT="0" Link Here
17
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"
17
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"
18
IUSE="+berkdb exporter static-libs"
18
IUSE="+berkdb exporter static-libs"
19
19
20
RDEPEND="
21
	abi_x86_32? (
22
		!<=app-emulation/emul-linux-x86-baselibs-20131008-r4
23
		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
24
	)"
25
20
EX_S="${WORKDIR}"/${EX_P}
26
EX_S="${WORKDIR}"/${EX_P}
21
27
22
src_prepare() {
28
src_prepare() {
23
	elibtoolize
29
	elibtoolize
24
}
30
}
25
31
26
src_configure() {
32
multilib_src_configure() {
27
	# gdbm doesn't appear to use either of these libraries
33
	# gdbm doesn't appear to use either of these libraries
28
	export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
34
	export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
29
35
30
	if use exporter ; then
36
	if multilib_build_binaries && use exporter ; then
31
		pushd "${EX_S}" >/dev/null
37
		pushd "${EX_S}" >/dev/null
32
		append-lfs-flags
38
		append-lfs-flags
33
		econf --disable-shared
39
		econf --disable-shared
34
		popd >/dev/null
40
		popd >/dev/null
35
	fi
41
	fi
36
42
43
	ECONF_SOURCE=${S} \
37
	econf \
44
	econf \
38
		--includedir="${EPREFIX}"/usr/include/gdbm \
45
		--includedir="${EPREFIX}"/usr/include/gdbm \
39
		--with-gdbm183-libdir="${EX_S}/.libs" \
46
		--with-gdbm183-libdir="${EX_S}/.libs" \
40
		--with-gdbm183-includedir="${EX_S}" \
47
		--with-gdbm183-includedir="${EX_S}" \
41
		$(use_enable berkdb libgdbm-compat) \
48
		$(use_enable berkdb libgdbm-compat) \
42
		$(use_enable exporter gdbm-export) \
49
		$(multilib_build_binaries && use_enable exporter gdbm-export) \
43
		$(use_enable static-libs static)
50
		$(use_enable static-libs static)
44
}
51
}
45
52
46
src_compile() {
53
multilib_src_compile() {
47
	if use exporter ; then
54
	if use exporter ; then
48
		emake -C "${WORKDIR}"/${EX_P} libgdbm.la
55
		emake -C "${EX_S}" libgdbm.la
49
	fi
56
	fi
50
57
51
	emake
58
	emake
52
}
59
}
53
60
54
src_install() {
61
multilib_src_install_all() {
55
	default
56
	use static-libs || find "${ED}" -name '*.la' -delete
62
	use static-libs || find "${ED}" -name '*.la' -delete
57
	mv "${ED}"/usr/include/gdbm/gdbm.h "${ED}"/usr/include/ || die
63
	mv "${ED}"/usr/include/gdbm/gdbm.h "${ED}"/usr/include/ || die
58
}
64
}

Return to bug 488376