diff options
author | Peter Gavin <pete@gentoo.org> | 2001-05-14 21:10:33 +0000 |
---|---|---|
committer | Peter Gavin <pete@gentoo.org> | 2001-05-14 21:10:33 +0000 |
commit | 3633c05f359c727ca827f2fa80b6ff5c7686ed4c (patch) | |
tree | 10d84d25af0011eafb7acb6eedeb7ddd652f94e5 /sys-libs | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-3633c05f359c727ca827f2fa80b6ff5c7686ed4c.tar.gz gentoo-2-3633c05f359c727ca827f2fa80b6ff5c7686ed4c.tar.bz2 gentoo-2-3633c05f359c727ca827f2fa80b6ff5c7686ed4c.zip |
updated db-3.2.3h-r2 to r3, fixed a libtool issue
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/db/db-3.2.3h-r3.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/sys-libs/db/db-3.2.3h-r3.ebuild b/sys-libs/db/db-3.2.3h-r3.ebuild new file mode 100644 index 000000000000..31b160ff7d0b --- /dev/null +++ b/sys-libs/db/db-3.2.3h-r3.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/db-3.2.3h-r3.ebuild,v 1.1 2001/05/14 21:10:33 pete Exp $ + +A=${P}.tar.gz +S=${WORKDIR}/${P}/build_unix +DESCRIPTION="Berkeley DB for transaction support in MySQL" +SRC_URI="ftp://mysql.valueclick.com/mysql/Downloads/db/${A} + http://download.sourceforge.net/pub/mirrors/mysql/Downloads/db/${A}" +HOMEPAGE="http://www.mysql.com" + +RDEPEND="virtual/glibc" +DEPEND="$RDEPEND + =sys-libs/db-1.85-r1" + +src_compile() { + + try ../dist/configure \ + --enable-compat185 --enable-dump185 \ + --prefix=/usr --host=${CHOST} --target=${CHOST} --build=${CHOST} \ + --enable-shared --enable-static \ + --enable-cxx + #--enable-rpc does not work + + echo + # Parallel make does not work + echo "Building static libs..." + make libdb=libdb-3.2.a libdb-3.2.a + make libcxx=libdb_cxx-3.2.a libdb_cxx-3.2.a + + echo + echo "Building db_dump185..." + + try /bin/sh ./libtool --mode=compile cc -c ${CFLAGS} -I/usr/include/db1 -I../dist/../include -D_REENTRANT ../dist/../db_dump185/db_dump185.c + try gcc -s -static -o db_dump185 db_dump185.lo -L/usr/lib -ldb1 + + echo + echo "Building everything else..." + try make libdb=libdb-3.2.a libcxx=libdb_cxx-3.2.a + +} + +src_install () { + + try make libdb=libdb-3.2.a libcxx=libcxx_3.2.a prefix=${D}/usr install + dolib.a libdb-3.2.a libdb_cxx-3.2.a + dolib libdb-3.2.la libdb_cxx-3.2.la + + dodir usr/include/db3 + cd ${D}/usr/include + mv *.h db3 + ln db3/db.h db.h + + cd ${D}/usr/lib + ln -s libdb.3.so libdb.so.3 + + sed 's,installed=no,installed=yes,' < ${D}/usr/lib/libdb-3.2.la > ${D}/usr/lib/libdb-3.2.la.new + mv ${D}/usr/lib/libdb-3.2.la.new ${D}/usr/lib/libdb-3.2.la + sed 's,installed=no,installed=yes,' < ${D}/usr/lib/libdb_cxx-3.2.la > ${D}/usr/lib/libdb_cxx-3.2.la.new + mv ${D}/usr/lib/libdb_cxx-3.2.la.new ${D}/usr/lib/libdb_cxx-3.2.la + + cd ${S}/.. + dodoc README LICENSE + if [ -d ${D}/usr/share/doc/${PF} ] + then + mv ${D}/usr/docs ${D}/usr/share/doc/${PF}/html + else + mv ${D}/usr/docs ${D}/usr/doc/${PF}/html + fi + prepalldocs + +} + |