]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
boost: underline version workaround fix
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Sat, 3 May 2008 18:13:11 +0000 (18:13 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Sat, 3 May 2008 18:13:11 +0000 (18:13 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1869 370017ae-e619-0410-ac65-c121f96126d4

dev/libs/boost/boost.build

index 6f999ef95bc16938a55538efdf2adcd2e4606c65..ab4c6dab82ba48a6db4358aec19f2f07a9581e61 100755 (executable)
@@ -41,8 +41,8 @@ ERROR_MD5=34;       ERROR_CONF=35;      ERROR_HELP=36
 ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40
 
-# Version with underline and without minor version if minor version is 0 (workaround)
-VERSION_UNDERLINE="`echo $VERSION | sed -e 's/\./_/g' -e 's/\([0-9]\+\)_\([0-9]\+\)_0/\1_\2/'`"
+# Version with underline
+VERSION_UNDERLINE="`echo $VERSION | sed -e 's/\./_/g'`"
 
 if [ "$ARCH" == "x86_64" ]; then
   export LDFLAGS="-L/lib64 -L/usr/lib64"
@@ -87,7 +87,8 @@ make install || exit $ERROR_INSTALL
 
 CWD="`pwd`"
 
-cd /usr/include && ln -s /usr/include/boost-$VERSION_UNDERLINE/ /usr/include/boost
+# Underline version without minor version if minor version is 0 (workaround)
+cd /usr/include && ln -s /usr/include/boost-`echo $VERSION_UNDERLINE | sed -e 's/\([0-9]\+\)_\([0-9]\+\)_0/\1_\2/'`/ /usr/include/boost
 
 # docs
 mkdir -p /usr/doc/$PACKAGE-$VERSION