comp-libs/cloog: new versions have the version number in the dir name
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Sep 12 10:16:28 2009 +0200 (2009-09-12)
changeset 1530fafe0dd00c66
parent 1529 42a6a2583e24
child 1531 d173907c6c7e
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.
scripts/build/companion_libs/cloog.sh
     1.1 --- a/scripts/build/companion_libs/cloog.sh	Sat Sep 12 00:10:38 2009 +0200
     1.2 +++ b/scripts/build/companion_libs/cloog.sh	Sat Sep 12 10:16:28 2009 +0200
     1.3 @@ -18,8 +18,17 @@
     1.4  
     1.5  # Extract CLooG
     1.6  do_cloog_extract() {
     1.7 +    local _t
     1.8 +
     1.9      CT_Extract "cloog-ppl-${CT_CLOOG_VERSION}"
    1.10 -    CT_Pushd "${CT_SRC_DIR}/cloog-ppl"
    1.11 +
    1.12 +    # Version 0.15.3 has a dirname 'cloog-ppl' (with no version in it!)
    1.13 +    # while versions 0.15.4 onward do have the version in the dirname.
    1.14 +    case "${CT_CLOOG_VERSION}" in
    1.15 +        0.15.3) _t="";;
    1.16 +        *)      _t="-${CT_CLOOG_VERSION}";;
    1.17 +    esac
    1.18 +    CT_Pushd "${CT_SRC_DIR}/cloog-ppl${_t}"
    1.19      CT_Patch "cloog-ppl-${CT_CLOOG_VERSION}" nochdir
    1.20      CT_Popd
    1.21  }