diff options
author | Paul de Vrieze <pauldv@gentoo.org> | 2004-04-15 20:40:15 +0000 |
---|---|---|
committer | Paul de Vrieze <pauldv@gentoo.org> | 2004-04-15 20:40:15 +0000 |
commit | 7ee8bcff52def749f7c253563a0560e6c3999b64 (patch) | |
tree | be755394a0c72648bc03dfa5249dc75badeee8b3 /sys-libs/db | |
parent | ppc needs stable dev-lang/python-2.1 first (Manifest recommit) (diff) | |
download | gentoo-2-7ee8bcff52def749f7c253563a0560e6c3999b64.tar.gz gentoo-2-7ee8bcff52def749f7c253563a0560e6c3999b64.tar.bz2 gentoo-2-7ee8bcff52def749f7c253563a0560e6c3999b64.zip |
New patchlevel
Diffstat (limited to 'sys-libs/db')
-rw-r--r-- | sys-libs/db/ChangeLog | 7 | ||||
-rw-r--r-- | sys-libs/db/db-4.2.52_p2.ebuild | 132 | ||||
-rw-r--r-- | sys-libs/db/files/digest-db-4.2.52_p2 | 3 |
3 files changed, 141 insertions, 1 deletions
diff --git a/sys-libs/db/ChangeLog b/sys-libs/db/ChangeLog index 4b1cfa32cbc7..038a33b3f21d 100644 --- a/sys-libs/db/ChangeLog +++ b/sys-libs/db/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-libs/db # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.86 2004/03/21 07:18:02 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.87 2004/04/15 20:40:15 pauldv Exp $ + +*db-4.2.52_p2 (15 Apr 2004) + + 15 Apr 2004; Paul de Vrieze <pauldv@gentoo.org> db-4.2.52_p2.ebuild: + New patch version 21 Mar 2004; Joshua Kinard <kumba@gentoo.org> db-4.1.25_p1-r3.ebuild: Tweak to make gnuconfig work again for mips (the 'dist' dir got moved from diff --git a/sys-libs/db/db-4.2.52_p2.ebuild b/sys-libs/db/db-4.2.52_p2.ebuild new file mode 100644 index 000000000000..051a3711886b --- /dev/null +++ b/sys-libs/db/db-4.2.52_p2.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/db-4.2.52_p2.ebuild,v 1.1 2004/04/15 20:40:15 pauldv Exp $ + +IUSE="tcltk java doc" + +inherit eutils gnuconfig +inherit db + +#Number of official patches +PATCHNO=`echo ${PV}|sed -e "s,\(.*_p\)\([0-9]*\),\2,"` +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" +SRC_URI="http://www.sleepycat.com/update/snapshot/${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 + +HOMEPAGE="http://www.sleepycat.com" +SLOT="4.2" +LICENSE="DB" +KEYWORDS="~x86" + +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 + patch -p0 <${DISTDIR}/patch.${MY_PV}.${i} + done + epatch ${FILESDIR}/${PN}-${SLOT}-jarlocation.patch + + epatch ${FILESDIR}/${PN}-4.0.14-fix-dep-link.patch + +} + +src_compile() { + addwrite /proc/self/maps + + # Mips needs a gnuconfig update so obscure things like mips64 are known + # db-4.1.25_p1 extracts to ${WORKDIR}/db-4.1.25, so we need to strip the _p1 + if use mips; then + einfo "Updating config.{guess,sub} for mips" + local OLDS="${S}" + S="${S}/dist" + gnuconfig_update + S="${OLDS}" + fi + + + local myconf="--enable-rpc" + + use java \ + && myconf="${myconf} --enable-java" \ + || myconf="${myconf} --disable-java" + + use tcltk \ + && myconf="${myconf} --enable-tcl --with-tcl=/usr/lib" \ + || myconf="${myconf} --disable-tcl" + + if use java && [ -n "${JAVAC}" ]; then + export PATH=`dirname ${JAVAC}`:${PATH} + export JAVAC=`basename ${JAVAC}` + fi + + if [ "${PROFILE_ARCH}" = "sparc64" ]; then + myconf="${myconf} --host=${CHOST}" + fi + + ../dist/configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --datadir=/usr/share \ + --sysconfdir=/etc \ + --localstatedir=/var/lib \ + --enable-compat185 \ + --enable-cxx \ + --with-uniquename \ + ${myconf} || die + + emake || make || die +} + +src_install () { + + einstall || 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_db42_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/digest-db-4.2.52_p2 b/sys-libs/db/files/digest-db-4.2.52_p2 new file mode 100644 index 000000000000..00d41e6281ca --- /dev/null +++ b/sys-libs/db/files/digest-db-4.2.52_p2 @@ -0,0 +1,3 @@ +MD5 cbc77517c9278cdb47613ce8cb55779f db-4.2.52.tar.gz 4073147 +MD5 1227f5f9ff43d48b5b1759e113a1c2d7 patch.4.2.52.1 988 +MD5 3da7efd8d29919a9113e2f6f5166f5b7 patch.4.2.52.2 1433 |