xds-bin-20170430.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. DESCRIPTION="Software for processing single-crystal X-ray monochromatic diffraction data"
  5. HOMEPAGE="http://xds.mpimf-heidelberg.mpg.de/"
  6. SRC_URI="
  7. ftp://ftp.mpimf-heidelberg.mpg.de/pub/kabsch/XDS-INTEL64_Linux_x86_64.tar.gz -> XDS-INTEL64_Linux_x86_64-${PV}.tar.gz
  8. ftp://ftp.mpimf-heidelberg.mpg.de/pub/kabsch/XDS_html_doc.tar.gz -> XDS_html_doc-${PV}.tar.gz"
  9. LICENSE="free-noncomm"
  10. SLOT="0"
  11. KEYWORDS="-* ~amd64"
  12. IUSE="smp X"
  13. RDEPEND="X? ( sci-visualization/xds-viewer )"
  14. DEPEND=""
  15. QA_PREBUILT="opt/xds-bin/*"
  16. src_unpack() {
  17. default
  18. mv XDS-* "${S}" || die
  19. }
  20. src_install() {
  21. local HTML_DOCS=( "${WORKDIR}"/XDS_html_doc/. )
  22. einstalldocs
  23. local i suffix=$(usex smp '_par' '')
  24. exeinto /opt/${PN}
  25. doexe *
  26. for i in xds mintegrate mcolspot xscale; do
  27. dosym ../${PN}/${i}${suffix} /opt/bin/${i}
  28. done
  29. for i in 2cbf cellparm forkcolspot forkintegrate merge2cbf pix2lab xdsconv; do
  30. dosym ../${PN}/${i} /opt/bin/${i}
  31. done
  32. insinto /usr/share/${PN}/INPUT_templates
  33. doins -r "${WORKDIR}"/XDS_html_doc/html_doc/INPUT_templates/.
  34. }
  35. pkg_postinst() {
  36. elog "This package will expire on April 30, 2017"
  37. }