procheck-3.5.4-r1.ebuild 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils fortran-2 multilib toolchain-funcs versionator
  5. DESCRIPTION="Checks the stereochemical quality of a protein structure"
  6. HOMEPAGE="http://www.biochem.ucl.ac.uk/~roman/procheck/procheck.html"
  7. SRC_URI="
  8. ${P}.tar.gz ${P}-README
  9. doc? ( ${P}-manual.tar.gz )"
  10. LICENSE="procheck"
  11. SLOT="0"
  12. KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
  13. IUSE="doc"
  14. RDEPEND="app-shells/tcsh"
  15. DEPEND="${RDEPEND}"
  16. RESTRICT="fetch"
  17. S="${WORKDIR}/${PN}"
  18. pkg_nofetch() {
  19. elog "Please visit http://www.ebi.ac.uk/thornton-srv/software/PROCHECK/download.html"
  20. elog "And follow the instruction for downloading."
  21. elog "Files should be stored in following way"
  22. elog "${PN}.tar.gz -> ${DISTDIR}/${P}.tar.gz"
  23. elog "README -> ${DISTDIR}/${P}-README"
  24. if use doc; then
  25. elog "manual.tar.gz -> ${DISTDIR}/${P}-manual.tar.gz"
  26. fi
  27. }
  28. src_prepare() {
  29. epatch "${FILESDIR}"/${PV}-ldflags.patch
  30. }
  31. src_compile() {
  32. emake \
  33. F77=$(tc-getFC) \
  34. CC=$(tc-getCC) \
  35. COPTS="${CFLAGS}" \
  36. FOPTS="${FFLAGS}"
  37. }
  38. src_install() {
  39. for i in *.scr; do
  40. newbin ${i} ${i%.scr}
  41. done
  42. exeinto /usr/$(get_libdir)/${PN}/
  43. doexe \
  44. anglen \
  45. clean \
  46. rmsdev \
  47. secstr \
  48. gfac2pdb \
  49. pplot \
  50. bplot \
  51. tplot \
  52. mplot \
  53. vplot \
  54. viol2pdb \
  55. wirplot \
  56. nb
  57. dodoc "${DISTDIR}"/${P}-README
  58. insinto /usr/$(get_libdir)/${PN}/
  59. doins *.dat *.prm
  60. newins resdefs.dat resdefs.data
  61. cat >> "${T}"/30${PN} <<- EOF
  62. prodir="${EPREFIX}/usr/$(get_libdir)/${PN}/"
  63. EOF
  64. doenvd "${T}"/30${PN}
  65. if use doc; then
  66. pushd "${WORKDIR}"
  67. dohtml -r manual
  68. popd
  69. fi
  70. }