summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2004-02-14 01:25:55 +0000
committerGeorge Shapovalov <george@gentoo.org>2004-02-14 01:25:55 +0000
commit07bbd53d24fad5bab1ee3d7961762183de24009a (patch)
treea7c359734ff54f28c77c5f97e2f738aac0c05a3a /dev-libs
parentnobody uses this (diff)
downloadgentoo-2-07bbd53d24fad5bab1ee3d7961762183de24009a.tar.gz
gentoo-2-07bbd53d24fad5bab1ee3d7961762183de24009a.tar.bz2
gentoo-2-07bbd53d24fad5bab1ee3d7961762183de24009a.zip
improved symlinks in 1.31_alpha2-r1
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/boost/ChangeLog6
-rw-r--r--dev-libs/boost/boost-1.31.0_alpha2-r1.ebuild21
2 files changed, 24 insertions, 3 deletions
diff --git a/dev-libs/boost/ChangeLog b/dev-libs/boost/ChangeLog
index db0f44be9e21..1fd819c6f1a3 100644
--- a/dev-libs/boost/ChangeLog
+++ b/dev-libs/boost/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/boost
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.9 2004/02/03 19:31:39 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.10 2004/02/14 01:25:55 george Exp $
+
+ 13 Feb 2004; George Shapovalov <george@gentoo.org> boost-1.31.0_alpha2-r1.ebuild :
+ improved symlinks, now the whole set is created instead of just a few out-of-place
+ as was provided by build script
*boost-1.31.0_alpha2-r1 (03 Feb 2004)
diff --git a/dev-libs/boost/boost-1.31.0_alpha2-r1.ebuild b/dev-libs/boost/boost-1.31.0_alpha2-r1.ebuild
index c711646b6868..da026dfee82b 100644
--- a/dev-libs/boost/boost-1.31.0_alpha2-r1.ebuild
+++ b/dev-libs/boost/boost-1.31.0_alpha2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.31.0_alpha2-r1.ebuild,v 1.1 2004/02/03 19:31:39 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.31.0_alpha2-r1.ebuild,v 1.2 2004/02/14 01:25:55 george Exp $
MyPV="2004202"
@@ -78,7 +78,7 @@ src_install () {
# install libraries
find bin/boost/libs -type f -name \*.a -exec dolib.a {} \;
find bin/boost/libs -type f -name "*.so*" -exec dolib.so {} \;
- find bin/boost/libs -type l -name "*.so*" -exec dosym {} /usr/lib \;
+ #find bin/boost/libs -type l -name "*.so*" -exec dosym {} /usr/lib \;
# install source/header files
@@ -113,4 +113,21 @@ src_install () {
-and -not -name \*.dsp \
-exec \
install -D -m0644 \{\} ${D}/usr/share/doc/${P}/html/\{\} \;
+
+ #create symlinks for the libs
+ LocalPV="1_31"
+ cd ${D}/usr/lib
+ for fn in *.so*; do
+ baseName=${fn%%so*}
+ #.so symlinks
+ ln -s $fn ${baseName}so
+ #remove version from .so's and .a's
+ ln -s ${baseName}so ${baseName/-$LocalPV/}so
+ ln -s ${baseName}a ${baseName/-$LocalPV/}a
+ done
+ #and finally set "default" links to -gcc-mt versions
+ for fn in `ls -1 *.so|cut -d- -f1|sort|uniq`; do
+ ln -s $fn-gcc-mt.so $fn.so
+ ln -s $fn-gcc-mt.a $fn.a
+ done
}