diff options
-rw-r--r-- | sys-libs/db/Manifest | 9 | ||||
-rw-r--r-- | sys-libs/db/db-4.4.20.ebuild | 131 | ||||
-rw-r--r-- | sys-libs/db/files/db-4.4-libtool.patch | 47 | ||||
-rw-r--r-- | sys-libs/db/files/digest-db-4.4.20 | 3 |
4 files changed, 190 insertions, 0 deletions
diff --git a/sys-libs/db/Manifest b/sys-libs/db/Manifest index bfce98dd8370..612979ac5e6c 100644 --- a/sys-libs/db/Manifest +++ b/sys-libs/db/Manifest @@ -43,6 +43,9 @@ SHA256 038420d313309f2198e28fab5f14eadf6d90bc79118f01e226e5d645c8b2f947 db-4.3.2 MD5 7968d65cc2c60203feef27411e84752f db-4.3.29.ebuild 3090 RMD160 a9e90e28bc79f66b8fa2002c06d0f0bbea2bb92e db-4.3.29.ebuild 3090 SHA256 8a012ecb58fc710c104f63e715632dc5a5a6b1fdc58a84362624f7c2b5b3f8ef db-4.3.29.ebuild 3090 +MD5 2fd57552ace2df7f9b55cbd9db2bf745 db-4.4.20.ebuild 3144 +RMD160 98b4219d46d4716a38953ee619401e08e1372f5b db-4.4.20.ebuild 3144 +SHA256 6c39c31b325231a631e8e5a0a6ea0f16b5aeff0ad15f49333c81602b7db5a5b7 db-4.4.20.ebuild 3144 MD5 86aca9a49a082dc56e4103ec8112f344 files/db-1.85-gentoo-paths.patch 684 RMD160 cbfb484127600e180eb432d3f5aa31deba43e8bf files/db-1.85-gentoo-paths.patch 684 SHA256 049052c74c544ac1c1f3b1b91c3e43df76b135c610148212679dfd324470cf2f files/db-1.85-gentoo-paths.patch 684 @@ -88,6 +91,9 @@ SHA256 2ec92f53f9ae5431acfbe4fdaddc5406730b98f3bf372d58f0ad69c69fa16df4 files/db MD5 72688c24d0217c7e214b816417d8ef97 files/db-4.3.27-fix-dep-link.patch 1179 RMD160 c7c5d28f6e7083bffbab29e43cb57d800eceba6e files/db-4.3.27-fix-dep-link.patch 1179 SHA256 fc5c59311dadd11dde7ba6b6e975069a52e1ded76fcebe1b76927b79899fe425 files/db-4.3.27-fix-dep-link.patch 1179 +MD5 01f6ce9181e5e748014b1dc5e747e3bd files/db-4.4-libtool.patch 1817 +RMD160 989536933036b8ea7d4bf55420c49ebad76d703b files/db-4.4-libtool.patch 1817 +SHA256 7b47ab059b5e9a775e024f6f2562eea136e870a32748675664e5a5315b871b21 files/db-4.4-libtool.patch 1817 MD5 ecd81fa9868ec49c61306444144d44a9 files/db.1.85.patch 55584 RMD160 e4433e45e13764b8d0cdf948909f6f5b8f9ed7ff files/db.1.85.patch 55584 SHA256 6df42acf6d7bec774b1bdc1629abadf7b006d622e2bbcf638aed7985eacdd48e files/db.1.85.patch 55584 @@ -133,6 +139,9 @@ SHA256 6ca7f0a915630ad78b40c03b2616ce5ef6c44ae87c238682baaa8df71c6ad18f files/di MD5 1ef24208f7a41603e6958e15c6278278 files/digest-db-4.3.29 62 RMD160 73fe3d2d8fc9e5e119de7bcc65903c052fd52f73 files/digest-db-4.3.29 62 SHA256 9aa09a9b4f1ad09f635fb0c4717f87f4ff69c8516927fdfd8802f78c77490d66 files/digest-db-4.3.29 62 +MD5 9e579cc4d94c823e2c62958b145611a2 files/digest-db-4.4.20 232 +RMD160 23d35939865d9a314fb1ecd52bac27fa7084a6c3 files/digest-db-4.4.20 232 +SHA256 9bc163de0955b21f721a8353cbb6e5accb99452f76135d69933df56237c0f68b files/digest-db-4.4.20 232 MD5 9cf113248f29b1e319ae73b266df4986 files/patch.3.2.9.1 2139 RMD160 a018e1e91102c972279ec017e1d87d6d87f99a56 files/patch.3.2.9.1 2139 SHA256 6d89a42ee0be9e47b3e8a42981c65266a556de84bc6281edcf0f977f52547798 files/patch.3.2.9.1 2139 diff --git a/sys-libs/db/db-4.4.20.ebuild b/sys-libs/db/db-4.4.20.ebuild new file mode 100644 index 000000000000..7ef323502d97 --- /dev/null +++ b/sys-libs/db/db-4.4.20.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/db-4.4.20.ebuild,v 1.1 2006/01/31 10:47:19 pauldv Exp $ + +inherit eutils gnuconfig db + +#Number of official patches +#PATCHNO=`echo ${PV}|sed -e "s,\(.*_p\)\([0-9]*\),\2,"` +PATCHNO=${PV/*.*.*_p} +if [ "${PATCHNO}" == "${PV}" ]; then + MY_PV=${PV} + MY_P=${P} + PATCHNO=0 +else + MY_PV=${PV/_p${PATCHNO}} + MY_P=${PN}-${MY_PV} +fi + +S=${WORKDIR}/${MY_P}/build_unix +DESCRIPTION="Berkeley DB" +HOMEPAGE="http://www.sleepycat.com/" +SRC_URI="ftp://ftp.sleepycat.com/releases/${MY_P}.tar.gz" +for (( i=1 ; i<=$PATCHNO ; i++ )) ; do + export SRC_URI="${SRC_URI} http://www.sleepycat.com/update/${MY_PV}/patch.${MY_PV}.${i}" +done + +LICENSE="DB" +SLOT="4.4" +KEYWORDS="~amd64 ~ia64 ~m68k ~ppc ~sparc ~x86" +IUSE="tcltk java doc nocxx bootstrap" + +DEPEND="tcltk? ( >=dev-lang/tcl-8.4 ) + java? ( virtual/jdk )" +RDEPEND="tcltk? ( dev-lang/tcl ) + java? ( virtual/jre )" + +src_unpack() { + unpack ${MY_P}.tar.gz + cd ${WORKDIR}/${MY_P} + for (( i=1 ; i<=$PATCHNO ; i++ )) + do + epatch ${DISTDIR}/patch.${MY_PV}.${i} + done + epatch ${FILESDIR}/${PN}-4.3-jarlocation.patch + epatch ${FILESDIR}/${PN}-${SLOT}-libtool.patch + +# Does no longer work on 4.4, but it's use is not clear. +# epatch ${FILESDIR}/${PN}-4.3.27-fix-dep-link.patch + + gnuconfig_update "${S}/../dist" + + sed -i -e "s,\(ac_compiler\|\${MAKEFILE_CC}\|\${MAKEFILE_CXX}\|\$CC\)\( *--version\),\1 -dumpversion,g" ${S}/../dist/configure +} + +src_compile() { + addwrite /proc/self/maps + + local myconf="" + + use amd64 && myconf="${myconf} --with-mutex=x86/gcc-assembly" + + use bootstrap \ + && myconf="${myconf} --disable-cxx" \ + || myconf="${myconf} $(use_enable !nocxx cxx)" + + use tcltk \ + && myconf="${myconf} --enable-tcl --with-tcl=/usr/$(get_libdir)" \ + || myconf="${myconf} --disable-tcl" + + myconf="${myconf} $(use_enable java)" + if use java && [[ -n ${JAVAC} ]] ; then + export PATH=`dirname ${JAVAC}`:${PATH} + export JAVAC=`basename ${JAVAC}` + fi + + [[ -n ${CBUILD} ]] && myconf="${myconf} --build=${CBUILD}" + + # the entire testsuite needs the TCL functionality + if use tcltk && has test $FEATURES ; then + myconf="${myconf} --enable-test" + else + myconf="${myconf} --disable-test" + fi + + ../dist/configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --datadir=/usr/share \ + --sysconfdir=/etc \ + --localstatedir=/var/lib \ + --libdir=/usr/$(get_libdir) \ + --enable-compat185 \ + --without-uniquename \ + --enable-rpc \ + --host=${CHOST} \ + ${myconf} || die "configure failed" + + emake -j1 || die "make failed" +} + +src_install() { + einstall libdir="${D}/usr/$(get_libdir)" || die + + db_src_install_usrbinslot + + db_src_install_headerslot + + db_src_install_doc + + db_src_install_usrlibcleanup + + dodir /usr/sbin + mv ${D}/usr/bin/berkeley_db_svc ${D}/usr/sbin/berkeley_db43_svc + + if use java; then + mkdir -p ${D}/usr/share/db + cat <<EOF >${D}/usr/share/db/package.env +DESCRIPTION=The java bindings for berkeley db version ${MY_PV} +CLASSPATH=:/usr/lib/db-${SLOT}.jar +EOF + fi +} + +pkg_postinst () { + db_fix_so +} + +pkg_postrm () { + db_fix_so +} diff --git a/sys-libs/db/files/db-4.4-libtool.patch b/sys-libs/db/files/db-4.4-libtool.patch new file mode 100644 index 000000000000..3d86b88f86b3 --- /dev/null +++ b/sys-libs/db/files/db-4.4-libtool.patch @@ -0,0 +1,47 @@ +--- dist/configure.orig 2006-01-31 10:23:58.000000000 +0100 ++++ dist/configure 2006-01-31 10:26:43.000000000 +0100 +@@ -5765,7 +5765,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +-case `$LD -v 2>&1 </dev/null` in ++case `"$LD" -v 2>&1 </dev/null` in + *GNU* | *'with BFD'*) + lt_cv_prog_gnu_ld=yes + ;; +@@ -8753,7 +8753,7 @@ + whole_archive_flag_spec= + fi + supports_anon_versioning=no +- case `$LD -v 2>/dev/null` in ++ case `"$LD" -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... +@@ -11855,7 +11855,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +-case `$LD -v 2>&1 </dev/null` in ++case `"$LD" -v 2>&1 </dev/null` in + *GNU* | *'with BFD'*) + lt_cv_prog_gnu_ld=yes + ;; +@@ -15842,7 +15842,7 @@ + whole_archive_flag_spec_F77= + fi + supports_anon_versioning=no +- case `$LD -v 2>/dev/null` in ++ case `"$LD" -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... +@@ -18300,7 +18300,7 @@ + whole_archive_flag_spec_GCJ= + fi + supports_anon_versioning=no +- case `$LD -v 2>/dev/null` in ++ case `"$LD" -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... diff --git a/sys-libs/db/files/digest-db-4.4.20 b/sys-libs/db/files/digest-db-4.4.20 new file mode 100644 index 000000000000..b3e83beda849 --- /dev/null +++ b/sys-libs/db/files/digest-db-4.4.20 @@ -0,0 +1,3 @@ +MD5 33851f01b455cca48aa601956de93c6f db-4.4.20.tar.gz 8112163 +RMD160 1e62a7583c8064f1e8533e188db4644d6d047f66 db-4.4.20.tar.gz 8112163 +SHA256 56442966cf51a6eb81272f4ab4cec929dcb695a5081b187215afdc7cf7629a57 db-4.4.20.tar.gz 8112163 |