#!/bin/bash ccp4_restart() { CCP4_VER="${CCP4_VER:-5.99.5}" cd ~/science_packages rm -rf ccp4-${CCP4_VER} # rm -rf ccp4/{lib,bin,include}/* tar zxvf /usr/portage/distfiles/ccp4-core.tar.gz tar zxvf /usr/portage/distfiles/phaser-cctbx.tar.gz cd ccp4-${CCP4_VER} cp ~/science_packages/ccp4-patches/ccp4.setup-bash include/ # These two only needed when attempting to install outside build dir via # --bindir and --libdir instead of straight copying after build # p1r < ~/science_packages/ccp4-patches/ccp4-5.99.5-install-libs-at-install-time.patch || die "installlibs patch failed" # p1r < ~/science_packages/ccp4-patches/add-xdl-libdir.patch || die "xdl patch failed" p1r < ~/science_packages/ccp4-patches/dont-make-dirs-in-configure.patch || die "makedirs patch failed" p1r < ~/science_packages/ccp4-patches/dont-build-rasmol.patch || die "rasmol patch failed" p1r < ~/science_packages/ccp4-patches/make-mosflm-libdir.patch || die "mosflm patch failed" p1r < ~/science_packages/ccp4-patches/make-mosflm-index-libdir.patch || die "mosflm index patch failed" p1r < ~/science_packages/ccp4-patches/make-mosflm-cbf-libdir.patch || die "mosflm cbf patch failed" p1r < ~/science_packages/ccp4-patches/make-ipmosflm-dir.patch || die "ipmosflm patch failed" p1r < ~/science_packages/ccp4-patches/create-mosflm-bindir.patch || die "mosflm bindir patch failed" p1r < ~/science_packages/ccp4-patches/no-phaser-ld-assume-kernel.patch || die "phaser LD_ASSUME_KERNEL patch failed" p1r < ~/science_packages/ccp4-patches/make-phaser-bindir.patch || die "phaser bindir patch failed" p1r < ~/science_packages/ccp4-patches/pass-clipper-enablevals.patch || die "clipper patch failed" # p1r < ~/science_packages/ccp4-patches/dont-build-pdb-extract.patch || die "pdb-extract patch failed" } ccp4_restart