Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213616 - sci-chemistry/pymol should depend on apbs
Summary: sci-chemistry/pymol should depend on apbs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Chemistry-Related Packages
URL:
Whiteboard:
Keywords:
Depends on: 213346
Blocks:
  Show dependency tree
 
Reported: 2008-03-16 18:14 UTC by Justin Lecher (RETIRED)
Modified: 2008-07-07 07:23 UTC (History)
0 users

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


Attachments
pymol-1.0-r2.ebuild (pymol-1.0-r2.ebuild,2.40 KB, text/plain)
2008-03-16 18:15 UTC, Justin Lecher (RETIRED)
Details
pymol-1.0-r2.ebuild (pymol-1.0-r2.ebuild,2.42 KB, text/plain)
2008-03-22 18:51 UTC, Justin Lecher (RETIRED)
Details
pymol-1.0-r1.ebuild patch (pymol.diff,3.04 KB, patch)
2008-03-23 11:31 UTC, Justin Lecher (RETIRED)
Details | Diff
pymol.diff (pymol.diff,3.09 KB, text/plain)
2008-03-24 18:43 UTC, Justin Lecher (RETIRED)
Details
pymol.diff (pymol.diff,3.10 KB, patch)
2008-03-30 17:26 UTC, Justin Lecher (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2008-03-16 18:14:30 UTC
As the native install of pymol provides a plugin interface for apbs, it should depend. Second for the right functionality of apbs with pymol two env variables should be set. From the ideas discussed in bug #213346 I rewrote the ebuild a little bit and introduced the USE flag apbs. It makes pymol depend on sci-chemistry/apbs and for the USE="-apbs" it removes the plugin.

Additionally I added the python_mod_cleanup in the pkg_postrm section.

Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2008-03-16 18:15:13 UTC
Created attachment 146328 [details]
pymol-1.0-r2.ebuild
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2008-03-22 18:51:20 UTC
Created attachment 146934 [details]
pymol-1.0-r2.ebuild

Made it some more portable.
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2008-03-23 11:06:10 UTC
Hi Justin,

That looks good, thanks much for your work. In general, it is better 
to post a diff to an exisiting ebuild rather than the ebuild itself since
it is much easier to spot the differences that way! Unless of course
the changes are very significant.

I think you can pull the line
APBS_VER="$(best_version sci-chemistry/apbs | cut -d/ -f2)"
into the "if use apbs" conditional later on.

Also, I will try to have apbs install its files into /usr/share/apbs
rather than apbs-<version>. Otherwise pymol will hard depend on a
particular apbs version forcing a recompile of pymol 
every time apbs will be bumped. In that case you can get rid
of the APBS_VER alltogether and replace it by just apbs.
I'll post back once this is done.

cheers,
Markus
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2008-03-23 11:31:06 UTC
(In reply to comment #3)
> I think you can pull the line
> APBS_VER="$(best_version sci-chemistry/apbs | cut -d/ -f2)"
> into the "if use apbs" conditional later on.
It must be in in the conditional, because there is no reason to have a "best_version sci-chemistry/apbs". I changed the lines and at a diff.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2008-03-23 11:31:13 UTC
Created attachment 146996 [details, diff]
pymol-1.0-r1.ebuild patch

Now a diff.
Comment 6 Markus Dittrich (RETIRED) gentoo-dev 2008-03-23 14:47:25 UTC
Cool, thanks!

I changed apbs to install into /usr/share/apbs. 
I did not bump abps to a new revision though, hence users that 
have apbs already installed will need to recompile it to pick up
this change. You may want to add a few einfo lines pointing
this out (probably wrapped in a "if use apbs") to the ebuild.

Thanks,
Markus
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2008-03-24 18:38:53 UTC
Hi Markus!

I changed the lines and added the ewarn. Hope the test case is legal. If not, please correct me.

Thanks,
Justin
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2008-03-24 18:43:56 UTC
Created attachment 147156 [details]
pymol.diff
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2008-03-30 17:26:20 UTC
Created attachment 147706 [details, diff]
pymol.diff

Forgott some dependencies.
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2008-07-07 04:40:35 UTC
Fixed in the science overlay. I noticed your ebuild had some apbs variables commented out, so could you clarify the status of bug #213346 on that bug?
Comment 11 Justin Lecher (RETIRED) gentoo-dev 2008-07-07 07:23:49 UTC
The updated version of the apbs plugin allows to define default locations inside the plugin. I set the right paths there so that there is no need to set them somewhere else. BUG #213346 is obsolete now.