diff options
author | Florian Schmaus <flow@gentoo.org> | 2021-12-12 10:24:37 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2021-12-12 10:46:29 +0100 |
commit | 4ab2af9616336aa40b8c824916e85f75d150f5d2 (patch) | |
tree | 674eb5573a07e657da8a4ba9a83e528fdce1a05d /net-analyzer/zabbix | |
parent | dev-python/xarray: Stabilize 0.20.1 amd64, #828970 (diff) | |
download | gentoo-4ab2af9616336aa40b8c824916e85f75d150f5d2.tar.gz gentoo-4ab2af9616336aa40b8c824916e85f75d150f5d2.tar.bz2 gentoo-4ab2af9616336aa40b8c824916e85f75d150f5d2.zip |
net-analyzer/zabbix: use GO_OPTIONAL from go-module eclass
This makes dev-lang/go an optional dependency.
Closes: https://bugs.gentoo.org/775779
Closes: https://github.com/gentoo/gentoo/pull/23261
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'net-analyzer/zabbix')
-rw-r--r-- | net-analyzer/zabbix/zabbix-5.0.18-r1.ebuild (renamed from net-analyzer/zabbix/zabbix-5.0.18.ebuild) | 12 | ||||
-rw-r--r-- | net-analyzer/zabbix/zabbix-5.4.8-r1.ebuild (renamed from net-analyzer/zabbix/zabbix-5.4.8.ebuild) | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/net-analyzer/zabbix/zabbix-5.0.18.ebuild b/net-analyzer/zabbix/zabbix-5.0.18-r1.ebuild index 0e9da3be9ad9..de4e218a3299 100644 --- a/net-analyzer/zabbix/zabbix-5.0.18.ebuild +++ b/net-analyzer/zabbix/zabbix-5.0.18-r1.ebuild @@ -3,6 +3,7 @@ EAPI=7 +GO_OPTIONAL="yes" # needed to make webapp-config dep optional WEBAPP_OPTIONAL="yes" inherit webapp java-pkg-opt-2 systemd tmpfiles toolchain-funcs go-module user-info @@ -312,6 +313,10 @@ DEPEND="${COMMON_DEPEND} " BDEPEND=" virtual/pkgconfig + agent2? ( + >=dev-lang/go-1.12 + app-arch/unzip + ) " # upstream tests fail for agent2 @@ -351,6 +356,13 @@ pkg_setup() { java-pkg-opt-2_pkg_setup } +src_unpack() { + default + if use agent2; then + go-module_src_unpack + fi +} + src_prepare() { default } diff --git a/net-analyzer/zabbix/zabbix-5.4.8.ebuild b/net-analyzer/zabbix/zabbix-5.4.8-r1.ebuild index 6a0d5e421042..6a6c91266493 100644 --- a/net-analyzer/zabbix/zabbix-5.4.8.ebuild +++ b/net-analyzer/zabbix/zabbix-5.4.8-r1.ebuild @@ -3,6 +3,7 @@ EAPI=7 +GO_OPTIONAL="yes" # needed to make webapp-config dep optional WEBAPP_OPTIONAL="yes" inherit webapp java-pkg-opt-2 systemd tmpfiles toolchain-funcs go-module user-info @@ -337,6 +338,10 @@ DEPEND="${COMMON_DEPEND} " BDEPEND=" virtual/pkgconfig + agent2? ( + >=dev-lang/go-1.12 + app-arch/unzip + ) " # upstream tests fail for agent2 @@ -376,6 +381,13 @@ pkg_setup() { java-pkg-opt-2_pkg_setup } +src_unpack() { + default + if use agent2; then + go-module_src_unpack + fi +} + src_prepare() { default } |