diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-06-02 11:23:45 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-06-02 11:23:45 +0000 |
commit | 8ccc523f18eb5be9129bc353c0e333a30f855123 (patch) | |
tree | d54c05a51a1a548b208d8c21074c5e6479f02003 /app-benchmarks/ramspeed | |
parent | Cleanup due bug #328951 (diff) | |
download | gentoo-2-8ccc523f18eb5be9129bc353c0e333a30f855123.tar.gz gentoo-2-8ccc523f18eb5be9129bc353c0e333a30f855123.tar.bz2 gentoo-2-8ccc523f18eb5be9129bc353c0e333a30f855123.zip |
app-benchmarks/ramspeed: Take package, bump to EAPI=5
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
Diffstat (limited to 'app-benchmarks/ramspeed')
-rw-r--r-- | app-benchmarks/ramspeed/ChangeLog | 8 | ||||
-rw-r--r-- | app-benchmarks/ramspeed/metadata.xml | 15 | ||||
-rw-r--r-- | app-benchmarks/ramspeed/ramspeed-3.5.0-r2.ebuild | 61 |
3 files changed, 75 insertions, 9 deletions
diff --git a/app-benchmarks/ramspeed/ChangeLog b/app-benchmarks/ramspeed/ChangeLog index 0e7bfdc131c3..9689fbb90d7c 100644 --- a/app-benchmarks/ramspeed/ChangeLog +++ b/app-benchmarks/ramspeed/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-benchmarks/ramspeed # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ChangeLog,v 1.10 2013/06/02 10:53:11 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ChangeLog,v 1.11 2013/06/02 11:23:45 jlec Exp $ + +*ramspeed-3.5.0-r2 (02 Jun 2013) + + 02 Jun 2013; Justin Lecher <jlec@gentoo.org> +ramspeed-3.5.0-r2.ebuild, + metadata.xml: + Take package, bump to EAPI=5 02 Jun 2013; Pacho Ramos <pacho@gentoo.org> -ramspeed-3.5.0.ebuild, metadata.xml: diff --git a/app-benchmarks/ramspeed/metadata.xml b/app-benchmarks/ramspeed/metadata.xml index c4697c5602cf..2283e9816ae7 100644 --- a/app-benchmarks/ramspeed/metadata.xml +++ b/app-benchmarks/ramspeed/metadata.xml @@ -1,12 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer> - <email>maintainer-needed@gentoo.org</email> - </maintainer> - <longdescription lang="en"> - </longdescription> - <use> - <flag name='pic'>Force shared libraries to be built as PIC (this is slower)</flag> - </use> + <maintainer> + <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..5c6e003475d4 --- /dev/null +++ b/app-benchmarks/ramspeed/ramspeed-3.5.0-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ramspeed/ramspeed-3.5.0-r2.ebuild,v 1.1 2013/06/02 11:23:45 jlec Exp $ + +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="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 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 +} |