Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293504 - sci-chemistry/vmd should introduce MSMS for IUSE
Summary: sci-chemistry/vmd should introduce MSMS for IUSE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Markus Dittrich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-17 15:43 UTC by Bjoern Olausson
Modified: 2010-08-21 23:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vmd-1.8.7.ebuild.diff (vmd-1.8.7.ebuild.diff,523 bytes, patch)
2009-11-17 15:43 UTC, Bjoern Olausson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bjoern Olausson 2009-11-17 15:43:15 UTC
VMD can generate a surface for a given structure.

To accomplish that it needs either MSMS or SURF, which is build in, but slower.

So adding a the useflag MSMS would make the "Drawing Methods" feature complete.

There is a ready to use ebuild written by Justin Lecher (jlec)
http://bugs.gentoo.org/show_bug.cgi?id=209161

Please find attached a diff for the current "vmd-1.8.7.ebuild".

Cheers
Bjoern Olausson

Reproducible: Always
Comment 1 Bjoern Olausson 2009-11-17 15:43:41 UTC
Created attachment 210521 [details, diff]
vmd-1.8.7.ebuild.diff
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2009-11-24 04:15:03 UTC
Thanks! Let's see if Justin can come up with
a working ebuild for msms and then we can have
vmd use it as well.

cheers,
Markus
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-11-24 08:17:20 UTC
The problem is, that msms as wrapped version of the msms-lib is only provided as binary version. The msmslib itself is provided as source and there is a working ebuild in the overlay.
@Bjoern, perhaps you can ask upstream to provide a source download for the wrapper, too.
Comment 4 Bjoern Olausson 2009-11-24 09:31:47 UTC
@Justin: Okay, now I am kinda confused... why would we need the wrapped version?

And by the way, I found a nice plugin "MultiMSMS VMD plugin" - The MultiMSMS VMD plugin caches the Solvent Excluded Surface computed by MSMS to speedup the animation of a sequence of frames. http://personal.cscs.ch/~mvalle/ChemViz/multimsms.html

For VMD we just need the MSMS C library. MGLTools (AutoDockTools etc.) need the wrapped version... As much as I understand it.

But I found neither the source for the MSMS C library nor for the wrapped version.

So before I go and ask Michel Sanner I would like to get things sorted.

Cheers
Bjoern
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2009-11-24 11:05:18 UTC
sci-libs/msms contains the c lib, which is in sci overlay, and the wrapped version is in my personal overlay for ancient reasons.
Comment 6 Bjoern Olausson 2009-11-24 12:34:55 UTC
Okay, the msms ebuild from science overlay is not what we need. Wee need this:

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils
DL_URI="http://mgltools.scripps.edu/downloads/tars/releases/MSMSRELEASE/"

DESCRIPTION="msms is a wrapped version of the library comes with MGLTools"
SRC_URI="x86? ( ${DL_URI}REL${PV}/msms_i86Linux2_${PV}.tar.gz )
                 amd64? ( ${DL_URI}REL${PV}/msms_i86_64Linux2_${PV}.tar.gz )"
HOMEPAGE="http://mgltools.scripps.edu"
RESTRICT="mirror"
LICENSE="mgltools"
SLOT="0"
KEYWORDS="-* ~x86 ~amd64"
IUSE="static"

src_unpack(){
        unpack ${A}
        epatch "${FILESDIR}"/atmtypenumbers.patch
}

src_install() {
        insinto /opt/msms/
        doins atmtypenumbers
        sed -i 's:nawk:gawk:g' {pdb_to_xyzr,pdb_to_xyzrn}
        exeinto /opt/msms/
        doexe pdb_to_xyzr pdb_to_xyzrn
        case "${ARCH}" in
                x86)
                        doexe msms.i86Linux2.2.6.1
                        dosym ../../opt/msms/msms.i86Linux2.2.6.1 /usr/bin/msms;;
                amd64)
                        use !static && doexe msms.x86_64Linux2.2.6.1  && \
                        dosym ../../opt/msms/msms.x86_64Linux2.2.6.1 /usr/bin/msms
                        use static && doexe msms.x86_64Linux2.2.6.1.staticgcc &&\
                        dosym ../../opt/msms/msms.x86_64Linux2.2.6.1.staticgcc /usr/bin/msms;;
                *)
                        die || "${Arch} not supported";;
        esac

        dosym ../../opt/msms/pdb_to_xyzr /usr/bin/pdb_to_xyzr
        dosym ../../opt/msms/pdb_to_xyzrn /usr/bin/pdb_to_xyzrn
        dodoc README ReleaseNotes
        doman msms.1
}

${FILESDIR}"/atmtypenumbers.patch
--- pdb_to_xyzr.orig    2008-04-17 15:40:07.000000000 +0200
+++ pdb_to_xyzr 2008-04-17 15:40:27.000000000 +0200
@@ -31,7 +31,7 @@
 nawk 'BEGIN{
        # read radius table and patterns from supplied file
        npats=0
-       numfile = "./atmtypenumbers"
+       numfile = "/opt/msms/atmtypenumbers"
        while ((getline < numfile) > 0) {
                if(NF==0||substr($1,1,1)=="#") continue;
                if($1=="radius") {

And I will ask if they can relese http://mgltools.scripps.edu/downloads#msms as source.

Cheers
Bjoern
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2009-11-24 15:08:27 UTC
DESCRIPTION="msms is a wrapped version of the library comes with MGLTools"

;)
Comment 8 Bjoern Olausson 2009-11-24 15:20:42 UTC
Sometimes I just should ... take a nap :-)
But no response so far.

Cheers
Bjoern
Comment 9 Alexey Shvetsov archtester gentoo-dev 2010-08-21 23:10:35 UTC
Added msms and povray use flags