1 |
commit: b734a6418f3fd689fa24d2e5ad72725756295278 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 7 18:55:31 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 7 18:55:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/cargo-ebuild.git/commit/?id=b734a641 |
7 |
|
8 |
cargo-ebuild-template.tera: add template for bumps |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
cargo-ebuild-template.tera | 37 +++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 37 insertions(+) |
14 |
|
15 |
diff --git a/cargo-ebuild-template.tera b/cargo-ebuild-template.tera |
16 |
new file mode 100644 |
17 |
index 0000000..c10a25b |
18 |
--- /dev/null |
19 |
+++ b/cargo-ebuild-template.tera |
20 |
@@ -0,0 +1,37 @@ |
21 |
+{% extends "base.tera" %} |
22 |
+{%- block header -%} |
23 |
+# Copyright 2017-{{ this_year }} Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+# Auto-Generated by cargo-ebuild {{ cargo_ebuild_ver }} |
27 |
+{% endblock %} |
28 |
+ |
29 |
+{% set homepage = 'https://github.com/gentoo/cargo-ebuild' %} |
30 |
+HOMEPAGE={%- block homepage -%}"{{ homepage }}"{%- endblock %} |
31 |
+SRC_URI={%- block src_uri -%}{% raw -%}"https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2 |
32 |
+ $(cargo_crate_uris)"{%- endraw %}{%- endblock %} |
33 |
+KEYWORDS={% block keyword -%}"~amd64 ~arm64 ~ppc64"{%- endblock %} |
34 |
+ |
35 |
+{% block variables %} |
36 |
+DEPEND=" |
37 |
+ dev-libs/libgit2:= |
38 |
+ dev-libs/openssl:0= |
39 |
+ net-libs/libssh2:= |
40 |
+" |
41 |
+ |
42 |
+RDEPEND="${DEPEND}" |
43 |
+ |
44 |
+QA_FLAGS_IGNORED="usr/bin/cargo-ebuild" |
45 |
+{% endblock %} |
46 |
+ |
47 |
+{% block phases %} |
48 |
+src_configure() { |
49 |
+ export LIBGIT2_SYS_USE_PKG_CONFIG=1 LIBSSH2_SYS_USE_PKG_CONFIG=1 PKG_CONFIG_ALLOW_CROSS=1 |
50 |
+ cargo_src_configure |
51 |
+} |
52 |
+ |
53 |
+src_install() { |
54 |
+ cargo_src_install |
55 |
+ einstalldocs |
56 |
+} |
57 |
+{% endblock %} |