# HG changeset patch # User "Yann E. MORIN" # Date 1252743388 -7200 # Node ID fafe0dd00c66c1ff5adff3e2ebb898b2b5ebdcb6 # Parent 42a6a2583e2429b1bc9f52b69ce75c160ac50096 comp-libs/cloog: new versions have the version number in the dir name For CLooG/PPL 0.15.3, the directory name was simply cloog-ppl. For any later versions, the driectory name does have the version, such as cloog-ppl-0.15.4. diff -r 42a6a2583e24 -r fafe0dd00c66 scripts/build/companion_libs/cloog.sh --- a/scripts/build/companion_libs/cloog.sh Sat Sep 12 00:10:38 2009 +0200 +++ b/scripts/build/companion_libs/cloog.sh Sat Sep 12 10:16:28 2009 +0200 @@ -18,8 +18,17 @@ # Extract CLooG do_cloog_extract() { + local _t + CT_Extract "cloog-ppl-${CT_CLOOG_VERSION}" - CT_Pushd "${CT_SRC_DIR}/cloog-ppl" + + # Version 0.15.3 has a dirname 'cloog-ppl' (with no version in it!) + # while versions 0.15.4 onward do have the version in the dirname. + case "${CT_CLOOG_VERSION}" in + 0.15.3) _t="";; + *) _t="-${CT_CLOOG_VERSION}";; + esac + CT_Pushd "${CT_SRC_DIR}/cloog-ppl${_t}" CT_Patch "cloog-ppl-${CT_CLOOG_VERSION}" nochdir CT_Popd }