summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-02-20 15:13:41 +0100
committerManuel Rüger <mrueg@gentoo.org>2017-02-20 15:14:11 +0100
commit8a4d919d9b93e327ec0d14b079590a151811ff3c (patch)
tree34f57bbe6ebbbfdfc9c156d03899151da80159e4 /sys-apps/fwts/fwts-17.02.00.ebuild
parentx11-misc/shared-mime-info: keyword ~x64-cygwin (diff)
downloadgentoo-8a4d919d9b93e327ec0d14b079590a151811ff3c.tar.gz
gentoo-8a4d919d9b93e327ec0d14b079590a151811ff3c.tar.bz2
gentoo-8a4d919d9b93e327ec0d14b079590a151811ff3c.zip
sys-apps/fwts: Version bump to 17.02.00
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sys-apps/fwts/fwts-17.02.00.ebuild')
-rw-r--r--sys-apps/fwts/fwts-17.02.00.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/sys-apps/fwts/fwts-17.02.00.ebuild b/sys-apps/fwts/fwts-17.02.00.ebuild
new file mode 100644
index 000000000000..4abf5e8a5a52
--- /dev/null
+++ b/sys-apps/fwts/fwts-17.02.00.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools
+DESCRIPTION="Firmware Test Suite"
+HOMEPAGE="https://wiki.ubuntu.com/Kernel/Reference/fwts"
+SRC_URI="https://launchpad.net/ubuntu/+archive/primary/+files/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND=">=dev-libs/json-c-0.10-r1
+ dev-libs/glib:2
+ dev-libs/libpcre
+ sys-apps/pciutils
+ sys-power/iasl
+ sys-power/pmtools
+ sys-apps/dmidecode"
+DEPEND="${RDEPEND}
+ sys-devel/libtool"
+
+S=${WORKDIR}
+
+src_prepare(){
+ default
+ sed -i -e 's/-Wall -Werror/-Wall/' configure.ac {,src/,src/lib/src/}Makefile.am || die
+ sed -i -e 's:/usr/bin/lspci:'$(type -p lspci)':' src/lib/include/fwts_binpaths.h || die
+
+ # Fix json-c includes
+ sed -e 's/^#include <json\//#include <json-c\//g' -i \
+ configure.ac || die
+ sed -e 's/^#include <json.h>/#include <json-c\/json.h>/' \
+ -i src/lib/include/fwts_json.h \
+ src/utilities/kernelscan.c || die
+ sed -e 's/-ljson/-ljson-c/'\
+ -i src/Makefile.am\
+ src/lib/src/Makefile.am\
+ src/utilities/Makefile.am || die
+
+ eautoreconf
+}