ccpnmr-py _unstable_ port information

Info2: <<
Package: ccpnmr-py%type_pkg[python]
Version: 1.0.15
Revision: 4

Distribution: (%type_pkg[python] = 23) 10.4
Type: python (2.3 2.4 2.5)

Maintainer: Murali Vadivelu

Depends: python%type_pkg[python], x11, tcltk, freeglut-shlibs, (%n != ccpnmr-py25) python%type_pkg[python]-socket-ssl | (%n != ccpnmr-py25) python%type_pkg[python]-socket
BuildDepends: x11-dev, tcltk-dev, freeglut
Recommends: ccpnmr-py%type_pkg[python]-bin
Conflicts: ccpnmr-opengl-py%type_pkg[python], ccpnmr-mesa-py%type_pkg[python], ccpnmr-py23, ccpnmr-py24, ccpnmr-py25, ccpnmr-py23-bin, ccpnmr-py24-bin, ccpnmr-py25-bin
Replaces: ccpnmr-opengl-py%type_pkg[python], ccpnmr-mesa-py%type_pkg[python], ccpnmr-py23, ccpnmr-py24, ccpnmr-py25, ccpnmr-py23-bin, ccpnmr-py24-bin, ccpnmr-py25-bin

Description: NMR Software Suite (using OpenGL)
Homepage: http://www.ccpn.ac.uk/ccpn_suite/ccpn_suite.html
License: LGPL

Source: ftp://www.bio.cam.ac.uk/pub/ccpnmr/analysis%v.tar.gz
SourceDirectory: ccpnmr
Source-MD5: b713a3ecec90fc74e730eb2db04191b4

PatchScript: sed 's,@PREFIX@,%p,g' < %a/ccpnmr-py.patch | sed 's,python2.X,python%type_raw[python],g' | patch -p1

CompileScript: <<
#!/bin/sh -ev

export CCPNMR_TOP_DIR=%b

cd $CCPNMR_TOP_DIR/ccpnmr1.0/c

cp environment-opengl.txt environment.txt

if [ %m = "i386" ]; then
perl -pi -e 's,-mtune=970\s-maltivec,,g' environment.txt
fi

make
make links
<<
InstallScript: <<
mkdir -p %i/lib/ccpnmr-py%type_pkg[python]/bin
cp %b/bin/* %i/lib/ccpnmr-py%type_pkg[python]/bin/

chmod 755 %i/lib/ccpnmr-py%type_pkg[python]/bin/*

mkdir -p %i/lib/python%type_raw[python]/site-packages/ccpnmr/ccpnmr1.0
cp -r %b/ccpnmr1.0/c %i/lib/python%type_raw[python]/site-packages/ccpnmr/ccpnmr1.0/
cp -r %b/ccpnmr1.0/python %i/lib/python%type_raw[python]/site-packages/ccpnmr/ccpnmr1.0/
echo 'ccpnmr/ccpnmr1.0/python' > %i/lib/python%type_raw[python]/site-packages/ccpnmr.pth

cp -r %b/ccpnmr1.0/data %i/lib/python%type_raw[python]/site-packages/ccpnmr/ccpnmr1.0/
cp -r %b/ccpnmr1.0/model %i/lib/python%type_raw[python]/site-packages/ccpnmr/ccpnmr1.0/

cp -r %b/ccpnmr1.0/doc %i/lib/python%type_raw[python]/site-packages/ccpnmr/ccpnmr1.0/
cp -r %b/doc %i/lib/python%type_raw[python]/site-packages/ccpnmr/

mkdir -p %i/lib/python%type_raw[python]/site-packages/ccpnmr/ccpnmr1.0/python/
cp -r %b/ccpnmr1.0/python/doc %i/lib/python%type_raw[python]/site-packages/ccpnmr/ccpnmr1.0/python/

cd %i/lib/python%type_raw[python]/site-packages; %p/bin/python%type_raw[python] -O %p/lib/python%type_raw[python]/compileall.py ccpnmr/ccpnmr1.0
<<

DocFiles: ccpnmr1.0/license/CCPN.license ccpnmr1.0/license/LGPL.license

PostInstScript: <<
update-alternatives --install %p/bin/analysis analysis %p/lib/ccpnmr-py%type_pkg[python]/bin/analysis 40
update-alternatives --install %p/bin/formatConverter formatConverter %p/lib/ccpnmr-py%type_pkg[python]/bin/formatConverter 40
update-alternatives --install %p/bin/pipe2azara pipe2azara %p/lib/ccpnmr-py%type_pkg[python]/bin/pipe2azara 40
update-alternatives --install %p/bin/dataShifter dataShifter %p/lib/ccpnmr-py%type_pkg[python]/bin/dataShifter 40
update-alternatives --install %p/bin/updateAll updateAll %p/lib/ccpnmr-py%type_pkg[python]/bin/updateAll 40
update-alternatives --install %p/bin/updateCheck updateCheck %p/lib/ccpnmr-py%type_pkg[python]/bin/updateCheck 40

cd %p/lib/python%type_raw[python]/site-packages/ccpnmr/ccpnmr1.0/c; make links

%p/bin/python%type_raw[python] -O %p/lib/python%type_raw[python]/site-packages/ccpnmr/ccpnmr1.0/python/ccpnmr/update/UpdateAuto.py
<<

PreRmScript: <<
if [ "$1" != "upgrade" ]; then
update-alternatives --remove analysis %p/lib/ccpnmr-py%type_pkg[python]/bin/analysis
update-alternatives --remove formatConverter %p/lib/ccpnmr-py%type_pkg[python]/bin/formatConverter
update-alternatives --remove pipe2azara %p/lib/ccpnmr-py%type_pkg[python]/bin/pipe2azara
update-alternatives --remove dataShifter %p/lib/ccpnmr-py%type_pkg[python]/bin/dataShifter
update-alternatives --remove updateAll %p/lib/ccpnmr-py%type_pkg[python]/bin/updateAll
update-alternatives --remove updateCheck %p/lib/ccpnmr-py%type_pkg[python]/bin/updateCheck
fi
<<

PostRmScript: <<
if [ "$1" != "upgrade" ]; then
if [ -d %p/lib/python%type_raw[python]/site-packages/ccpnmr ];
then rm -r %p/lib/python%type_raw[python]/site-packages/ccpnmr;
fi
fi
<<

DescDetail: <<
The CcpNmr software suite is a series of programs for
macromolecular NMR spectroscopy integrated with the
CCP data model. The CCP Data Model for macromolecular
NMR is intended to cover all data needed for macromolecular
NMR spectroscopy from the initial experimental data to
the final validation. It serves for exchange of data
between programs, for storage, data harvesting, and
database deposition.
<<
DescUsage: <<
If Fink is properly installed and your environment
variables, such as PATH, etc. are set properly, you
should be able to run CcpNmr software, after installation,
by calling the command analysis or formatConverter in an
xterm or terminal window.

After installation, you can't use the same window to run
analysis or formatConverter. You need to use a new xterm
window or terminal window for the path to the commands to
be sourced.
<<
<<