From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SLk7Y-0004g7-K9 for garchives@archives.gentoo.org; Sat, 21 Apr 2012 23:53:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BF43E0941; Sat, 21 Apr 2012 23:53:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2EB3BE0941 for ; Sat, 21 Apr 2012 23:53:32 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48A5A1B408B for ; Sat, 21 Apr 2012 23:53:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2EA99E5403 for ; Sat, 21 Apr 2012 23:53:29 +0000 (UTC) From: "Andrea Arteaga" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrea Arteaga" Message-ID: <1335052107.dcd1ec86eab82c7345e9af5011dc641697b4ad7d.spiros@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/ovis/files/, sys-cluster/ovis/ X-VCS-Repository: proj/sci X-VCS-Files: sys-cluster/ovis/ChangeLog sys-cluster/ovis/files/ovis-directories.patch sys-cluster/ovis/metadata.xml sys-cluster/ovis/ovis-3.0.1.ebuild X-VCS-Directories: sys-cluster/ovis/files/ sys-cluster/ovis/ X-VCS-Committer: spiros X-VCS-Committer-Name: Andrea Arteaga X-VCS-Revision: dcd1ec86eab82c7345e9af5011dc641697b4ad7d X-VCS-Branch: master Date: Sat, 21 Apr 2012 23:53:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6f25741c-07d2-4b39-8ccb-99fb62127a37 X-Archives-Hash: 60042cabba4f706772474293ed869a75 commit: dcd1ec86eab82c7345e9af5011dc641697b4ad7d Author: Andrea Arteaga gmail com> AuthorDate: Sat Apr 21 23:48:27 2012 +0000 Commit: Andrea Arteaga gmail com> CommitDate: Sat Apr 21 23:48:27 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3Ddcd1ec86 [sys-cluster/ovis] Initial ebuild. --- sys-cluster/ovis/ChangeLog | 10 +++ sys-cluster/ovis/files/ovis-directories.patch | 96 +++++++++++++++++++= ++++++ sys-cluster/ovis/metadata.xml | 14 ++++ sys-cluster/ovis/ovis-3.0.1.ebuild | 63 ++++++++++++++++ 4 files changed, 183 insertions(+), 0 deletions(-) diff --git a/sys-cluster/ovis/ChangeLog b/sys-cluster/ovis/ChangeLog new file mode 100644 index 0000000..5b09570 --- /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 + +ovis-3.0.1.ebuild +metadata.xml +files/ovis-directories.patch: + Initial ebuild + diff --git a/sys-cluster/ovis/files/ovis-directories.patch b/sys-cluster/= ovis/files/ovis-directories.patch new file mode 100644 index 0000000..4374048 --- /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. +=20 ++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_su= ffix} ) + set( ovis_install_inc_dir ${CMAKE_INSTALL_PREFIX}/${ovis_install_inc_su= ffix} ) +=20 +@@ -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 "So= laris" 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 MATCHE= S "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_su= ffix} ) +=20 + #----------------------------------------------------------------------= ------- +diff -uNr original//util/alglib/CMakeLists.txt patched//util/alglib/CMak= eLists.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 +0= 200 +@@ -48,11 +48,7 @@ + set( alglib_install_bin_dir ${CMAKE_INSTALL_PREFIX}/bin ) + endif ( VTK_INSTALL_BIN_DIR_CM24 ) +=20 +-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} ) +=20 + 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 ) +=20 +-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} ) +=20 + 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.xm= l new file mode 100644 index 0000000..7f24e7d --- /dev/null +++ b/sys-cluster/ovis/metadata.xml @@ -0,0 +1,14 @@ + + + + sci + + andyspiros@gmail.com + + + 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. + + 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 0000000..0e1d948 --- /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=3D"2" +inherit cmake-utils + +DESCRIPTION=3D"Tool for statistical analysis of large data sets" +HOMEPAGE=3D"http://ovis.ca.sandia.gov" +SRC_URI=3D"http://ovis.ca.sandia.gov/mediawiki/downloads/OVIS-${PV}.tar.= gz" + +KEYWORDS=3D"~amd64 ~x86" + +LICENSE=3D"BSD" +SLOT=3D"0" + +IUSE=3D"avahi" + +RDEPEND=3D">=3Dx11-libs/qt-gui-4.7.4 + >=3Dx11-libs/qt-assistant-4.7.4[compat] + >=3Ddev-libs/qjson-0.7.1 + >=3Ddev-libs/boost-1.44 + avahi? ( >=3Dnet-dns/avahi-0.6.27 ) + >=3Ddev-db/mysql-5.0.77 + dev-libs/libevent + sys-libs/readline" + =20 +DEPEND=3D"${RDEPEND} + >=3Dnet-dns/avahi-0.6.27" + +S=3D"${WORKDIR}/OVIS-${PV}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-directories.patch +} + +src_configure() { + CMAKE_BUILD_TYPE=3D"Release" + mycmakeargs=3D( + -D OVIS_USE_MYSQL=3DON + $(cmake-utils_use avahi OVIS_USE_AVAHI) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install +=09 + echo "LDPATH=3D\"/usr/$(get_libdir)/vtk\"" > "${DISTDIR}/etc/env.d/91ov= is" +} + +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!" +}