diff options
author | James Le Cuirot <chewi@gentoo.org> | 2016-11-05 20:56:42 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2016-11-05 20:56:42 +0000 |
commit | 5113c5476c9e62ff1676b6d5ead988a06fb60538 (patch) | |
tree | df77922211b8d8a3cfd0411625e6f8c87dcc539d /app-benchmarks/i7z/i7z-93_p20131012.ebuild | |
parent | package.mask: Mask icu for testing (diff) | |
download | gentoo-5113c5476c9e62ff1676b6d5ead988a06fb60538.tar.gz gentoo-5113c5476c9e62ff1676b6d5ead988a06fb60538.tar.bz2 gentoo-5113c5476c9e62ff1676b6d5ead988a06fb60538.zip |
app-benchmarks/i7z: Bump to 93_p20131012, fixes bug #487784
Upstream's versioning has gone a bit weird and I don't really
understand it but it also seems dead so there seems little point in
asking.
Upstream probably didn't intend to support Qt5 but it does work with a
tiny patch against the project file.
The GUI segfault in bug #487784 isn't specific to hardened and only
goes away when you drop all -O* flags. This application is more
power-related than benchmark-related so this isn't a big deal.
Package-Manager: portage-2.3.2
Diffstat (limited to 'app-benchmarks/i7z/i7z-93_p20131012.ebuild')
-rw-r--r-- | app-benchmarks/i7z/i7z-93_p20131012.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/app-benchmarks/i7z/i7z-93_p20131012.ebuild b/app-benchmarks/i7z/i7z-93_p20131012.ebuild new file mode 100644 index 000000000000..7287ec394a46 --- /dev/null +++ b/app-benchmarks/i7z/i7z-93_p20131012.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit flag-o-matic qmake-utils toolchain-funcs + +COMMIT="5023138d7c35c4667c938b853e5ea89737334e92" +DESCRIPTION="A better i7 (and now i3, i5) reporting tool for Linux" +HOMEPAGE="https://github.com/ajaiantilal/i7z" +SRC_URI="https://github.com/ajaiantilal/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="qt4 qt5" + +RDEPEND="sys-libs/ncurses:0= + qt5? ( + dev-qt/qtcore:5= + dev-qt/qtgui:5= + dev-qt/qtwidgets:5= + ) + !qt5? ( qt4? ( + dev-qt/qtcore:4= + dev-qt/qtgui:4= + ) )" + +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/i7z-0.27.2-ncurses.patch + "${FILESDIR}"/qt5.patch +) + +S="${WORKDIR}/${PN}-${COMMIT}" + +src_configure() { + # The GUI segfaults with -O1. None of the documented flags make a + # difference. There may not be a specific flag for the culprit. + filter-flags "-O*" + + tc-export CC + cd GUI || die + + if use qt5; then + eqmake5 ${PN}_GUI.pro + elif use qt4; then + eqmake4 ${PN}_GUI.pro + fi +} + +src_compile() { + default + + if use qt5 || use qt4; then + emake -C GUI clean + emake -C GUI + fi +} + +src_install() { + emake DESTDIR="${ED}" docdir=/usr/share/doc/${PF} install + + if use qt5 || use qt4; then + dosbin GUI/i7z_GUI + fi +} |