summaryrefslogtreecommitdiff
path: root/app-benchmarks/ramspeed
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-benchmarks/ramspeed
reinit the tree, so we can have metadata
Diffstat (limited to 'app-benchmarks/ramspeed')
-rw-r--r--app-benchmarks/ramspeed/Manifest5
-rw-r--r--app-benchmarks/ramspeed/metadata.xml11
-rw-r--r--app-benchmarks/ramspeed/ramspeed-3.5.0-r2.ebuild60
3 files changed, 76 insertions, 0 deletions
diff --git a/app-benchmarks/ramspeed/Manifest b/app-benchmarks/ramspeed/Manifest
new file mode 100644
index 000000000000..cc78645f99c8
--- /dev/null
+++ b/app-benchmarks/ramspeed/Manifest
@@ -0,0 +1,5 @@
+DIST ramsmp-3.5.0.tar.gz 79481 SHA256 39fb15493fb3c293575746d56f6ab9faaa1d876d8b1f0d8e5a4042d2ace95839 SHA512 175cd2e568e4efdb1225e3c5319950376c4834633dd618324cf4268c762213733ed67ea94b4e5835b0259483e88afd2e9d9a3fde63515b8b25e5ec0b51f16b0e WHIRLPOOL 2e35adb0aa58a2d5ec81d64ab50bcfc3a7c831798aa13c62d80d2bfb907dcb048087047fd68fe9e7ccbd838848235bca5ee44ba6b203ac07c9945a7ea88a7447
+EBUILD ramspeed-3.5.0-r2.ebuild 1343 SHA256 7eb5cc9798fc828bd1a941cdb73a8407035074538968451d3545c6c34672252b SHA512 17da178a4ea32d1b4ebe39762e13dcb252eafbddc7c2f4ee7a5db8d8d28455038d981872636f6b67670a39f87c2bc1da0b981cd36ace22b7ed4a069f08d1574f WHIRLPOOL 9d7c5a435b07dcb0635d1522693b7d1bf02b8599ccc93f8911c5e30689f887cd48e79f4827b872d7a2aa71466847e7e57a4b527fb5e5798dfeaca148ca7f3365
+MISC ChangeLog 2191 SHA256 d65325c0407834f99e8f7c1961e2afb5f03d99474d0fff2f5d5f2b84d39f9110 SHA512 7d0f81d6ccb4e59c8f80cfd5f0bd379903e0eaf0f88916eb6352c6e4074a6c4f95afaabbfe6b80d7246845e9457acbf773a39b8dd861e50a4f1b9b7e97c4b172 WHIRLPOOL 28df2db4b2d6448f90af65b83dd6729691dd117c4c84f9993c863206b3e338a8cd7422d22d0e66223d5114e0585e6396e02e852d6f040ed8b90fe793f418a425
+MISC ChangeLog-2015 2295 SHA256 e9f30af8f1fb36c0a2baa7dbc4c460d0ac507fea2fe09e328dbb7236704ba6c2 SHA512 9588cd78beb44f380498b25e43e146c614e7414d02ebd552aea24aee5228295ddc9b0f23e9ddfd9309f100a151c98c2fe663747f5bb1797f4c1ed0ce18a9546b WHIRLPOOL 6e68acc457ccb61c405a755dc61c81cd25ccbf66bd57abf234c49e3f551c50d091aca3ea5261b0ad2d2bccc81cfceea552ac053e27634f18b2f23bbf5d5adb89
+MISC metadata.xml 354 SHA256 9ae7d31bbec489d95de2b3b760c6f1568ce019647897b926c8191ab6aa6fc708 SHA512 38abbd2b91db1482fb69ccb45150c2f03331e4e4730754c1374a68f0e6b58bdf98a965a802e666473323894c7a91d8aa5a164bc929b3fbcd435163ed9c3d2306 WHIRLPOOL 56533c05cd220fec7d7c9dd356e6280fddbb4b80867ba84fe3b8056f3e3f81046de2b372b8f7e2a3593e1ae6e2928f9eec73e90697a37adf0df5c6a3a9dace58
diff --git a/app-benchmarks/ramspeed/metadata.xml b/app-benchmarks/ramspeed/metadata.xml
new file mode 100644
index 000000000000..d84a11e08048
--- /dev/null
+++ b/app-benchmarks/ramspeed/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jlec@gentoo.org</email>
+ <name>Justin Lecher</name>
+ </maintainer>
+ <use>
+ <flag name="pic">Force shared libraries to be built as PIC (this is slower)</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-benchmarks/ramspeed/ramspeed-3.5.0-r2.ebuild b/app-benchmarks/ramspeed/ramspeed-3.5.0-r2.ebuild
new file mode 100644
index 000000000000..cf2ff261ad0b
--- /dev/null
+++ b/app-benchmarks/ramspeed/ramspeed-3.5.0-r2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit flag-o-matic toolchain-funcs
+
+MY_PN="ramsmp"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Benchmarking for memory and cache"
+HOMEPAGE="http://www.alasir.com/software/ramspeed/"
+SRC_URI="http://www.alasir.com/software/${PN}/${MY_P}.tar.gz"
+
+LICENSE="Alasir"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cpu_flags_x86_sse pic"
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure(){
+ local obj
+ local arch_prefix=./
+
+ use x86 && arch_prefix=i386/
+ use amd64 && arch_prefix=amd64/
+
+ tc-export CC AS
+
+ #fix the stack
+ append-ldflags -Wl,-z,noexecstack
+ obj=( ramsmp.o ${arch_prefix}{fltmark,fltmem,intmark,intmem}.o )
+
+ use pic && append-ldflags -nopie
+
+ if use amd64; then
+ sed -i \
+ -e 's/call.*free/call\tfree@PLT/' \
+ -e 's/call.*gettimeofday/call\tgettimeofday@PLT/' \
+ -e 's/call.*malloc/call\tmalloc@PLT/' \
+ ${arch_prefix}/*.s || die
+ fi
+
+ use x86 && obj+=( ${arch_prefix}{cpuinfo/cpuinfo_main,cpuinfo/cpuinfo_ext}.o )
+
+ if use cpu_flags_x86_sse; then
+ use x86 && append-flags "-DLINUX -DI386_ASM"
+ use amd64 && append-flags "-DLINUX -DAMD64_ASM"
+ obj+=( ${arch_prefix}{mmxmark,mmxmem,ssemark,ssemem}.o )
+ fi
+
+ echo "ramsmp: ${obj[@]}" > Makefile
+}
+
+src_install(){
+ dobin ramsmp
+ dosym ramsmp /usr/bin/ramspeed
+ dodoc HISTORY README
+}