diff options
Diffstat (limited to 'app-benchmarks/libc-bench')
-rw-r--r-- | app-benchmarks/libc-bench/Manifest | 4 | ||||
-rw-r--r-- | app-benchmarks/libc-bench/files/respect-flags.patch | 23 | ||||
-rw-r--r-- | app-benchmarks/libc-bench/libc-bench-20110206.ebuild | 28 | ||||
-rw-r--r-- | app-benchmarks/libc-bench/metadata.xml | 8 |
4 files changed, 63 insertions, 0 deletions
diff --git a/app-benchmarks/libc-bench/Manifest b/app-benchmarks/libc-bench/Manifest new file mode 100644 index 000000000000..627ea5032b8d --- /dev/null +++ b/app-benchmarks/libc-bench/Manifest @@ -0,0 +1,4 @@ +AUX respect-flags.patch 528 BLAKE2B 89e202ce5cf9d3f7c25fa40333df2654c7546c068517367239fb8cbfe573bfa48ae9cdcad6fb98a721f5bef0349524277f6d11c83900d5947168492703cfb7dd SHA512 3f30d849ab7a52c0e16ea1e53e068d6761b782aab65cd47dfe6ba775257f858c2f4e3d3b1db920d45c8904b4973b45f013199adb93c1fb92e79c48bf7b89db09 +DIST libc-bench-20110206.tar.gz 3135 BLAKE2B f8c6b028e080695772f3275667dfc3ea6167eda47506dd32813a4942fc9f213317c0eafe6b08d1fd9a574301b74cf5ef1600cc4b12414245c6c85ca3b02e9013 SHA512 72f68616ab189f39f766c98afbb83bf3470a4e14ccb1dfe139a9006227262197546897da8f360bf48ba2c8854730aa385ca16270ec2e6cf2b531205550726f38 +EBUILD libc-bench-20110206.ebuild 601 BLAKE2B 27e0412fc45e98f47d2a462b13229e90a12b560867fed2f702ab954a415c6bebcbafd78243b9902bc671345dbb8a1b61aee449359e1d92478b529458d4594f86 SHA512 06acb3e505d2c9cd4375d31153d123e3015dd6376b1f9a815a0ea91ecfdbaf3f4b4fdb1ff2ac07c1cbfa3770637ca55f1699a84b11dc4149f1a486a9ff7dbf08 +MISC metadata.xml 252 BLAKE2B f6282e2a99df668246ea8570c72345463f06d282b6adc6d9de2a08ef0827cf4572332c580caa594aad5ba8e200870d8d25494549ee4413798025f0d885b61a68 SHA512 cbda7bf9832872764ae776ce16b2966c37a2ba3a1982d9817006fd6b82d7b17146434cde428bf114062a483e9053d2acdcdd004695e6ebf428d19cdc09937c65 diff --git a/app-benchmarks/libc-bench/files/respect-flags.patch b/app-benchmarks/libc-bench/files/respect-flags.patch new file mode 100644 index 000000000000..19958fd1c91b --- /dev/null +++ b/app-benchmarks/libc-bench/files/respect-flags.patch @@ -0,0 +1,23 @@ +diff -Naur libc-bench-20110206.orig//Makefile libc-bench-20110206/Makefile +--- libc-bench-20110206.orig//Makefile 2011-01-31 02:13:00.000000000 -0500 ++++ libc-bench-20110206/Makefile 2012-08-09 22:12:24.000000000 -0400 +@@ -2,8 +2,7 @@ + SRCS = $(sort $(wildcard *.c)) + OBJS = $(SRCS:.c=.o) + +-CFLAGS = -Os +-LDFLAGS = -static ++LDFLAGS += -static + LIBS = -lpthread -lrt -lpthread + + +@@ -12,9 +11,6 @@ + clean: + rm -f $(OBJS) libc-bench + +-test: all +- ./libc-bench +- + libc-bench: $(OBJS) + $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) + diff --git a/app-benchmarks/libc-bench/libc-bench-20110206.ebuild b/app-benchmarks/libc-bench/libc-bench-20110206.ebuild new file mode 100644 index 000000000000..72efbc992efa --- /dev/null +++ b/app-benchmarks/libc-bench/libc-bench-20110206.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="Time and memory-efficiency tests of various C/POSIX standard library functions" +HOMEPAGE="http://www.etalabs.net/libc-bench.html http://git.musl-libc.org/cgit/libc-bench/" +SRC_URI="http://www.etalabs.net/releases/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/respect-flags.patch +} + +src_configure() { + tc-export CC + CFLAGS+=" ${CPPFLAGS}" +} + +src_install() { + dobin libc-bench +} diff --git a/app-benchmarks/libc-bench/metadata.xml b/app-benchmarks/libc-bench/metadata.xml new file mode 100644 index 000000000000..d920e3ba3e56 --- /dev/null +++ b/app-benchmarks/libc-bench/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> +</pkgmetadata> |