diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-09-12 08:16:28 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-09-12 08:16:28 (GMT) |
commit | 414f639105293d3df3ec5cfc6f32edcd0f0b558f (patch) | |
tree | c3b1a6c255833c2c337101c975b8555ea5d5047d | |
parent | 6b37673b6477be9c3796ce8f398f9f823471d21f (diff) |
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.
-rw-r--r-- | scripts/build/companion_libs/cloog.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/build/companion_libs/cloog.sh b/scripts/build/companion_libs/cloog.sh index 0e6d74f..fae3f72 100644 --- a/scripts/build/companion_libs/cloog.sh +++ b/scripts/build/companion_libs/cloog.sh @@ -18,8 +18,17 @@ do_cloog_get() { # 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 } |