complibs/ppl: update GMP location configuration argument for PPL v0.11 and later
'configure' for PPL 0.11 (and later) needs "--with-gmp-prefix" to
provide the location of the GMP toolkit; the previous switches were
"--with-libgmp-prefix" and "--with-libgmpxx-prefix".
The upstream log message is:
commit 08dfb6fea094f8c5a533575a3ea2095edce99a6d
Author: Roberto Bagnara <bagnara@cs.unipr.it>
Date: Sun Jul 12 21:39:46 2009 +0200
New configure option --with-gmp-prefix supersedes the (now removed)
options --with-libgmp-prefix and --with-libgmpxx-prefix.
Link: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=08dfb6fea094f8c5a533575a3ea2095edce99a6d
Since PPL's 'configure' ignores unknown switches, we use all three so we
don't have to conditionalize the ppl.sh build script itself.
Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
(transplanted from 4f0c4fb572e2862c24b28e8d27ce7e9cb9adba65)
5 if [ -z "${repos}" -o ! -d "${repos}" -o -z "${pdir}" -o ! -d "${pdir}" ];then
6 printf "Usage: ${0##*/} <repos_dir> <patch_dir>\n"
10 pdir="$( cd "${pdir}"; pwd)"
11 version="$( echo "${pdir}" |sed -r -e 's,.*/([^/]+)/*$,\1,' )"
12 branch="${version%.*}"
13 n=$( ls -1 "${pdir}" 2>/dev/null |wc -l )
15 r1="$( hg -R "${repos}" log -b "${branch}" \
22 $0~/^summary:[[:space:]]+'"${branch}: (bump|update) version to ${version}\+hg"'$/ {
23 printf( "%d\n", prev );
29 hg -R "${repos}" log -b "${branch}" -r "${r1}:tip" --template '{rev}\n' \
31 p="$( printf "%03d" ${i} )"
33 if [ $( ls -1 "${pdir}/${p}-"*.patch 2>/dev/null |wc -l ) -ne 0 ]; then
36 plog=$( hg -R "${repos}" log -r ${rev} --template '{desc|firstline}\n' \
37 |sed -r -e 's,[^[:alnum:]],_,g; s/_+/_/g;' \
39 pname="${p}-${plog}.patch"
40 printf "Revision '%d' --> '%s'\n" ${rev} "${pname}"
41 hg -R "${repos}" diff -c ${rev} --color=never >"${pdir}/${pname}"
42 pdate="$( hg -R "${repos}" log -r ${rev} --template '{date|isodate}\n' )"
43 touch -d "${pdate}" "${pdir}/${pname}"