Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/tango/
Date: Mon, 19 Nov 2018 08:45:04
Message-Id: 1542617074.bcb18261421302ea1b2e5212ce5d3460a74320d4.alexxy@gentoo
1 commit: bcb18261421302ea1b2e5212ce5d3460a74320d4
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 19 08:44:08 2018 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 19 08:44:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcb18261
7
8 sci-misc/tango: Initial version of tango
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.12
11 Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org>
12
13 sci-misc/tango/Manifest | 1 +
14 sci-misc/tango/metadata.xml | 23 ++++++++++++++++++++
15 sci-misc/tango/tango-9.2.5a.ebuild | 44 ++++++++++++++++++++++++++++++++++++++
16 3 files changed, 68 insertions(+)
17
18 diff --git a/sci-misc/tango/Manifest b/sci-misc/tango/Manifest
19 new file mode 100644
20 index 00000000000..8641be21216
21 --- /dev/null
22 +++ b/sci-misc/tango/Manifest
23 @@ -0,0 +1 @@
24 +DIST tango-9.2.5a.tar.gz 65888551 BLAKE2B 73ac78c4cce5f98bff108ae01d669d7654f8d11d1fcc5621b4268511c713f5ed6087c268a6d4c620e4aa41692ecd96f9676a48038c036cb0896c2acd007a3e3a SHA512 f372ea8b261d345fac5dbd198b1d5f28ff346796ba91191e752cea5b9fb9155b43bfada89032c29a51fa9b4f5e3a4f16d1b1ca9e73530dc7f60eb10103531d3e
25
26 diff --git a/sci-misc/tango/metadata.xml b/sci-misc/tango/metadata.xml
27 new file mode 100644
28 index 00000000000..5e6d8ba6b6a
29 --- /dev/null
30 +++ b/sci-misc/tango/metadata.xml
31 @@ -0,0 +1,23 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="project">
36 + <email>sci@g.o</email>
37 + <name>Gentoo Science Project</name>
38 + </maintainer>
39 + <maintainer type="person">
40 + <email>alexxy@g.o</email>
41 + <name>Alexey Shvetsov</name>
42 + </maintainer>
43 + <longdescription lang="en">
44 + Tango is an Open Source solution for SCADA and DCS. Open Source means you get all the source code under an Open Source free licence (LGPL and GPL). Supervisory Control and Data Acquisition (SCADA) systems are typically industrial type systems using standard hardware. Distributed Control Systems (DCS) are more flexible control systems used in more complex environments.
45 + </longdescription>
46 + <upstream>
47 + <remote-id type="sourceforge">tango-cs</remote-id>
48 + </upstream>
49 + <use>
50 + <flag name="dbserver">Enable build of tango dbserver</flag>
51 + <flag name="mariadb">Use <pkg>dev-db/mariadb</pkg></flag>
52 + <flag name="zeromq">Allow to use ZeroMQ broker via <pkg>net-libs/zeromq</pkg></flag>
53 + </use>
54 +</pkgmetadata>
55
56 diff --git a/sci-misc/tango/tango-9.2.5a.ebuild b/sci-misc/tango/tango-9.2.5a.ebuild
57 new file mode 100644
58 index 00000000000..2b88352a450
59 --- /dev/null
60 +++ b/sci-misc/tango/tango-9.2.5a.ebuild
61 @@ -0,0 +1,44 @@
62 +# Copyright 2018 Gentoo Authors
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=7
66 +
67 +DESCRIPTION="Tango is an Open Source solution for SCADA and DCS"
68 +HOMEPAGE="http://www.tango-controls.org/"
69 +SRC_URI="mirror://sourceforge/tango-cs/${P}.tar.gz"
70 +
71 +LICENSE="GPL-3"
72 +SLOT="0"
73 +KEYWORDS="~amd64 ~x86"
74 +IUSE="+dbserver java +mariadb +zeromq"
75 +
76 +DEPEND="
77 + net-misc/omniORB
78 + mariadb? ( dev-db/mariadb-connector-c )
79 + !mariadb? ( dev-db/mysql-connector-c )
80 + dbserver? (
81 + mariadb? ( dev-db/mariadb[server] )
82 + !mariadb? ( dev-db/mysql[server] )
83 + virtual/mysql[server] )
84 + java? ( virtual/jdk:* )
85 + zeromq? ( net-libs/zeromq )
86 +"
87 +RDEPEND="${DEPEND}"
88 +BDEPEND="${DEPEND}"
89 +
90 +src_configure() {
91 + local MYCONF
92 + if use mariadb; then
93 + MYCONF+=(
94 + $(use_enable mariadb)
95 + --with-mariadbclient-include="${EPREFIX}/usr/include/mysql"
96 + )
97 + fi
98 +
99 + econf \
100 + --with-omni="${EPREFIX}/usr" \
101 + $(use_enable zeromq zmq) \
102 + $(use_enable java) \
103 + $(use_enable dbserver) \
104 + ${MYCONF[@]}
105 +}