recon-1.08.ebuild 964 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit toolchain-funcs
  5. DESCRIPTION="Automated de novo identification of repeat families from genomic sequences"
  6. HOMEPAGE="http://www.repeatmasker.org/RepeatModeler.html"
  7. SRC_URI="http://www.repeatmasker.org/${P^^}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. IUSE="examples"
  11. KEYWORDS="~amd64 ~x86"
  12. RDEPEND="dev-lang/perl"
  13. S=${WORKDIR}/${P^^}
  14. PATCHES=(
  15. "${FILESDIR}"/${PN}-1.08-buffer-overflow.patch
  16. "${FILESDIR}"/${PN}-1.08-perl-shebangs.patch
  17. )
  18. src_prepare() {
  19. default
  20. sed -i "s|$path = \"\";|$path = \"${EPREFIX}/usr/libexec/${PN}\";|" scripts/recon.pl || die
  21. }
  22. src_compile() {
  23. emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" -C src
  24. }
  25. src_install() {
  26. dobin scripts/*
  27. exeinto /usr/libexec/${PN}
  28. doexe src/{edgeredef,eledef,eleredef,famdef,imagespread}
  29. newdoc {00,}README
  30. if use examples; then
  31. insinto /usr/share/${PN}
  32. doins -r Demos
  33. fi
  34. }