From 0b2eee548b0e9da974b7e895a2cfcfee9a768b6f Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 28 Feb 2008 06:40:23 +0000 Subject: [PATCH] Fix Python dependencies pb. --- config_files/graphviz-2.16.1.sh | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/config_files/graphviz-2.16.1.sh b/config_files/graphviz-2.16.1.sh index 7f51bf1..1a493af 100755 --- a/config_files/graphviz-2.16.1.sh +++ b/config_files/graphviz-2.16.1.sh @@ -111,7 +111,6 @@ source ${INSTALL_WORK}/$SHRC test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR} check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR} -cd ${PRODUCT_DIR}/lib/graphviz # modify *.la files ldir=${PRODUCT_DIR}/lib @@ -119,22 +118,16 @@ cd $ldir for l in X `find $ldir -name "*.la"`; do if [ "$l" != "X" ] ; then - lpath=`dirname $l` - sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${PRODUCT}% \1${PRODUCT_DIR}%g" $l > $l"_" - chmod -f --reference=$l $l"_" ; mv -f $l"_" $l - - pydir="" + pydir="" ; tcldir="" if [ -n "${PYTHONHOME}" ] ; then pydir=${PYTHONHOME} ; fi - sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*Python-[0-9]\+\.[0-9]\+\.[0-9]\+-rl% \1${pydir}%g" $l > $l"_" - chmod -f --reference=$l $l"_" - mv -f $l"_" $l - - tcldir="" if [ -n "${TCLHOME}" ] ; then tcldir=${TCLHOME} ; fi - sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*tcltk-[0-9]\+\.[0-9]\+\.[0-9]\+% \1${tcldir}%g" $l > $l"_" + sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${PRODUCT}% \1${PRODUCT_DIR}%g" \ + -e "s%[[:space:]]\(-L\)\?[^[:space:]]*Python[^[:space:]]*/lib% \1${pydir}/lib%g" \ + -e "s%[[:space:]]\(-L\)\?[^[:space:]]*tcltk[^[:space:]]*/lib% \1${tcldir}/lib%g" $l > $l"_" chmod -f --reference=$l $l"_" mv -f $l"_" $l + lpath=`dirname $l` libdir=`grep -e "^libdir=.*" $l | sed -e "s/^libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"` sed -e "s%${libdir}%${lpath}%g" $l > $l"_" chmod -f --reference=$l $l"_" ; mv -f $l"_" $l -- 2.39.2