diff options
author | 2011-01-29 15:01:20 +0000 | |
---|---|---|
committer | 2011-01-29 15:01:20 +0000 | |
commit | a3b541d29f78023f6a75e8fdcb83016183bca088 (patch) | |
tree | cafb302aba921100ae7b7abebb292804cca59c19 /app-benchmarks/i7z | |
parent | Stabilise latest on x86 and amd64. Drop older. (diff) | |
download | gentoo-2-a3b541d29f78023f6a75e8fdcb83016183bca088.tar.gz gentoo-2-a3b541d29f78023f6a75e8fdcb83016183bca088.tar.bz2 gentoo-2-a3b541d29f78023f6a75e8fdcb83016183bca088.zip |
New package, written by me, fixes #324477
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'app-benchmarks/i7z')
-rw-r--r-- | app-benchmarks/i7z/ChangeLog | 10 | ||||
-rw-r--r-- | app-benchmarks/i7z/files/0.26-gentoo.patch | 56 | ||||
-rw-r--r-- | app-benchmarks/i7z/i7z-0.26.ebuild | 44 | ||||
-rw-r--r-- | app-benchmarks/i7z/metadata.xml | 8 |
4 files changed, 118 insertions, 0 deletions
diff --git a/app-benchmarks/i7z/ChangeLog b/app-benchmarks/i7z/ChangeLog new file mode 100644 index 000000000000..19cb1dfc107d --- /dev/null +++ b/app-benchmarks/i7z/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-benchmarks/i7z +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/i7z/ChangeLog,v 1.1 2011/01/29 15:01:20 jlec Exp $ + +*i7z-0.26 (29 Jan 2011) + + 29 Jan 2011; Justin Lecher <jlec@gentoo.org> +files/0.26-gentoo.patch, + +i7z-0.26.ebuild, +metadata.xml: + New package, written by me, fixes #324477 + diff --git a/app-benchmarks/i7z/files/0.26-gentoo.patch b/app-benchmarks/i7z/files/0.26-gentoo.patch new file mode 100644 index 000000000000..345fe505f80c --- /dev/null +++ b/app-benchmarks/i7z/files/0.26-gentoo.patch @@ -0,0 +1,56 @@ +diff --git a/Makefile b/Makefile +index fc4d262..e2347bf 100644 +--- a/Makefile ++++ b/Makefile +@@ -17,18 +17,18 @@ + + #makefile updated from patch by anestling + +-CFLAGSANY = -g -O0 -fomit-frame-pointer -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILD_MAIN -Wall ++CFLAGS += -O0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILD_MAIN -Wall + + LBITS := $(shell getconf LONG_BIT) + ifeq ($(LBITS),64) +- CFLAGS = $(CFLAGSANY) -Dx64_BIT ++ CFLAGS += -Dx64_BIT + else +- CFLAGS = $(CFLAGSANY) -Dx86 ++ CFLAGS += -Dx86 + endif + +-CC = gcc ++CC ?= gcc + +-LDFLAGS = -lncurses -lpthread ++LIBS = -lncurses -lpthread + INCLUDEFLAGS = + + OBJS = helper_functions +@@ -36,15 +36,15 @@ OBJS = helper_functions + BIN = i7z + SRC = i7z.c helper_functions.c i7z_Single_Socket.c i7z_Dual_Socket.c + +-sbindir = /usr/sbin ++sbindir = $(DESTDIR)/usr/sbin + +-all: clean message bin ++all: clean bin + + message: + @echo "If the compilation complains about not finding ncurses.h, install ncurses (libncurses5-dev on ubuntu/debian)" + + bin: +- $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDEFLAGS) $(SRC) -o $(BIN) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDEFLAGS) $(SRC) -o $(BIN) $(LIBS) + + clean: + rm -f *.o $(BIN) +@@ -52,6 +52,6 @@ clean: + distclean: clean + rm -f *~ \#* + +-install: all +- install -m 755 $(BIN) $(sbindir) ++install: ++ install -D -m 755 $(BIN) $(sbindir)/$(BIN) + diff --git a/app-benchmarks/i7z/i7z-0.26.ebuild b/app-benchmarks/i7z/i7z-0.26.ebuild new file mode 100644 index 000000000000..1cd98179e811 --- /dev/null +++ b/app-benchmarks/i7z/i7z-0.26.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/i7z/i7z-0.26.ebuild,v 1.1 2011/01/29 15:01:20 jlec Exp $ + +EAPI="3" + +inherit eutils qt4-r2 toolchain-funcs + +DESCRIPTION="A better i7 (and now i3, i5) reporting tool for Linux" +HOMEPAGE="http://code.google.com/p/i7z/" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="GPL-2" +IUSE="X" + +RDEPEND=" + sys-libs/ncurses + X? ( x11-libs/qt-gui:4 )" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-gentoo.patch + tc-export CC +} + +src_compile() { + emake || die + if use X; then + cd GUI + eqmake4 GUI.pro + emake || die + fi + +} + +src_install() { + emake DESTDIR="${D}" install || die + if use X; then + newsbin GUI/GUI i7z_GUI || die + fi + dodoc put_cores_o*line.sh MAKEDEV-cpuid-msr || die +} diff --git a/app-benchmarks/i7z/metadata.xml b/app-benchmarks/i7z/metadata.xml new file mode 100644 index 000000000000..9aa75ad4091e --- /dev/null +++ b/app-benchmarks/i7z/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>jlec@gentoo.org</email> +</maintainer> +</pkgmetadata> |