diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2003-08-21 09:53:43 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2003-08-21 09:53:43 +0000 |
commit | 70ddde1785932475edb9ca4f83f441f59ba50eb8 (patch) | |
tree | 98d7075bdd963d082dce6a386bba2ee4af294589 /eclass | |
parent | several fixes (diff) | |
download | gentoo-2-70ddde1785932475edb9ca4f83f441f59ba50eb8.tar.gz gentoo-2-70ddde1785932475edb9ca4f83f441f59ba50eb8.tar.bz2 gentoo-2-70ddde1785932475edb9ca4f83f441f59ba50eb8.zip |
new common location for fix_so from sys-libs/db, now corrected for a nasty bug
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/db.eclass | 21 |
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 . +} |