summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-01-26 10:20:50 +0000
committerMike Frysinger <vapier@gentoo.org>2008-01-26 10:20:50 +0000
commit8656248ab563c28cb773fda5a2235b465dafc83b (patch)
tree594438db0b9d9b92896151c5c9d0f6651e669bde /sys-libs
parentDropped ppc-macos keyword, see you in prefix (diff)
downloadgentoo-2-8656248ab563c28cb773fda5a2235b465dafc83b.tar.gz
gentoo-2-8656248ab563c28cb773fda5a2235b465dafc83b.tar.bz2
gentoo-2-8656248ab563c28cb773fda5a2235b465dafc83b.zip
Add LFS flags to the build so we can work with large dbs.
(Portage version: 2.1.4)
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/gdbm/ChangeLog9
-rw-r--r--sys-libs/gdbm/files/digest-gdbm-1.8.3-r43
-rw-r--r--sys-libs/gdbm/gdbm-1.8.3-r4.ebuild45
3 files changed, 55 insertions, 2 deletions
diff --git a/sys-libs/gdbm/ChangeLog b/sys-libs/gdbm/ChangeLog
index f86bd7a32268..d8af82fd467a 100644
--- a/sys-libs/gdbm/ChangeLog
+++ b/sys-libs/gdbm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-libs/gdbm
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/gdbm/ChangeLog,v 1.41 2007/02/17 22:45:04 grobian Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/gdbm/ChangeLog,v 1.42 2008/01/26 10:20:49 vapier Exp $
+
+*gdbm-1.8.3-r4 (26 Jan 2008)
+
+ 26 Jan 2008; Mike Frysinger <vapier@gentoo.org> +gdbm-1.8.3-r4.ebuild:
+ Add LFS flags to the build so we can work with large dbs.
17 Feb 2007; Fabian Groffen <grobian@gentoo.org> gdbm-1.8.3-r3.ebuild:
Dropped ppc-macos keyword, see you in prefix
diff --git a/sys-libs/gdbm/files/digest-gdbm-1.8.3-r4 b/sys-libs/gdbm/files/digest-gdbm-1.8.3-r4
new file mode 100644
index 000000000000..440f9dd971ae
--- /dev/null
+++ b/sys-libs/gdbm/files/digest-gdbm-1.8.3-r4
@@ -0,0 +1,3 @@
+MD5 1d1b1d5c0245b1c00aff92da751e9aa1 gdbm-1.8.3.tar.gz 228695
+RMD160 0f5741ab32f95db721c5d9f4548447301171e938 gdbm-1.8.3.tar.gz 228695
+SHA256 cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a281dc9 gdbm-1.8.3.tar.gz 228695
diff --git a/sys-libs/gdbm/gdbm-1.8.3-r4.ebuild b/sys-libs/gdbm/gdbm-1.8.3-r4.ebuild
new file mode 100644
index 000000000000..e72e7dd415c3
--- /dev/null
+++ b/sys-libs/gdbm/gdbm-1.8.3-r4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/gdbm/gdbm-1.8.3-r4.ebuild,v 1.1 2008/01/26 10:20:49 vapier Exp $
+
+inherit eutils libtool flag-o-matic
+
+DESCRIPTION="Standard GNU database libraries"
+HOMEPAGE="http://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 ~sparc-fbsd ~x86 ~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
+ 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 || 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
+}