aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2022-11-08 11:50:25 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2022-11-08 11:50:25 -0800
commit049fcc7175c1d876b3bdcbe2f0bff8b605edd56c (patch)
treec5eab964edf2e4be3bda23bb18d72df66b1a0026
parentset dev version 0.5.3-dev (diff)
downloadcargo-ebuild-049fcc7175c1d876b3bdcbe2f0bff8b605edd56c.tar.gz
cargo-ebuild-049fcc7175c1d876b3bdcbe2f0bff8b605edd56c.tar.bz2
cargo-ebuild-049fcc7175c1d876b3bdcbe2f0bff8b605edd56c.zip
update tera template
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
-rw-r--r--cargo-ebuild-template.tera3
1 files changed, 3 insertions, 0 deletions
diff --git a/cargo-ebuild-template.tera b/cargo-ebuild-template.tera
index 029f38c..be605d1 100644
--- a/cargo-ebuild-template.tera
+++ b/cargo-ebuild-template.tera
@@ -6,6 +6,8 @@
# Auto-Generated by cargo-ebuild {{ cargo_ebuild_ver }}
{% endblock %}
+inherit {% block inherit -%}cargo flag-o-matic{%- endblock %}
+
{% set homepage = 'https://github.com/gentoo/cargo-ebuild' %}
HOMEPAGE={%- block homepage -%}"{{ homepage }}"{%- endblock %}
SRC_URI={%- block src_uri -%}{% raw -%}"https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2
@@ -28,6 +30,7 @@ QA_FLAGS_IGNORED="usr/bin/cargo-ebuild"
{% block phases %}
src_configure() {
+ filter-flags '-flto*' # https://bugs.gentoo.org/858332
export LIBGIT2_SYS_USE_PKG_CONFIG=1 LIBSSH2_SYS_USE_PKG_CONFIG=1 PKG_CONFIG_ALLOW_CROSS=1
cargo_src_configure
}