summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2003-08-21 09:53:43 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2003-08-21 09:53:43 +0000
commite2d2ab120a631453dbf77f9a1687ede23762814b (patch)
treea697d19d04dd7e0ebb50892129ebb8c7658c0573 /eclass/db.eclass
parentseveral fixes (diff)
downloadhistorical-e2d2ab120a631453dbf77f9a1687ede23762814b.tar.gz
historical-e2d2ab120a631453dbf77f9a1687ede23762814b.tar.bz2
historical-e2d2ab120a631453dbf77f9a1687ede23762814b.zip
new common location for fix_so from sys-libs/db, now corrected for a nasty bug
Diffstat (limited to 'eclass/db.eclass')
-rw-r--r--eclass/db.eclass21
1 files changed, 21 insertions, 0 deletions
diff --git a/eclass/db.eclass b/eclass/db.eclass
new file mode 100644
index 000000000000..7945f232fc97
--- /dev/null
+++ b/eclass/db.eclass
@@ -0,0 +1,21 @@
+# This is a common location for functions used in the sys-libs/db ebuilds
+# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.1 2003/08/21 09:53:43 robbat2 Exp $
+
+ECLASS=db
+INHERITED="$INHERITED $ECLASS"
+EXPORT_FUNCTIONS db_fix_so
+
+db_fix_so () {
+ cd ${ROOT}/usr/lib
+ for ext in so a; do
+ for name in libdb libdb_cxx libdb_tcl libdb_java; do
+ target=`find -type f -maxdepth 1 -name "${name}-*.${ext}" |sort -g |tail -n 1`
+ [ -n "${target}" ] && ln -sf ${target//.\//} ${name}.${ext}
+ done;
+ done;
+
+ cd ${ROOT}/usr/include
+ target=`find -type d -maxdepth 1 -name 'db*' | sort -g |cut -d/ -f2- | tail -n1`
+ [ -n "${target}" ] && ln -sf ${target}/db.h .
+ [ -n "${target}" ] && ln -sf ${target}/db_185.h .
+}