http://www.mpimf-heidelberg.mpg.de/~kabsch/xds/ Should be available for protein structure science. Perhaps the science overlay. Reproducible: Always Reproducible: Always
Created attachment 142806 [details] sci-chemistry/xds-20071206.ebuild sci-chemistry/xds-20071206.ebuild
> # Copyright 1999-2008 Gentoo Foundation [/home/donnie] > # Distributed under the terms of the GNU General Public License v2 > # $Header: $ > > inherit eutils > > DESCRIPTION="X-ray Detector Software for processing single-crystal monochromatic diffraction data recorded by the rotation method." > SRC_URI="ftp://ftp.mpimf-heidelberg.mpg.de/pub/kabsch/XDS-linux_ifc_Intel+AMD.tar.gz > ftp://ftp.mpimf-heidelberg.mpg.de/pub/kabsch/XDS_html_doc.tar.gz" > HOMEPAGE="http://www.mpimf-heidelberg.mpg.de/~kabsch/xds/" > RESTRICT="primaryuri" Why the restriction? > LICENSE="as-is nonprofit" Is this really accurate? > SLOT="0" > KEYWORDS="x86" Ebuilds don't start marked stable, they should be ~arch first. > IUSE="smp X" > RDEPEND="X? ( x11-libs/libXdmcp > x11-libs/libXau > x11-libs/libX11 )" > DEPEND="${RDEPEND}" > > src_install() { > exeinto /opt/xray/XDS > doexe XDS-linux_ifc_Intel+AMD/* > dosym /opt/xray/XDS/xdsconv /usr/bin/xdsconv > if use smp > then > dosym /opt/xray/XDS/xds_par /usr/bin/xds > dosym /opt/xray/XDS/xscale_par /usr/bin/xscale > dosym /opt/xray/XDS/xds /usr/bin/xds_single > dosym /opt/xray/XDS/xscale /usr/bin/xscale_single > else > dosym /opt/xray/XDS/xds_par /usr/bin/xds_par > dosym /opt/xray/XDS/xscale_par /usr/bin/xscale_par > dosym /opt/xray/XDS/xds /usr/bin/xds > dosym /opt/xray/XDS/xscale /usr/bin/xscale > fi These symlinks are the wrong approach. Instead you should be adding the directory to PATH using a file in /etc/env.d/. You can probably find some examples by looking through that directory on your system, and there are utility functions for installing it (doenvd, newenvd). > if use !X; then I prefer 'if ! use X' -- the other way is a hack primarily intended for use_enable() and use_with(). > rm ${D}/opt/xray/XDS/VIEW > else > dosym /opt/xray/XDS/VIEW /usr/bin/VIEW > fi > dohtml -r XDS_html_doc/* > dodoc XDS_html_doc/html_doc/INPUT_templates/* > } > > pkg_postinst(){ > einfo "This package will expire at" > einfo "Expiration date: June 30, 2008" > } >
(In reply to comment #2) > > # Copyright 1999-2008 Gentoo Foundation [/home/donnie] > > # Distributed under the terms of the GNU General Public License v2 > > # $Header: $ > > > > inherit eutils > > > > DESCRIPTION="X-ray Detector Software for processing single-crystal monochromatic diffraction data recorded by the rotation method." > > SRC_URI="ftp://ftp.mpimf-heidelberg.mpg.de/pub/kabsch/XDS-linux_ifc_Intel+AMD.tar.gz > > ftp://ftp.mpimf-heidelberg.mpg.de/pub/kabsch/XDS_html_doc.tar.gz" > > HOMEPAGE="http://www.mpimf-heidelberg.mpg.de/~kabsch/xds/" > > RESTRICT="primaryuri" > > Why the restriction? Because This was one of my first ebuilds and I figured out later that it should be mirror. Shame on me but I reviewed it bad. > > > LICENSE="as-is nonprofit" > > Is this really accurate? Kabsch says: XDS is free of charge for non-commercial applications and available here for downloading. Note, that the executables of the package will expire on June 30, 2008. For industrial usage of XDS a license is required (e-mail enquiry : Wolfgang.Kabsch@mpimf-heidelberg.mpg.de). For me that means free-noncomm. > > > SLOT="0" > > KEYWORDS="x86" > > Ebuilds don't start marked stable, they should be ~arch first. Same as above, first ebuild, personal use and bad review. > > > IUSE="smp X" > > RDEPEND="X? ( x11-libs/libXdmcp > > x11-libs/libXau > > x11-libs/libX11 )" > > DEPEND="${RDEPEND}" > > > > src_install() { > > exeinto /opt/xray/XDS > > doexe XDS-linux_ifc_Intel+AMD/* > > dosym /opt/xray/XDS/xdsconv /usr/bin/xdsconv > > if use smp > > then > > dosym /opt/xray/XDS/xds_par /usr/bin/xds > > dosym /opt/xray/XDS/xscale_par /usr/bin/xscale > > dosym /opt/xray/XDS/xds /usr/bin/xds_single > > dosym /opt/xray/XDS/xscale /usr/bin/xscale_single > > else > > dosym /opt/xray/XDS/xds_par /usr/bin/xds_par > > dosym /opt/xray/XDS/xscale_par /usr/bin/xscale_par > > dosym /opt/xray/XDS/xds /usr/bin/xds > > dosym /opt/xray/XDS/xscale /usr/bin/xscale > > fi > > These symlinks are the wrong approach. Instead you should be adding the > directory to PATH using a file in /etc/env.d/. You can probably find some > examples by looking through that directory on your system, and there are > utility functions for installing it (doenvd, newenvd). Okey! > > > if use !X; then > > I prefer 'if ! use X' -- the other way is a hack primarily intended for > use_enable() and use_with(). I understand and learn. > > > rm ${D}/opt/xray/XDS/VIEW > > else > > dosym /opt/xray/XDS/VIEW /usr/bin/VIEW > > fi > > dohtml -r XDS_html_doc/* > > dodoc XDS_html_doc/html_doc/INPUT_templates/* > > } > > > > pkg_postinst(){ > > einfo "This package will expire at" > > einfo "Expiration date: June 30, 2008" > > } > > > New updated ebuild available!
Created attachment 144419 [details] xds-20071206.ebuild
Created attachment 144420 [details] xds-20071206.ebuild
Created attachment 144423 [details] xds-20071206.ebuild learned something new from bug 209122. Thanks Donnie!!
Created attachment 144426 [details] xds-20071206.ebuild Doesn't have buildtime deps.
Created attachment 144428 [details] xds-20071206.ebuild xray removed
OK, new set of questions and comments: - Can it work in /opt/xds instead of /opt/XDS ? - Is smp actually deleting the non-parallel binaries, or deleting symlinks to them? - Explicitly set DEPEND="" so that RDEPEND doesn't become DEPEND too. - Should probably be named xds-bin instead of xds. - If you run repoman on it, it'll tell you to quote some variables. - Use relative symlinks (e.g., dosym foo_bar /opt/xds/foo)
(In reply to comment #9) > OK, new set of questions and comments: > > - Can it work in /opt/xds instead of /opt/XDS ? Of course it can do. For me the program is XDS, thats why I put it in that. Changed! > - Is smp actually deleting the non-parallel binaries, or deleting symlinks to > them? It is deleting the non-parallel binaries and setting symlinks to the parallel. Do you think the non-parallel should be kept? > - Explicitly set DEPEND="" so that RDEPEND doesn't become DEPEND too. Done! > - Should probably be named xds-bin instead of xds. Yeah, but I hate this degradation although it is true. > - If you run repoman on it, it'll tell you to quote some variables. Corrected! > - Use relative symlinks (e.g., dosym foo_bar /opt/xds/foo) Done! >
Created attachment 145996 [details] sci-chemistry/xds-bin-20071206.ebuild
Created attachment 146016 [details] xds-bin-20071206.ebuild -* added
Created attachment 146017 [details] sci-chemistry/xds-bin-20071206.ebuild
(In reply to comment #10) > (In reply to comment #9) > > OK, new set of questions and comments: > > > > - Can it work in /opt/xds instead of /opt/XDS ? > Of course it can do. For me the program is XDS, thats why I put it in that. > Changed! /opt/xds-bin, my bad. > > - Is smp actually deleting the non-parallel binaries, or deleting symlinks to > > them? > It is deleting the non-parallel binaries and setting symlinks to the parallel. > Do you think the non-parallel should be kept? It needs to be consistent either way. Either always install 1 set of binaries, or always install 2 sets of binaries. I'd recommend 1 set (deleting _par* on USE="-smp"). > > - Explicitly set DEPEND="" so that RDEPEND doesn't become DEPEND too. > Done! > > - Should probably be named xds-bin instead of xds. > Yeah, but I hate this degradation although it is true. > > - If you run repoman on it, it'll tell you to quote some variables. > Corrected! > > - Use relative symlinks (e.g., dosym foo_bar /opt/xds/foo) > Done! > > >
(In reply to comment #14) > /opt/xds-bin, my bad. Okey everbody should see it. I don't want to be the "bin man"! > It needs to be consistent either way. Either always install 1 set of binaries, > or always install 2 sets of binaries. I'd recommend 1 set (deleting _par* on > USE="-smp"). > Right!
Created attachment 146082 [details] xds-bin-20071206.ebuild
Created attachment 157945 [details] xds-bin-20080602.ebuild New version was released. This is the updated ebuild. I also introduced the nessecary fetch rstriction.
I just added this to the tree, with a few small changes. Thanks for all your work on this!