From 6f58290127fcb6582df5d1718f71866edd3cb4a4 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sat, 3 May 2008 18:13:11 +0000 Subject: boost: underline version workaround fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1869 370017ae-e619-0410-ac65-c121f96126d4 --- dev/libs/boost/boost.build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev/libs/boost/boost.build b/dev/libs/boost/boost.build index 6f999ef9..ab4c6dab 100755 --- a/dev/libs/boost/boost.build +++ b/dev/libs/boost/boost.build @@ -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 -- cgit v1.2.3