aboutsummaryrefslogtreecommitdiffstats
path: root/biology/emboss/scripts/configure.emboss
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2000-11-13 13:48:49 +0000
committerJames E. Housley <jeh@FreeBSD.org>2000-11-13 13:48:49 +0000
commit7e4beec5d70602585699467ad8b458bdeec03e69 (patch)
tree3674268edd296d751a5270780781674df5a1d64f /biology/emboss/scripts/configure.emboss
parent1534d9a4bf86257eda0cfaf7bc25b61378cd3e26 (diff)
- This is a fairly extensive rework of this port.
- "EMBASSY" applications are third party tools which have been adapted to function as part of EMBOSS, but which are not included with the base EMBOSS distribution for licensing or other reasons. This new version of the EMBOSS port now contains the three current EMBASSY applications as well, and during installation the user is presented with a dialog(1) menu to choose which of these should be isntalled. PR: 22818 Submitted by: Johann Visagie <johann@egenetics.com> MAINTAINER
Diffstat (limited to 'biology/emboss/scripts/configure.emboss')
-rw-r--r--biology/emboss/scripts/configure.emboss61
1 files changed, 61 insertions, 0 deletions
diff --git a/biology/emboss/scripts/configure.emboss b/biology/emboss/scripts/configure.emboss
new file mode 100644
index 000000000000..a17b495c50b1
--- /dev/null
+++ b/biology/emboss/scripts/configure.emboss
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
+ exit
+fi
+
+if [ "${BATCH}" ]; then
+ set \"MSE\" \"PHYLIP\" \"TOPO\"
+else
+ /usr/bin/dialog --title "EMBOSS: EMBASSY applications" --clear \
+ --checklist "\n\
+These third party applications have been adapted to
+function as part of EMBOSS.\n
+Please select EMBASSY applications to install:" -1 -1 3 \
+MSE "v${MSE_VERSION} - Phylogeny inference" ON \
+PHYLIP "v${PHYLIP_VERSION} - Sequence editor" ON \
+TOPO "v${TOPO_VERSION} - Transmembrane display" ON \
+2> /tmp/checklist.tmp.$$
+
+ retval=$?
+
+ if [ -s /tmp/checklist.tmp.$$ ]; then
+ set `cat /tmp/checklist.tmp.$$`
+ fi
+ ${RM} -f /tmp/checklist.tmp.$$
+
+ case $retval in
+ 0)
+ if [ -z "$*" ]; then
+ echo "Nothing selected"
+ fi
+ ;;
+ 1)
+ echo "Cancel pressed."
+ exit 1
+ ;;
+ esac
+fi
+
+${MKDIR} ${WRKDIRPREFIX}${CURDIR}
+exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+
+while [ "$1" ]; do
+ case $1 in
+ \"MSE\")
+ echo "WITH_MSE= yes"
+ ;;
+ \"PHYLIP\")
+ echo "WITH_PHYLIP= yes"
+ ;;
+ \"TOPO\")
+ echo "WITH_TOPO= yes"
+ ;;
+ *)
+ echo "Invalid option(s): $*" > /dev/stderr
+ ${RM} -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ ;;
+ esac
+ shift
+done