aboutsummaryrefslogtreecommitdiff
blob: 80837a3a95f8b666d92859a52a9f4f997c69eccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit cmake-utils eutils

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"

SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
IUSE="avahi"

RDEPEND="
	>=dev-db/mysql-5.0.77
	>=dev-libs/boost-1.44
	dev-libs/libevent
	>=dev-libs/qjson-0.7.1
	sys-libs/readline
	>=dev-qt/qthelp-4.7.4[compat]
	>=dev-qt/qtgui-4.7.4
	avahi? ( >=net-dns/avahi-0.6.27 )"
DEPEND="${RDEPEND}
	avahi? ( >=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\"" > "${T}/91ovis"
	doenvd  "${T}/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"
	echo ""
	elog "and perform the following operations:"
	elog "  CREATE DATABASE OVIS_Cluster;"
	elog "  GRANT ALL PRIVILEGES ON OVIS_Cluster.* TO ovis@localhost;"
	elog "  flush-privileges;"
	echo ""
	einfo "Remember to start the mysql server before using Ovis!"
}