| 1 | #! /bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | BSVERSION="2.3.1" |
| 4 | MPDIR=`pwdscip-shell system . . pwd.` |
| 5 | |
| 6 | wget http://downloads.sourceforge.net/project/biosig/BioSig%20for%20C_C%2B%2B/src/biosig-${BSVERSION}.src.tar.gz |
| 7 | RMD160=`opensslscip-shell system . . openssl. rmd160 -r biosig-${BSVERSION}.src.tar.gz | awkscip-shell system . . awk. '{print $1;}'` |
| 8 | SHA256=`opensslscip-shell system . . openssl. sha256 -r biosig-${BSVERSION}.src.tar.gz | awkscip-shell system . . awk. '{print $1;}'` |
| 9 | |
| 10 | echoscip-shell system . . echo. "rmd160:" ${RMD160} |
| 11 | echoscip-shell system . . echo. "sha256:" ${SHA256} |
| 12 | |
| 13 | GSED=`whichscip-shell system . . which. gsed` |
| 14 | if [scip-shell system . . `[`. "${GSED}" = "" ] |
| 15 | then |
| 16 | GSED=`whichscip-shell system . . which. sed` |
| 17 | fi |
| 18 | |
| 19 | ${GSED} 's/RMD160/'${RMD160}'/g' ${MPDIR}/science/libbiosig/Portfile.in > ${MPDIR}/science/libbiosig/Portfile |
| 20 | ${GSED} -i 's/SHA256/'${SHA256}'/g' ${MPDIR}/science/libbiosig/Portfile |
| 21 | ${GSED} -i 's/BSVERSION/'${BSVERSION}'/g' ${MPDIR}/science/libbiosig/Portfile |
| 22 | |
| 23 | sudoscip-shell system . . sudo. portindex |
| 24 | sudoscip-shell system . . sudo. port uninstall libbiosig |
| 25 | sudoscip-shell system . . sudo. port clean --all libbiosig |