Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ebuilds for HPX, Likwid, and LibGeoDecomp #49

Merged
merged 39 commits into from
Feb 10, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c06b3f0
added ebuild for HPX
gentryx Jan 21, 2013
67f0899
cleaning ebuild
gentryx Jan 21, 2013
7333966
cosmetics
gentryx Jan 22, 2013
d71bd13
added LibGeoDecomp ebuild which tracks the trunk on Bitbucket
gentryx Jan 22, 2013
d3e3aa1
added ebuild for libgeodecomp 0.1.0
gentryx Jan 22, 2013
cceb215
added missing manifest
gentryx Jan 22, 2013
2060edb
Merge remote-tracking branch 'upstream/master'
gentryx Jan 28, 2013
a94778a
fixed copyright note
gentryx Jan 29, 2013
1197c0e
Merge branch 'master' of https://github.com/gentoo-science/sci
gentryx Jan 29, 2013
dd50b48
added likwid ebuild
gentryx Jan 29, 2013
4fe332f
fixed compilation with newer cmake, removed currently unused use flags
gentryx Jan 29, 2013
034fd44
don't hardcode absolute patch for access daemon
gentryx Jan 30, 2013
98eb3db
access-daemon needs a full path, thus we're hardcoding /usr to shut i…
gentryx Jan 30, 2013
f7b5008
set SUID bit for access daemon
gentryx Jan 30, 2013
d1cf8c6
fixed path
gentryx Jan 30, 2013
f07de52
Merge branch 'master' of https://github.com/gentoo-science/sci
gentryx Feb 3, 2013
37503e2
Merge branch 'master' of https://github.com/gentoo-science/sci
gentryx Feb 7, 2013
5d40c4e
Merge ../sci.bitbucket
gentryx Feb 7, 2013
6ce22ac
resolved various warnings reported by repoman for LibGeoDecomp and HP…
gentryx Feb 7, 2013
3ed5eed
adapted coding style to appease repoman
gentryx Feb 8, 2013
08b0c78
using new EAPI and skipping superfluous die
gentryx Feb 8, 2013
b8d33cc
added missing metadata.xml
gentryx Feb 8, 2013
f0c0be7
updated EAPI, dropped versionator eclass, added shortcut for package …
gentryx Feb 8, 2013
6e0f343
fixed indenting, descriptions and updated to EAPI 5
gentryx Feb 8, 2013
9d9f920
updated Manifest
gentryx Feb 8, 2013
e459ae1
added proper quotes for variables, use fperms in favor of chmod
gentryx Feb 8, 2013
708667b
Merge branch 'master' of https://github.com/gentoo-science/sci
gentryx Feb 8, 2013
a44f8a3
Merge ../sci.bitbucket
gentryx Feb 8, 2013
9a3e4ad
added linebreaks where necessary
gentryx Feb 8, 2013
a06a599
minor improvements
gentryx Feb 8, 2013
98071cf
dropped superfluous vcs-snapshot eclass and functions equivalent to d…
gentryx Feb 8, 2013
14f4b14
Merge /usr/local/portage/andis_overlay
gentryx Feb 8, 2013
f7dee1f
adapting to standard order of definitions, dropped some default-equiv…
gentryx Feb 9, 2013
cb83fed
Merge /usr/local/portage/andis_overlay
gentryx Feb 9, 2013
2536f8e
reverted to calling cutils eclass functions
gentryx Feb 10, 2013
c70c4ce
Merge /usr/local/portage/andis_overlay
gentryx Feb 10, 2013
c015486
Merge branch 'master' of https://github.com/gentoo-science/sci
gentryx Feb 10, 2013
28b6f34
moved fperms to correct ebuild phase
gentryx Feb 10, 2013
5897985
Merge /usr/local/portage/andis_overlay
gentryx Feb 10, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions sci-libs/libgeodecomp/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST libgeodecomp-0.1.0.tar.bz2 581136 SHA256 71442a60e7cc5c3f38e462d5d52010a948bd089759487687f217e4dec4dffae5 SHA512 56de4e6bfc92f8dda4d4931559a553a7a2c847205637394ea87f73dfb5a34776cb043beba2857bbe07c52a61ed457f22b7d76e4e23c183c8bd25868d36df4704 WHIRLPOOL df2b5c6830dbc92befd873bdced1712687046a43e814f7676271a2041a58c9e2562a86c6b4034343499f813136f38e298b33fa9a67911b726f42f323f666b03e
17 changes: 17 additions & 0 deletions sci-libs/libgeodecomp/files/cmake.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff -ru libgeodecomp-0.1.0/src/util.cmake libgeodecomp-0.1.0-nju/src/util.cmake
--- libgeodecomp-0.1.0/src/util.cmake 2012-06-27 12:26:46.000000000 +0200
+++ libgeodecomp-0.1.0-nju/src/util.cmake 2013-01-29 20:52:43.306376967 +0100
@@ -54,11 +54,11 @@
endforeach(i)

if(STRIPPED_SOURCES)
- list(SORT STRIPPED_SOURCES ${STRIPPED_SOURCES})
+ list(SORT STRIPPED_SOURCES)
endif(STRIPPED_SOURCES)

if(STRIPPED_HEADERS)
- list(SORT STRIPPED_HEADERS ${STRIPPED_HEADERS})
+ list(SORT STRIPPED_HEADERS)
endif(STRIPPED_HEADERS)

set(MY_AUTO "set(SOURCES \${SOURCES}\n")
26 changes: 26 additions & 0 deletions sci-libs/libgeodecomp/libgeodecomp-0.1.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2013-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit cmake-utils

DESCRIPTION="An auto-parallelizing library to speed up computer simulations"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please move this up and follow following sorting:

EAPI

inherit

DESCRIPTION
HOMPAGE
SRC_URI

SLOT
LICENSE
KEYWORDS
IUSE

HOMEPAGE="http://www.libgeodecomp.org"
SRC_URI="http://www.libgeodecomp.org/archive/${P}.tar.bz2"

SLOT="0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add an empty IUSE here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

LICENSE="LGPL-3"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

RDEPEND=">=dev-libs/boost-1.48"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${P}/src"
PATCHES=( "${FILESDIR}/cmake.patch" )

src_test() {
cmake-utils_src_make test
}
45 changes: 45 additions & 0 deletions sci-libs/libgeodecomp/libgeodecomp-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright 2013-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

if [ ${PV} == "9999" ] ; then
_SCM=mercurial
EHG_REPO_URI="http://bitbucket.org/gentryx/libgeodecomp"
SRC_URI=""
KEYWORDS=""
CMAKE_USE_DIR="${S}/src"
else
SRC_URI="http://www.libgeodecomp.org/archive/${P}.tar.bz2"
KEYWORDS="~amd64 ~ppc ~x86"
S="${WORKDIR}/${P}/src"
fi

inherit cmake-utils ${_SCM}

DESCRIPTION="An auto-parallelizing library to speed up computer simulations"
HOMEPAGE="http://www.libgeodecomp.org"

SLOT="0"
LICENSE="LGPL-3"
IUSE="doc"

RDEPEND=">=dev-libs/boost-1.48"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"

src_compile() {
cmake-utils_src_compile
use doc && cmake-utils_src_make doc
}

src_install() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More elegant would me this:
src_install() {
DOCS=( README )
use doc && HTML_DOCS=( doc/html/* )
cmake-utils_src_install
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is so much automagic built in into portage... Good stuff!

DOCS=( README )
use doc && HTML_DOCS=( doc/html/* )
cmake-utils_src_install
}

src_test() {
cmake-utils_src_make test
}
11 changes: 11 additions & 0 deletions sci-libs/libgeodecomp/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cluster</herd>
<longdescription>
LibGeoDecomp is an auto-parallelizing library to speed up stencil
code based computer simulations. It runs on virtually all current
architectures, be it multi-cores, GPUs, or large scale MPI
clusters.
</longdescription>
</pkgmetadata>
1 change: 1 addition & 0 deletions sys-apps/likwid/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST likwid-3.0.0.tar.gz 458629 SHA256 968ea55497af9971b20295b5290f355e9b4054bcbcfac91bfeaca8c1f5f1b72e SHA512 4227a91822f7e452b5172b2a203d4e9c04327d7d6139ccdf1e7f2f0dcb372dd7e98c9ac2f9b55c768fc1c9e59973d5afbfd038757247b462b9a02038c78b5ab2 WHIRLPOOL 4e270a931b923e44ff2dad94891f4668ee89d95aed3635e81a3a644c40821bf41fec2c6d1d9199eff7a319b9b7d9fb4f88d2f559b797f808bc830a1ffc67bac1
27 changes: 27 additions & 0 deletions sys-apps/likwid/files/likwid.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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-30 15:32:47.896140004 +0100
@@ -10,12 +10,12 @@

# 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.
# $(PREFIX)/bin/likwid-accessD
-ACCESSDAEMON = $(PREFIX)/bin/likwid-accessD#NO SPACE
+ACCESSDAEMON = /usr/bin/likwid-accessD#NO SPACE
# Path to the msrd-socket in system daemon mode.
SYSDAEMONSOCKETPATH = /var/run/likwid-msrd.sock#NO SPACE

@@ -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
27 changes: 27 additions & 0 deletions sys-apps/likwid/files/use_access_daemon.patch
Original file line number Diff line number Diff line change
@@ -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.
32 changes: 32 additions & 0 deletions sys-apps/likwid/likwid-3.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2013-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit eutils

DESCRIPTION="Command line tools for developing high performance multi threaded programs"
HOMEPAGE="http://code.google.com/p/likwid/"
SRC_URI="http://likwid.googlecode.com/files/${P}.0.tar.gz"

SLOT="0"
LICENSE="GPL-3"
KEYWORDS="~amd64"
IUSE="+access-daemon"

src_prepare() {
use access-daemon && epatch "${FILESDIR}/use_access_daemon.patch"
epatch "${FILESDIR}/likwid.patch"
sed -i -e "s:/usr/local:${D}/usr:" config.mk || die "Couldn't set prefix!"
}

src_compile() {
default
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it is correct, because you don't use any phase functions from eclasses.

emake likwid-bench
}

src_install() {
default
use access-daemon && fperms 4755 /usr/bin/likwid-accessD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to src_install instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That doesn't work as fperms would give me a error about not being able to access /var/tmp/portage/sys-apps/likwid-3.0/image//usr/bin/likwid-accessD

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if you do
src_install() {
default
use access-daemon && fperms 4755 /usr/bin/likwid-accessD
}
?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that works!

}
16 changes: 16 additions & 0 deletions sys-apps/likwid/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cluster</herd>
<longdescription>
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.
</longdescription>
<use>
<flag name="access-daemon">
Build access-daemon for secure access to /dev/cpu/*/msr.
</flag>
</use>
</pkgmetadata>
1 change: 1 addition & 0 deletions sys-cluster/hpx/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST hpx_0.9.5.tar.gz 3801863 SHA256 4e9f71b70d005104142157969f5ab3a980e2594279a2fb5f79a48bf77a8bc6aa SHA512 b156935061130bd87ababc4693b936687a4098eae305b55fce3c1fa7e0aef13b24f396045b8b392131c9eb973e67a1c1e665ae192a4b6350b5d3802dae9231a7 WHIRLPOOL 41a3e28be66578f0f665470847b38e2c6e5c573cb2ada7fbb49fe07c51b9bb15b761e811299560b2f4ed2e386bff5d42c6748c1c58fe430f4d8bed1376588c2a
28 changes: 28 additions & 0 deletions sys-cluster/hpx/hpx-0.9.5.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2013-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit cmake-utils

MY_P="${PN}_${PV}"

DESCRIPTION="A general C++ runtime system for parallel and distributed applications of any scale"
HOMEPAGE="http://stellar.cct.lsu.edu/tag/hpx/"
SRC_URI="http://stellar.cct.lsu.edu/files/${MY_P}.tar.gz"

SLOT="0"
LICENSE="Boost-1.0"
KEYWORDS="~amd64"
IUSE=""

DEPEND=">=dev-libs/boost-1.48"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

src_configure() {
CMAKE_BUILD_TYPE=Release
cmake-utils_src_configure
}
14 changes: 14 additions & 0 deletions sys-cluster/hpx/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>cluster</herd>
<longdescription>
HPX (High Performance ParalleX) is a general C++ runtime system
for parallel and distributed applications of any scale. It is the
first freely available, open source, feature-complete, modular,
and performance oriented implementation of the ParalleX execution
model. HPX is targeted at conventional architectures and,
currently, Linux based systems, such as SMP nodes and conventional
clusters.
</longdescription>
</pkgmetadata>