aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2012-04-22 01:48:27 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2012-04-22 01:48:27 +0200
commitdcd1ec86eab82c7345e9af5011dc641697b4ad7d (patch)
tree1b5e75945b8117fe5f670090173ddac556c7dd38 /sys-cluster/ovis
parent[app-benchmarks/numbench] Version bump. (diff)
downloadsci-dcd1ec86eab82c7345e9af5011dc641697b4ad7d.tar.gz
sci-dcd1ec86eab82c7345e9af5011dc641697b4ad7d.tar.bz2
sci-dcd1ec86eab82c7345e9af5011dc641697b4ad7d.zip
[sys-cluster/ovis] Initial ebuild.
Diffstat (limited to 'sys-cluster/ovis')
-rw-r--r--sys-cluster/ovis/ChangeLog10
-rw-r--r--sys-cluster/ovis/Manifest1
-rw-r--r--sys-cluster/ovis/files/ovis-directories.patch96
-rw-r--r--sys-cluster/ovis/metadata.xml14
-rw-r--r--sys-cluster/ovis/ovis-3.0.1.ebuild63
5 files changed, 184 insertions, 0 deletions
diff --git a/sys-cluster/ovis/ChangeLog b/sys-cluster/ovis/ChangeLog
new file mode 100644
index 000000000..5b0957086
--- /dev/null
+++ b/sys-cluster/ovis/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-cluster/ovis
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*ovis-3.0.1 (22 Apr 2012)
+
+ 22 Apr 2012; Andrea Arteaga <andyspiros@gmail.com>
+ +ovis-3.0.1.ebuild +metadata.xml +files/ovis-directories.patch:
+ Initial ebuild
+
diff --git a/sys-cluster/ovis/Manifest b/sys-cluster/ovis/Manifest
new file mode 100644
index 000000000..5f2d054e9
--- /dev/null
+++ b/sys-cluster/ovis/Manifest
@@ -0,0 +1 @@
+DIST OVIS-3.0.1.tar.gz 24153333 SHA256 8755b40894e540dd4edc47bdad5d5c44f544db8a8e78f83ca9576f733067c62b SHA512 f6a2fbb1d946d20ee41e2eee93441ea69e514909c0a94d38e544a34596f59026745829d05b85bfd196da88651d1bbfd0f04958f6ceaad2061aee57793fe65598 WHIRLPOOL 48116ba4bacebbd3ac0182ca4c2cb8cced874e8a3d19b4a798d9000f75c8e2dfd597147c5cc6e43ebcaa8e6b9190016d7e4b2e27e734a0429376341dd0a3d364
diff --git a/sys-cluster/ovis/files/ovis-directories.patch b/sys-cluster/ovis/files/ovis-directories.patch
new file mode 100644
index 000000000..4374048e1
--- /dev/null
+++ b/sys-cluster/ovis/files/ovis-directories.patch
@@ -0,0 +1,96 @@
+diff -uNr original//CMakeLists.txt patched//CMakeLists.txt
+--- original//CMakeLists.txt 2010-11-22 20:52:47.000000000 +0100
++++ patched//CMakeLists.txt 2012-04-21 22:51:48.819917913 +0200
+@@ -37,8 +37,13 @@
+ #-----------------------------------------------------------------------------
+ # Set install locations.
+
++if ( OVIS_INSTALL_INCLUDE_DIR )
++ set( ovis_install_inc_suffix ${OVIS_INSTALL_INCLUDE_DIR} )
++else ( OVIS_INSTALL_INCLUDE_DIR )
++ set( ovis_install_inc_suffix include )
++endif ( OVIS_INSTALL_INCLUDE_DIR )
++
+ set( ovis_install_bin_suffix bin )
+-set( ovis_install_inc_suffix include )
+ set( ovis_install_bin_dir ${CMAKE_INSTALL_PREFIX}/${ovis_install_bin_suffix} )
+ set( ovis_install_inc_dir ${CMAKE_INSTALL_PREFIX}/${ovis_install_inc_suffix} )
+
+@@ -48,15 +53,21 @@
+ CHECK_TYPE_SIZE( "void*" CMAKE_SIZEOF_VOID_P BUILTIN_TYPES_ONLY )
+ endif ( NOT CMAKE_SIZEOF_VOID_P )
+ message( STATUS "Pointers are ${CMAKE_SIZEOF_VOID_P} bytes" )
+-if ( CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Solaris" OR CMAKE_SYSTEM_NAME MATCHES "Irix" )
+- if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
+- set( ovis_install_lib_suffix lib64 )
+- else ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
++
++if ( NOT OVIS_INSTALL_LIB_DIR )
++ if ( CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Solaris" OR CMAKE_SYSTEM_NAME MATCHES "Irix" )
++ if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
++ set( ovis_install_lib_suffix lib64 )
++ else ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
++ set( ovis_install_lib_suffix lib )
++ endif ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
++ else ( CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Solaris" OR CMAKE_SYSTEM_NAME MATCHES "Irix" )
+ set( ovis_install_lib_suffix lib )
+- endif ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
+-else ( CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Solaris" OR CMAKE_SYSTEM_NAME MATCHES "Irix" )
+- set( ovis_install_lib_suffix lib )
+-endif ( CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Solaris" OR CMAKE_SYSTEM_NAME MATCHES "Irix" )
++ endif ( CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Solaris" OR CMAKE_SYSTEM_NAME MATCHES "Irix" )
++else ( NOT OVIS_INSTALL_LIB_DIR )
++ set( ovis_install_lib_suffix ${OVIS_INSTALL_LIB_DIR} )
++endif ( NOT OVIS_INSTALL_LIB_DIR )
++
+ set( ovis_install_lib_dir ${CMAKE_INSTALL_PREFIX}/${ovis_install_lib_suffix} )
+
+ #-----------------------------------------------------------------------------
+diff -uNr original//util/alglib/CMakeLists.txt patched//util/alglib/CMakeLists.txt
+--- original//util/alglib/CMakeLists.txt 2010-11-22 20:52:49.000000000 +0100
++++ patched//util/alglib/CMakeLists.txt 2012-04-22 01:29:33.059752714 +0200
+@@ -48,11 +48,7 @@
+ set( alglib_install_bin_dir ${CMAKE_INSTALL_PREFIX}/bin )
+ endif ( VTK_INSTALL_BIN_DIR_CM24 )
+
+-if ( VTK_INSTALL_LIB_DIR_CM24 )
+- set( alglib_install_lib_dir ${VTK_INSTALL_LIB_DIR_CM24} )
+-else ( VTK_INSTALL_LIB_DIR_CM24 )
+- set( alglib_install_lib_dir ${CMAKE_INSTALL_PREFIX}/lib )
+-endif ( VTK_INSTALL_LIB_DIR_CM24 )
++set( alglib_install_lib_dir ${ovis_install_lib_suffix} )
+
+ if ( VTK_INSTALL_INCLUDE_DIR_CM24 )
+ set( alglib_install_inc_dir ${VTK_INSTALL_INCLUDE_DIR_CM24} )
+diff -uNr original//util/CMakeLists.txt patched//util/CMakeLists.txt
+--- original//util/CMakeLists.txt 2010-11-22 20:52:47.000000000 +0100
++++ patched//util/CMakeLists.txt 2012-04-21 23:10:41.389898144 +0200
+@@ -65,9 +65,9 @@
+ # Send VTK executables to the ParaView LIBRARY directory (not a mistake).
+ # Send VTK include files to the ParaView include directory
+ # Send VTK libraries to the ParaView library directory.
+-set(VTK_INSTALL_BIN_DIR "/${ovis_install_bin_suffix}")
+-set(VTK_INSTALL_INCLUDE_DIR "/${ovis_install_inc_suffix}")
+-set(VTK_INSTALL_LIB_DIR "/${ovis_install_lib_suffix}")
++set(VTK_INSTALL_BIN_DIR "${ovis_install_bin_suffix}")
++set(VTK_INSTALL_INCLUDE_DIR "${ovis_install_inc_suffix}/vtk")
++set(VTK_INSTALL_LIB_DIR "${ovis_install_lib_suffix}/vtk")
+ set(VTK_INSTALL_PACKAGE_DIR "/${ovis_install_lib_suffix}")
+ ## VTK and KWCommon should install only the components paraview does.
+ #set(VTK_INSTALL_NO_DOCUMENTATION 1)
+diff -uNr original//util/kiss_fft/CMakeLists.txt patched//util/kiss_fft/CMakeLists.txt
+--- original//util/kiss_fft/CMakeLists.txt 2010-11-22 20:52:49.000000000 +0100
++++ patched//util/kiss_fft/CMakeLists.txt 2012-04-22 01:29:39.189752607 +0200
+@@ -35,11 +35,7 @@
+ set( kiss_fft_install_bin_dir ${CMAKE_INSTALL_PREFIX}/bin )
+ endif ( VTK_INSTALL_BIN_DIR_CM24 )
+
+-if ( VTK_INSTALL_LIB_DIR_CM24 )
+- set( kiss_fft_install_lib_dir ${VTK_INSTALL_LIB_DIR_CM24} )
+-else ( VTK_INSTALL_LIB_DIR_CM24 )
+- set( kiss_fft_install_lib_dir ${CMAKE_INSTALL_PREFIX}/lib )
+-endif ( VTK_INSTALL_LIB_DIR_CM24 )
++set( kiss_fft_install_lib_dir ${ovis_install_lib_suffix} )
+
+ if ( VTK_INSTALL_INCLUDE_DIR_CM24 )
+ set( kiss_fft_install_inc_dir ${VTK_INSTALL_INCLUDE_DIR_CM24} )
diff --git a/sys-cluster/ovis/metadata.xml b/sys-cluster/ovis/metadata.xml
new file mode 100644
index 000000000..7f24e7dd7
--- /dev/null
+++ b/sys-cluster/ovis/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>andyspiros@gmail.com</email>
+ </maintainer>
+ <longdescription lang="en">
+ The OVIS project addresses scalable, real-time statistical analysis of
+ very large data sets. It contains tools for intelligent, real-time
+ monitoring of large computational clusters and lossless, deterministic
+ log message clustering.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-cluster/ovis/ovis-3.0.1.ebuild b/sys-cluster/ovis/ovis-3.0.1.ebuild
new file mode 100644
index 000000000..0e1d948cd
--- /dev/null
+++ b/sys-cluster/ovis/ovis-3.0.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+inherit cmake-utils
+
+DESCRIPTION="Tool for statistical analysis of large data sets"
+HOMEPAGE="http://ovis.ca.sandia.gov"
+SRC_URI="http://ovis.ca.sandia.gov/mediawiki/downloads/OVIS-${PV}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="BSD"
+SLOT="0"
+
+IUSE="avahi"
+
+RDEPEND=">=x11-libs/qt-gui-4.7.4
+ >=x11-libs/qt-assistant-4.7.4[compat]
+ >=dev-libs/qjson-0.7.1
+ >=dev-libs/boost-1.44
+ avahi? ( >=net-dns/avahi-0.6.27 )
+ >=dev-db/mysql-5.0.77
+ dev-libs/libevent
+ sys-libs/readline"
+
+DEPEND="${RDEPEND}
+ >=net-dns/avahi-0.6.27"
+
+S="${WORKDIR}/OVIS-${PV}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-directories.patch
+}
+
+src_configure() {
+ CMAKE_BUILD_TYPE="Release"
+ mycmakeargs=(
+ -D OVIS_USE_MYSQL=ON
+ $(cmake-utils_use avahi OVIS_USE_AVAHI)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ echo "LDPATH=\"/usr/$(get_libdir)/vtk\"" > "${DISTDIR}/etc/env.d/91ovis"
+}
+
+pkg_postinst() {
+ elog "Ovis requires a MySQL database and all privileges on it"
+ elog "in order to work. To do so, start the mysql client with:"
+ elog " mysql -u root -p"
+ elog " "
+ elog "and perform the following operations:"
+ elog " CREATE DATABASE OVIS_Cluster;"
+ elog " GRANT ALL PRIVILEGES ON OVIS_Cluster.* TO ovis@localhost;"
+ elog " flush-privileges;"
+ elog " "
+ einfo "Remember to start the mysql server before using Ovis!"
+}