diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2010-07-14 14:43:34 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2010-07-14 14:43:34 +0000 |
commit | 74ff706c85848445d776797f846e56d609b77957 (patch) | |
tree | 65da26df859f9a0a7e23aee3484643dd759c2785 | |
parent | Add Alasir license. Required for ramspeed (diff) | |
download | gentoo-2-74ff706c85848445d776797f846e56d609b77957.tar.gz gentoo-2-74ff706c85848445d776797f846e56d609b77957.tar.bz2 gentoo-2-74ff706c85848445d776797f846e56d609b77957.zip |
Moved from sunrise overlay. Fixes bug #304101. Thanks to Dane Smith <smithdanea@gmail.com> for the ebuild. He will proxy-maintain this one
(Portage version: 2.2_rc67/cvs/Linux x86_64)
-rw-r--r-- | app-benchmarks/ramspeed/ChangeLog | 11 | ||||
-rw-r--r-- | app-benchmarks/ramspeed/metadata.xml | 17 | ||||
-rw-r--r-- | app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild | 48 |
3 files changed, 76 insertions, 0 deletions
diff --git a/app-benchmarks/ramspeed/ChangeLog b/app-benchmarks/ramspeed/ChangeLog new file mode 100644 index 000000000000..92b5ff2f9567 --- /dev/null +++ b/app-benchmarks/ramspeed/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-benchmarks/ramspeed +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ChangeLog,v 1.1 2010/07/14 14:43:34 hwoarang Exp $ + +*ramspeed-2.6.0 (14 Jul 2010) + + 14 Jul 2010; Markos Chandras <hwoarang@gentoo.org> +ramspeed-2.6.0.ebuild, + +metadata.xml: + Moved from sunrise overlay. Fixes bug #304101. Thanks to Dane Smith + <smithdanea@gmail.com> for the ebuild. He will proxy-maintain this one + diff --git a/app-benchmarks/ramspeed/metadata.xml b/app-benchmarks/ramspeed/metadata.xml new file mode 100644 index 000000000000..8e8a4fa56963 --- /dev/null +++ b/app-benchmarks/ramspeed/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<email>hwoarang@gentoo.org</email> +<name>Markos Chandras</name> +</maintainer> +<maintainer> +<email>smithdanea@gmail.com</email> +<name>Dane Smith</name> +<description>Proxy maintainer. CC him on bugs</description> +</maintainer> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + diff --git a/app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild b/app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild new file mode 100644 index 000000000000..472ea669a2d9 --- /dev/null +++ b/app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ramspeed-2.6.0.ebuild,v 1.1 2010/07/14 14:43:34 hwoarang Exp $ + +EAPI=2 +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Benchmarking for memory and cache" +HOMEPAGE="http://www.alasir.com/software/ramspeed/" +SRC_URI="http://www.alasir.com/software/${PN}/${P}.tar.gz" + +LICENSE="Alasir" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sse" + +src_prepare(){ + tc-export CC AS +} + +src_configure(){ + local obj + local arch_prefix=./ + + use x86 && arch_prefix=i386/ + use amd64 && arch_prefix=amd64/ + + #fix the stack + append-ldflags -Wl,-z,noexecstack + obj=( ramspeed.o ${arch_prefix}{fltmark,fltmem,intmark,intmem}.o ) + + if use x86; then + obj=( "${obj[@]}" ${arch_prefix}{cpuinfo/cpuinfo_main,cpuinfo/cpuinfo_ext}.o ) + fi + + if use sse; then + use x86 && append-flags "-DLINUX -DI386_ASM" + use amd64 && append-flags "-DLINUX -DAMD64_ASM" + obj=( "${obj[@]}" ${arch_prefix}{mmxmark,mmxmem,ssemark,ssemem}.o ) + fi + + echo "ramspeed: ${obj[@]}" > Makefile || die +} + +src_install(){ + dobin ${PN} || die + dodoc HISTORY README || die +} |