summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2000-11-17 00:25:20 +0000
committerAchim Gottinger <achim@gentoo.org>2000-11-17 00:25:20 +0000
commit35fbca8ece507b237c9075b0aa941051e3ba96a2 (patch)
treedbfb68ca99520a64acd823a602e92dd9ea903be8 /sys-libs
parent*** empty log message *** (diff)
downloadgentoo-2-35fbca8ece507b237c9075b0aa941051e3ba96a2.tar.gz
gentoo-2-35fbca8ece507b237c9075b0aa941051e3ba96a2.tar.bz2
gentoo-2-35fbca8ece507b237c9075b0aa941051e3ba96a2.zip
*** empty log message ***
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/db1/db1-1.85.4.ebuild19
-rw-r--r--sys-libs/db3/db-3.1.17.ebuild62
-rw-r--r--sys-libs/db3/files/digest-db-3.1.171
3 files changed, 77 insertions, 5 deletions
diff --git a/sys-libs/db1/db1-1.85.4.ebuild b/sys-libs/db1/db1-1.85.4.ebuild
index 6fe6b8338a2f..ef6ec51b4956 100644
--- a/sys-libs/db1/db1-1.85.4.ebuild
+++ b/sys-libs/db1/db1-1.85.4.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Your Name <your email>
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/db1/db1-1.85.4.ebuild,v 1.1 2000/11/14 19:20:55 achim Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/db1/db1-1.85.4.ebuild,v 1.2 2000/11/17 00:25:20 achim Exp $
#P=
A=db-${PV}-src.tar.gz
@@ -24,10 +24,19 @@ src_compile() {
src_install () {
- cd ${S}/PORT/linux
- dodir /usr/lib
- dodir /usr/include
- try make prefix=${D}/usr install
+ cd ${S}
+ insinto /usr/include/db1
+ doins include/db.h include/mpool.h PORT/linux/include/ndbm.h
+ dosed "s:<db.h>:<db1/db.h>;" /usr/include/ndbm.h
+ cd ${S}/PORT/linux
+ insinto /usr/lib
+ insopts -m 755 -o root -g root
+ donewins ${S}/PORT/linux/libdb.a libdb1.a
+ donewins ${S}/PORT/linux/libdb.so.1.85.4 libdb1.so.1.85.4
+ dosym /usr/lib/libdb.so.1.85.4 /usr/lib/libdb1.so
+ dosym /usr/lib/libdb.so.1.85.4 /usr/lib/libdb.so.1
+ dosym /usr/lib/libdb.so.1.85.4 /usr/lib/libdb.so.1.85.4
+
}
diff --git a/sys-libs/db3/db-3.1.17.ebuild b/sys-libs/db3/db-3.1.17.ebuild
new file mode 100644
index 000000000000..cd59e7c4b55f
--- /dev/null
+++ b/sys-libs/db3/db-3.1.17.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Your Name <your email>
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/db3/db-3.1.17.ebuild,v 1.1 2000/11/17 00:25:20 achim Exp $
+
+#P=
+A=${P}.tar.gz
+S=${WORKDIR}/${P}/build_unix
+DESCRIPTION="The Berkeley DB"
+SRC_URI="http://www.sleepycat.com/update/${PV}/${A}"
+HOMEPAGE="http://www.sleepycat.com"
+
+
+src_compile() {
+
+ cd ${S}
+ try ../dist/configure --prefix=/usr --host=${CHOST} --enable-cxx \
+ --enable-compat185 --enable-rpc --enable-shared --enable-shared \
+ --enable-dump185
+
+ # Build the static libs
+
+ echo
+ echo "Building static libs..."
+ make libdb=libdb-3.1.a libdb-3.1.a
+ make libcxx=libdb_cxx-3.1.a libdb_cxx-3.1.a
+
+ # Now comes the trick
+ # Static link with old db-185 libraries.
+
+ echo
+ echo "Building db_dump185..."
+
+ /bin/sh ./libtool --mode=compile cc -c ${CFLAGS} -g -g \
+ -I/usr/include/db1 -I../dist/../include -D_REENTRANT \
+ ../dist/../db_dump185/db_dump185.c
+
+ cc -s -static -o db_dump185 db_dump185.lo -L/usr/lib -ldb1
+
+ # Now comes the rest
+
+ try make libdb=libdb-3.1.a libcxx=libdb_cxx-3.1.a LDFLAGS="-s"
+
+}
+
+src_install () {
+
+ cd ${S}
+ try make libdb=libdb-3.1.a libcxx=libcxx_3.1.a prefix=${D}/usr install
+ dolib libdb-3.1.a libdb_cxx-3.1.a
+ insinto /usr/lib
+ dolib libdb-3.1.la libdb_cxx-3.1.la
+ dodir /usr/doc/${P}/html
+ mv ${D}/usr/docs ${D}/usr/doc/${P}/html/
+ dodir /usr/include/db3
+ mv ${D}/usr/include/*.h ${D}/usr/include/db3
+ dosym /usr/include/db3/db.h /usr/include/db.h
+ preplib /usr
+ cd ..
+ dodoc LICENSE README
+}
+
diff --git a/sys-libs/db3/files/digest-db-3.1.17 b/sys-libs/db3/files/digest-db-3.1.17
new file mode 100644
index 000000000000..61bab8d3877e
--- /dev/null
+++ b/sys-libs/db3/files/digest-db-3.1.17
@@ -0,0 +1 @@
+MD5 5baeb94fb934d0bf783ea42117c400be db-3.1.17.tar.gz