diff options
Diffstat (limited to 'sci-chemistry/viewmol/files')
5 files changed, 142 insertions, 0 deletions
diff --git a/sci-chemistry/viewmol/files/2.4.1-change-default-path-to-usr.patch b/sci-chemistry/viewmol/files/2.4.1-change-default-path-to-usr.patch new file mode 100644 index 000000000000..e5e22ffee893 --- /dev/null +++ b/sci-chemistry/viewmol/files/2.4.1-change-default-path-to-usr.patch @@ -0,0 +1,11 @@ +--- viewmol-2.4.1.orig/source/getrc.c 2004-10-20 05:54:35.000000000 -0700 ++++ viewmol-2.4.1/source/getrc.c 2005-12-02 11:38:32.000000000 -0800 +@@ -87,7 +87,7 @@ + + static char viewmolpath[MAXLENLINE]; + +-#define DEFAULTPATH "/usr/local/lib/viewmol" ++#define DEFAULTPATH "/usr/lib/viewmol" + + int getrc(void) + { diff --git a/sci-chemistry/viewmol/files/2.4.1-change-default-paths.patch b/sci-chemistry/viewmol/files/2.4.1-change-default-paths.patch new file mode 100644 index 000000000000..16a3d7ef7e38 --- /dev/null +++ b/sci-chemistry/viewmol/files/2.4.1-change-default-paths.patch @@ -0,0 +1,68 @@ +diff --git a/source/getrc.c b/source/getrc.c +index a39b436..c130096 100644 +--- a/source/getrc.c ++++ b/source/getrc.c +@@ -87,7 +87,7 @@ extern XtAppContext app; + + static char viewmolpath[MAXLENLINE]; + +-#define DEFAULTPATH "/usr/local/lib/viewmol" ++#define DEFAULTPATH "@GENTOO_PORTAGE_EPREFIX@/usr/GENTOOLIBDIR/viewmol" + + int getrc(void) + { +diff --git a/source/install b/source/install +index 580865b..f136af3 100755 +--- a/source/install ++++ b/source/install +@@ -54,24 +54,27 @@ fi + cp $dirorig/viewmol $ROOT/bin + chmod 711 $ROOT/bin/viewmol + +-# install other files needed in $ROOT/lib/viewmol +-if [ ! -d $ROOT/lib/viewmol/$dir ] ++# install other files needed in $ROOT/GENTOOLIBDIR/viewmol ++if [ ! -d $ROOT/GENTOOLIBDIR/viewmol/$dir ] + then +- mkdir -p $ROOT/lib/viewmol/$dir +- chmod 755 $ROOT/lib/viewmol/$dir ++ mkdir -p $ROOT/GENTOOLIBDIR/viewmol/$dir ++ chmod 755 $ROOT/GENTOOLIBDIR/viewmol/$dir + fi + cd $dirorig +-cp tm bio readgamess readgauss readmopac readpdb $ROOT/lib/viewmol/$dir +-chmod 711 $ROOT/lib/viewmol/$dir/* ++cp tm bio readgamess readgauss readmopac readpdb $ROOT/GENTOOLIBDIR/viewmol/$dir ++chmod 711 $ROOT/GENTOOLIBDIR/viewmol/$dir/* + cd ../.. +-cp readdmol readdmol.awk readgulp readpqs writecar writegauss.py writemol writetm $ROOT/lib/viewmol +-chmod 755 $ROOT/lib/viewmol/* +-cp -r doc examples locale scripts tests $ROOT/lib/viewmol +-find $ROOT/lib/viewmol -type f -exec chmod a+r {} \; +-find $ROOT/lib/viewmol -type d -exec chmod a+rx {} \; +-sed 's/\/source//g' viewmolrc > $ROOT/lib/viewmol/viewmolrc +-chmod -R 644 $ROOT/lib/viewmol/viewmolrc +-if [ -d /usr/X11R6/lib/X11/app-defaults ] ++cp readdmol readdmol.awk readgulp readpqs writecar writegauss.py writemol writetm $ROOT/GENTOOLIBDIR/viewmol ++chmod 755 $ROOT/GENTOOLIBDIR/viewmol/* ++mkdir -p $ROOT/usr/share/viewmol $ROOT/usr/share/doc/GENTOODOCDIR/ $ROOT/GENTOOLIBDIR/viewmol/ ++cp -r examples scripts tests $ROOT/usr/share/viewmol ++cp -r locale $ROOT/GENTOOLIBDIR/viewmol/ ++cp -r doc/* examples scripts tests $ROOT/usr/share/doc/GENTOODOCDIR/ ++find $ROOT/GENTOOLIBDIR/viewmol -type f -exec chmod a+r {} \; ++find $ROOT/GENTOOLIBDIR/viewmol -type d -exec chmod a+rx {} \; ++sed 's/\/source//g' viewmolrc > $ROOT/GENTOOLIBDIR/viewmol/viewmolrc ++chmod -R 644 $ROOT/GENTOOLIBDIR/viewmol/viewmolrc ++if [ -d $ROOT/X11R6/GENTOOLIBDIR/X11/app-defaults ] + then + locale=`echo $LANG | cut -c1-2` + if [ "$locale" = "en" ] +@@ -82,6 +85,6 @@ then + # The C locale is defined by default for rpm builds, overwrite it + locale="en_US" + fi +- cp locale/${locale}/Viewmol /usr/X11R6/lib/X11/app-defaults +- chmod a+r /usr/X11R6/lib/X11/app-defaults/Viewmol ++ cp locale/${locale}/Viewmol ${ROOT}/X11R6/GENTOOLIBDIR/X11/app-defaults ++ chmod a+r ${ROOT}/X11R6/GENTOOLIBDIR/X11/app-defaults/Viewmol + fi diff --git a/sci-chemistry/viewmol/files/2.4.1-look-for-python-in-right-place.patch b/sci-chemistry/viewmol/files/2.4.1-look-for-python-in-right-place.patch new file mode 100644 index 000000000000..4f981a0fd1cb --- /dev/null +++ b/sci-chemistry/viewmol/files/2.4.1-look-for-python-in-right-place.patch @@ -0,0 +1,20 @@ +--- viewmol-2.4.1.orig/source/getmachine 2004-08-29 08:04:09.000000000 -0700 ++++ viewmol-2.4.1/source/getmachine 2005-12-02 11:19:36.000000000 -0800 +@@ -156,7 +158,7 @@ + echo "PNGINCLUDE = $pnginclude" >> .config.$os + + # Python +- list=`find /usr -name Python.h -print 2> /dev/null` ++ list=`find /usr/include -name Python.h -print 2> /dev/null` + version=`(for i in $list + do + dir=\`dirname $i\` +@@ -179,7 +181,7 @@ + echo "PYTHONINCLUDE = $pythoninclude" >> .config.$os + if [ "$version" != "" ] + then +- pythonlib=`dirname \`find /usr -name "lib${version}*.a" -print 2> /dev/null | grep "$version/"\`` ++ pythonlib=`dirname \`find /usr/lib -name "lib${version}*.a" -print 2> /dev/null | grep "$version/"\`` + else + givehint + echo -n "Please enter the name of the directory where the Python library can be found: " diff --git a/sci-chemistry/viewmol/files/2.4.1-remove-icc-check.patch b/sci-chemistry/viewmol/files/2.4.1-remove-icc-check.patch new file mode 100644 index 000000000000..c328e9cc79ab --- /dev/null +++ b/sci-chemistry/viewmol/files/2.4.1-remove-icc-check.patch @@ -0,0 +1,23 @@ +diff -urN viewmol-2.4.1.orig/source/getmachine viewmol-2.4.1/source/getmachine +--- viewmol-2.4.1.orig/source/getmachine 2004-08-29 08:04:09.000000000 -0700 ++++ viewmol-2.4.1/source/getmachine 2005-12-02 09:30:49.000000000 -0800 +@@ -269,19 +269,11 @@ + makedir + cat ../.config.$os > makefile + use_icc=`type icc 2> /dev/null` +- if [ "$use_icc" = "" ] +- then + findProcessor + echo 'COMPILER=gcc' >> makefile + echo "OPT=-O6 -mcpu=$processor -fomit-frame-pointer -ffast-math -malign-double" >> makefile + echo 'CFLAGS=-Wall -I/usr/X11R6/include -DLINUX -Wno-strict-aliasing' >> makefile + echo "LDFLAGS=$LINKFORSHARED" >> makefile +- else +- echo 'COMPILER=icc' >> makefile +- echo 'OPT=-O2 -ipo' >> makefile +- echo 'CFLAGS=-I/opt/intel/compiler50/ia32/include -I/usr/X11R6/include -DLINUX' >> makefile +- echo "LDFLAGS=$LINKFORSHARED -ipo" >> makefile +- fi + echo 'SCANDIR=' >> makefile + echo 'INCLUDE=$(TIFFINCLUDE) -I$(PNGINCLUDE) -I$(PYTHONINCLUDE)' >> makefile + echo 'LIBRARY=$(LIBTIFF) $(LIBPNG) -L$(LIBPYTHON)' >> makefile diff --git a/sci-chemistry/viewmol/files/2.4.1-use-root-for-app-defaults.patch b/sci-chemistry/viewmol/files/2.4.1-use-root-for-app-defaults.patch new file mode 100644 index 000000000000..c04da305c144 --- /dev/null +++ b/sci-chemistry/viewmol/files/2.4.1-use-root-for-app-defaults.patch @@ -0,0 +1,20 @@ +--- viewmol-2.4.1.orig/source/install 2004-10-09 08:38:31.000000000 -0700 ++++ viewmol-2.4.1/source/install 2005-12-02 11:34:35.000000000 -0800 +@@ -71,7 +71,7 @@ + find $ROOT/lib/viewmol -type d -exec chmod a+rx {} \; + sed 's/\/source//g' viewmolrc > $ROOT/lib/viewmol/viewmolrc + chmod -R 644 $ROOT/lib/viewmol/viewmolrc +-if [ -d /usr/X11R6/lib/X11/app-defaults ] ++if [ -d $ROOT/X11R6/lib/X11/app-defaults ] + then + locale=`echo $LANG | cut -c1-2` + if [ "$locale" = "en" ] +@@ -82,6 +82,6 @@ + # The C locale is defined by default for rpm builds, overwrite it + locale="en_US" + fi +- cp locale/${locale}/Viewmol /usr/X11R6/lib/X11/app-defaults +- chmod a+r /usr/X11R6/lib/X11/app-defaults/Viewmol ++ cp locale/${locale}/Viewmol $ROOT/X11R6/lib/X11/app-defaults ++ chmod a+r $ROOT/X11R6/lib/X11/app-defaults/Viewmol + fi |