diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-03-07 10:07:16 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-03-07 10:07:16 +0000 |
commit | f38a436c7a14e9ca63aec569402d648ed8e7ab16 (patch) | |
tree | 6ef92c139968370faa61edc49feb663cc111c6ef /sci-chemistry/cyana/files | |
parent | Keyword ~x86 by lazy_bum. (diff) | |
download | gentoo-2-f38a436c7a14e9ca63aec569402d648ed8e7ab16.tar.gz gentoo-2-f38a436c7a14e9ca63aec569402d648ed8e7ab16.tar.bz2 gentoo-2-f38a436c7a14e9ca63aec569402d648ed8e7ab16.zip |
New addition for NMR assignment and structure calculation software
(Portage version: 2.2_rc65/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/cyana/files')
-rw-r--r-- | sci-chemistry/cyana/files/2.1-exec.patch | 77 | ||||
-rw-r--r-- | sci-chemistry/cyana/files/2.1-typo.patch | 13 |
2 files changed, 90 insertions, 0 deletions
diff --git a/sci-chemistry/cyana/files/2.1-exec.patch b/sci-chemistry/cyana/files/2.1-exec.patch new file mode 100644 index 000000000000..28cd88d3eee6 --- /dev/null +++ b/sci-chemistry/cyana/files/2.1-exec.patch @@ -0,0 +1,77 @@ +diff --git a/cyana b/cyana +index 4f746cf..a7ff060 100755 +--- a/cyana ++++ b/cyana +@@ -45,16 +45,13 @@ shift `expr $optind - 1` + + if [ "$h" ]; then usage=1; fi + if [ "$usage" ]; then +- echo "Usage: $prog -hctx parameters ..." ++ echo "Usage: $prog -hS parameters ..." + echo + echo " -h help" + echo " -c command command to start program (must contain \$exefile)" + echo " -S run in safe mode, i.e. within one directory" +- echo " -t system explicit system type" +- echo " -x display name of executable without executing it" + exit 2 + fi +-if [ "$c" ]; then cmd="$c"; fi + sys=$t + mode=$x + safe=$S +@@ -65,23 +62,6 @@ safe=$S + eval ${PROG}ARG='$*' + export ${PROG}ARG + +- +-# ------ Set library name ------ +- +-f=$0 +-if [ `echo $f | sed 's,^/.*,+,'` != "+" ]; then f=`which $0`; fi +-odir=`pwd` +-while [ "`ls -l $f | awk '{ print substr($1,1,1) }'`" = "l" ]; do +- l=`ls -l $f | awk '{ i = NF; print $i }'` +- cd `dirname $f`; cd `dirname $l`; l=`pwd`/`basename $l` +- f=$l +-done +-cd `dirname $f` +-libdir=`pwd | sed 's,/src/'${prog}'$,,'` +-cd $odir +-eval ${PROG}LIB=$libdir +-export ${PROG}LIB +- + if [ "$safe" ]; then + CYANAINIT=initsafe; export CYANAINIT + fi +@@ -89,29 +69,4 @@ fi + + # ------ Start the program ------ + +-if [ -d $libdir/src/$prog ]; then +- exe=$libdir/src/$prog/$exe +-else +- exe=$libdir/$exe +-fi +-if [ "$sys" = "" ]; then +- sys=`$libdir/etc/identify` +- files="$exe.$sys* $exe.gnu $exe.*" +-else +- files=$exe.$sys +-fi +-for exefile in $files; do +- if [ -x $exefile ]; then +- if [ "$mode" ]; then +- echo $exefile; exit 0 +- else +- if [ "`echo $cmd | grep -c '\$exefile'`" -gt 0 ]; then +- eval exec $cmd +- else +- eval exec $cmd $exefile +- fi +- fi +- fi +-done +-echo "No executable found in \"`dirname $exe`\"." +-exit 1 ++exec cyana diff --git a/sci-chemistry/cyana/files/2.1-typo.patch b/sci-chemistry/cyana/files/2.1-typo.patch new file mode 100644 index 000000000000..3f011a9b2c28 --- /dev/null +++ b/sci-chemistry/cyana/files/2.1-typo.patch @@ -0,0 +1,13 @@ +diff --git a/src/cyana/putpro.f b/src/cyana/putpro.f +index d4080f9..4490225 100644 +--- a/src/cyana/putpro.f ++++ b/src/cyana/putpro.f +@@ -66,7 +66,7 @@ c ------------------------------------------------------ BMRB header + * ' _Mol_residue_sequence', + * ';' + do i=1,nr,20 +- write (iunit,'(20A1))') (rcode(rnam(j)),j=i,min(nr,i+19)) ++ write (iunit,'(20A1)') (rcode(rnam(j)),j=i,min(nr,i+19)) + end do + + write (iunit,'(A)') |