aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-10-07 11:55:31 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-10-07 11:55:48 -0700
commitb734a6418f3fd689fa24d2e5ad72725756295278 (patch)
treebeb12d749e8effdc125405527e8be66271a6c7e4
parentsrc/base.tera: update whitespace (diff)
downloadcargo-ebuild-b734a6418f3fd689fa24d2e5ad72725756295278.tar.gz
cargo-ebuild-b734a6418f3fd689fa24d2e5ad72725756295278.tar.bz2
cargo-ebuild-b734a6418f3fd689fa24d2e5ad72725756295278.zip
cargo-ebuild-template.tera: add template for bumps
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
-rw-r--r--cargo-ebuild-template.tera37
1 files changed, 37 insertions, 0 deletions
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 %}