blob: 5493a00e359ddda976d26cf0c8e0cb4433f7ecee (
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
|
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Tango is an Open Source solution for SCADA and DCS"
HOMEPAGE="https://www.tango-controls.org/"
SRC_URI="mirror://sourceforge/tango-cs/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+dbserver java +mariadb +zeromq"
DEPEND="
net-misc/omniORB
mariadb? ( dev-db/mariadb-connector-c )
!mariadb? ( dev-db/mysql-connector-c )
dbserver? (
mariadb? ( dev-db/mariadb:*[server] )
!mariadb? ( >=virtual/mysql-5.6[server] )
)
java? ( virtual/jdk:* )
zeromq? ( net-libs/zeromq )
"
RDEPEND="${DEPEND}"
BDEPEND="${DEPEND}"
src_configure() {
local MYCONF
if use mariadb; then
MYCONF+=(
$(use_enable mariadb)
--with-mariadbclient-include="${EPREFIX}/usr/include/mysql"
)
fi
econf \
--with-omni="${EPREFIX}/usr" \
$(use_enable zeromq zmq) \
$(use_enable java) \
$(use_enable dbserver) \
${MYCONF[@]}
}
|