aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schäfer <gentryx@gmx.de>2013-01-29 17:34:10 +0100
committerAndreas Schäfer <gentryx@gmx.de>2013-01-29 17:34:10 +0100
commitdd50b48c6ed4275caa1a1f7cd2235c96c9de7ce2 (patch)
treef4b77ba6ac10f461eb87df2e4eae83664737568d /sys-apps
parentMerge branch 'master' of https://github.com/gentoo-science/sci (diff)
downloadsci-dd50b48c6ed4275caa1a1f7cd2235c96c9de7ce2.tar.gz
sci-dd50b48c6ed4275caa1a1f7cd2235c96c9de7ce2.tar.bz2
sci-dd50b48c6ed4275caa1a1f7cd2235c96c9de7ce2.zip
added likwid ebuild
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/likwid/Manifest4
-rw-r--r--sys-apps/likwid/files/likwid.patch21
-rw-r--r--sys-apps/likwid/files/use_access_daemon.patch27
-rw-r--r--sys-apps/likwid/likwid-3.0.ebuild29
4 files changed, 81 insertions, 0 deletions
diff --git a/sys-apps/likwid/Manifest b/sys-apps/likwid/Manifest
new file mode 100644
index 000000000..93fb1df51
--- /dev/null
+++ b/sys-apps/likwid/Manifest
@@ -0,0 +1,4 @@
+AUX likwid.patch 729 SHA256 3d1cf14a8ce04c13fc36192ecccf13c14dff7849e159049ac24e0629b020647d SHA512 b4042f0ffd74c3c7ca483191a5a9479d7cc3567c76f6b312f50f13560dbc18442fcbf35448d0246a442d73e8ed54e195891cfcffe5386af3a6b5eed9f25912cc WHIRLPOOL cb45e291512a9fbc4c55a4699cce8a5fa2bdba77f9914b8b311a889093a25bed716cd71b3e6c15ddc2392e620f8faa0c1f596064ea9a93ee90268d1d9151896b
+AUX use_access_daemon.patch 1041 SHA256 3a9bc091d6ac2794a1773bac084dc9ca765a54f978d0276144fb295eeefaae4c SHA512 51c0c65d676e0261887490dc052549c42a906f62395e29cc175ed388c538d54dae170bed2871e5e4547d6b6f3103dac73dd29f99d8119454e57c4639be7f5b98 WHIRLPOOL 30c040a8d21db5d993db858e9a416fcb0bbef4df2d14c7d4e11f5252aeb9ddbd1522dfa5264c93af226c43ca40c6abcc9a6e6651295908ca382cf760172f7051
+DIST likwid-3.0.0.tar.gz 458629 SHA256 968ea55497af9971b20295b5290f355e9b4054bcbcfac91bfeaca8c1f5f1b72e SHA512 4227a91822f7e452b5172b2a203d4e9c04327d7d6139ccdf1e7f2f0dcb372dd7e98c9ac2f9b55c768fc1c9e59973d5afbfd038757247b462b9a02038c78b5ab2 WHIRLPOOL 4e270a931b923e44ff2dad94891f4668ee89d95aed3635e81a3a644c40821bf41fec2c6d1d9199eff7a319b9b7d9fb4f88d2f559b797f808bc830a1ffc67bac1
+EBUILD likwid-3.0.ebuild 848 SHA256 9a98ccdb9a71bd8935c33b63d654b0589f78fd6d11928fdf5a805fda2eb5ea8b SHA512 5add3b3b7ce4ef7248ba9a3bd027d38429d811446aaf5df58cc8d6935c7179a3abb0ddef0aa8d78a5be4c899845198c4386d553fb455aca5b4caf94524e29738 WHIRLPOOL 09443dff4756b0b60a44ab9a36fd0362446b2c79924635368218544cb33c84b621c9cd6d57df1af7e8e4d2d187afa6369acf837d71df3873f2f1a8d0f970206c
diff --git a/sys-apps/likwid/files/likwid.patch b/sys-apps/likwid/files/likwid.patch
new file mode 100644
index 000000000..861d13a93
--- /dev/null
+++ b/sys-apps/likwid/files/likwid.patch
@@ -0,0 +1,21 @@
+diff -ur likwid-3.0/config.mk likwid-3.0-nju/config.mk
+--- likwid-3.0/config.mk 2012-11-29 18:16:13.000000000 +0100
++++ likwid-3.0-nju/config.mk 2013-01-29 17:29:20.296321722 +0100
+@@ -10,7 +10,7 @@
+
+ # Path were to install likwid
+ PREFIX = /usr/local#NO SPACE
+-MANPREFIX = $(PREFIX)/man#NO SPACE
++MANPREFIX = $(PREFIX)/share/man#NO SPACE
+
+ # For the daemon based secure msr/pci access configure
+ # the absolute path to the msr daemon executable.
+@@ -31,7 +31,7 @@
+ ENABLE_SNB_UNCORE = false#NO SPACE
+
+ # Change to YES to a build shared library instead of a static one
+-SHARED_LIBRARY = false#NO SPACE
++SHARED_LIBRARY = true#NO SPACE
+
+ # Instrument likwid-bench for use with likwid-perfctr
+ INSTRUMENT_BENCH = false#NO SPACE
diff --git a/sys-apps/likwid/files/use_access_daemon.patch b/sys-apps/likwid/files/use_access_daemon.patch
new file mode 100644
index 000000000..d0724bb6d
--- /dev/null
+++ b/sys-apps/likwid/files/use_access_daemon.patch
@@ -0,0 +1,27 @@
+diff -ur likwid-3.0/config.mk likwid-3.0-new/config.mk
+--- likwid-3.0/config.mk 2012-11-29 18:16:13.000000000 +0100
++++ likwid-3.0-new/config.mk 2013-01-29 09:05:08.406319092 +0100
+@@ -20,12 +20,12 @@
+ SYSDAEMONSOCKETPATH = /var/run/likwid-msrd.sock#NO SPACE
+
+ # Build the accessDaemon. Have a look in the WIKI for details.
+-BUILDDAEMON = false#NO SPACE
++BUILDDAEMON = true#NO SPACE
+
+ # Set the default mode for MSR access.
+ # This can usually be overriden on the commandline.
+ # Valid values are: direct, accessdaemon, sysdaemon
+-ACCESSMODE = direct#NO SPACE
++ACCESSMODE = accessdaemon#NO SPACE
+
+ # Set to true to enable SandyBridge Uncore support
+ ENABLE_SNB_UNCORE = false#NO SPACE
+Nur in likwid-3.0-new: liblikwid.a.
+Nur in likwid-3.0-new: liblikwidpin.so.
+Nur in likwid-3.0-new: likwid-accessD.
+Nur in likwid-3.0-new: likwid-features.
+Nur in likwid-3.0-new: likwid-memsweeper.
+Nur in likwid-3.0-new: likwid-perfctr.
+Nur in likwid-3.0-new: likwid-pin.
+Nur in likwid-3.0-new: likwid-powermeter.
+Nur in likwid-3.0-new: likwid-topology.
diff --git a/sys-apps/likwid/likwid-3.0.ebuild b/sys-apps/likwid/likwid-3.0.ebuild
new file mode 100644
index 000000000..db4aa1908
--- /dev/null
+++ b/sys-apps/likwid/likwid-3.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 2013-2013 Andreas Schäfer
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Likwid stands for Like I knew what I am doing. This project contributes easy to use command line tools for Linux to support programmers in developing high performance multi threaded programs."
+HOMEPAGE="http://code.google.com/p/likwid/"
+SRC_URI="http://likwid.googlecode.com/files/${P}.0.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="access-daemon"
+
+src_prepare() {
+ if use access-daemon ; then
+ epatch "${FILESDIR}/use_access_daemon.patch"
+ fi
+ epatch "${FILESDIR}/likwid.patch"
+ sed -i -e "s:/usr/local:$D/usr:" config.mk || die "Couldn't set prefix!"
+}
+
+src_compile() {
+ emake || die "emake failed"
+ emake likwid-bench || die "emake likwid-bench failed"
+ }