jags-4.2.0.ebuild 883 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils toolchain-funcs
  5. MYP="JAGS-${PV}"
  6. DESCRIPTION="Just Another Gibbs Sampler for Bayesian MCMC simulation"
  7. HOMEPAGE="http://mcmc-jags.sourceforge.net/"
  8. SRC_URI="mirror://sourceforge/project/mcmc-jags/JAGS/4.x/Source/${MYP}.tar.gz"
  9. SLOT="0"
  10. LICENSE="GPL-2"
  11. KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
  12. IUSE="doc"
  13. RDEPEND="
  14. virtual/blas
  15. virtual/lapack"
  16. DEPEND="${RDEPEND}
  17. virtual/pkgconfig
  18. doc? (
  19. virtual/latex-base
  20. dev-texlive/texlive-latexextra
  21. )"
  22. S="${WORKDIR}/${MYP}"
  23. src_configure() {
  24. econf \
  25. --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
  26. --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
  27. }
  28. src_compile() {
  29. emake all $(usex doc docs "")
  30. }
  31. src_install() {
  32. default
  33. use doc && dodoc doc/manual/*.pdf
  34. prune_libtool_files
  35. }