fwts-17.02.00.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit autotools
  5. DESCRIPTION="Firmware Test Suite"
  6. HOMEPAGE="https://wiki.ubuntu.com/Kernel/Reference/fwts"
  7. SRC_URI="https://launchpad.net/ubuntu/+archive/primary/+files/${PN}_${PV}.orig.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64"
  11. IUSE=""
  12. RDEPEND=">=dev-libs/json-c-0.10-r1
  13. dev-libs/glib:2
  14. dev-libs/libpcre
  15. sys-apps/pciutils
  16. sys-power/iasl
  17. sys-power/pmtools
  18. sys-apps/dmidecode"
  19. DEPEND="${RDEPEND}
  20. sys-devel/libtool"
  21. S=${WORKDIR}
  22. src_prepare(){
  23. default
  24. sed -i -e 's/-Wall -Werror/-Wall/' configure.ac {,src/,src/lib/src/}Makefile.am || die
  25. sed -i -e 's:/usr/bin/lspci:'$(type -p lspci)':' src/lib/include/fwts_binpaths.h || die
  26. # Fix json-c includes
  27. sed -e 's/^#include <json\//#include <json-c\//g' -i \
  28. configure.ac || die
  29. sed -e 's/^#include <json.h>/#include <json-c\/json.h>/' \
  30. -i src/lib/include/fwts_json.h \
  31. src/utilities/kernelscan.c || die
  32. sed -e 's/-ljson/-ljson-c/'\
  33. -i src/Makefile.am\
  34. src/lib/src/Makefile.am\
  35. src/utilities/Makefile.am || die
  36. eautoreconf
  37. }