commit:     b734a6418f3fd689fa24d2e5ad72725756295278
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  7 18:55:31 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Oct  7 18:55:48 2021 +0000
URL:        https://gitweb.gentoo.org/proj/cargo-ebuild.git/commit/?id=b734a641

cargo-ebuild-template.tera: add template for bumps

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 cargo-ebuild-template.tera | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/cargo-ebuild-template.tera b/cargo-ebuild-template.tera
new file mode 100644
index 0000000..c10a25b
--- /dev/null
+++ b/cargo-ebuild-template.tera
@@ -0,0 +1,37 @@
+{% extends "base.tera" %}
+{%- block header -%}
+# Copyright 2017-{{ this_year }} Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Auto-Generated by cargo-ebuild {{ cargo_ebuild_ver }}
+{% 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
+       $(cargo_crate_uris)"{%- endraw %}{%- endblock %}
+KEYWORDS={% block keyword -%}"~amd64 ~arm64 ~ppc64"{%- endblock %}
+
+{% block variables %}
+DEPEND="
+       dev-libs/libgit2:=
+       dev-libs/openssl:0=
+       net-libs/libssh2:=
+"
+
+RDEPEND="${DEPEND}"
+
+QA_FLAGS_IGNORED="usr/bin/cargo-ebuild"
+{% endblock %}
+
+{% block phases %}
+src_configure() {
+       export LIBGIT2_SYS_USE_PKG_CONFIG=1 LIBSSH2_SYS_USE_PKG_CONFIG=1 
PKG_CONFIG_ALLOW_CROSS=1
+       cargo_src_configure
+}
+
+src_install() {
+       cargo_src_install
+       einstalldocs
+}
+{% endblock %}

Reply via email to