afl-2.35b.ebuild 972 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit multilib toolchain-funcs flag-o-matic
  5. DESCRIPTION="american fuzzy lop - compile-time instrumentation fuzzer"
  6. HOMEPAGE="http://lcamtuf.coredump.cx/afl/"
  7. SRC_URI="http://lcamtuf.coredump.cx/afl/releases/${P}.tgz"
  8. LICENSE="Apache-2.0"
  9. SLOT="0"
  10. KEYWORDS="~amd64"
  11. IUSE=""
  12. DEPEND="sys-devel/gcc:*
  13. sys-devel/clang"
  14. RDEPEND="${DEPEND}"
  15. QA_PREBUILT="/usr/share/afl/testcases/others/elf/small_exec.elf"
  16. src_compile() {
  17. emake CC="$(tc-getCC)" \
  18. PREFIX="/usr" \
  19. HELPER_PATH="/usr/$(get_libdir)/afl" \
  20. DOC_PATH="/usr/share/doc/${PF}"
  21. CC="clang" CXX="clang++" strip-unsupported-flags
  22. cd llvm_mode
  23. emake \
  24. PREFIX="/usr" \
  25. HELPER_PATH="/usr/$(get_libdir)/afl" \
  26. DOC_PATH="/usr/share/doc/${PF}"
  27. }
  28. src_install() {
  29. emake DESTDIR="${D}" \
  30. PREFIX="/usr" \
  31. HELPER_PATH="/usr/$(get_libdir)/afl" \
  32. DOC_PATH="/usr/share/doc/${PF}" \
  33. install
  34. }