[gnome-build-meta/abderrahim/mirrors: 7/9] add crates alias




commit 061f3d3bf2ec57544040ffdea861af8ded4f942e
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Wed Dec 22 10:32:38 2021 +0100

    add crates alias

 elements/core-deps/slirp-helper.bst | 2 +-
 elements/sdk/librsvg.bst            | 5 +++++
 include/aliases.yml                 | 1 +
 project.conf                        | 3 +++
 4 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/elements/core-deps/slirp-helper.bst b/elements/core-deps/slirp-helper.bst
index 224c2850e..de314cfe4 100644
--- a/elements/core-deps/slirp-helper.bst
+++ b/elements/core-deps/slirp-helper.bst
@@ -12,7 +12,7 @@ depends:
 
 sources:
 - kind: tar
-  url: https://static.crates.io/crates/libslirp/libslirp-4.3.0.crate
+  url: crates:crates/libslirp/libslirp-4.3.0.crate
 - kind: cargo
 - kind: patch
   path: files/slirp-helper/nix-riscv.patch
diff --git a/elements/sdk/librsvg.bst b/elements/sdk/librsvg.bst
index 499879e2a..445e0b57c 100644
--- a/elements/sdk/librsvg.bst
+++ b/elements/sdk/librsvg.bst
@@ -1,25 +1,30 @@
 kind: autotools
+
 sources:
 - kind: git_tag
   url: gnome:librsvg.git
   track: main
 - kind: cargo
+
 build-depends:
 - sdk/gobject-introspection.bst
 - sdk/gtk-doc.bst
 - sdk/vala.bst
 - freedesktop-sdk.bst:components/rust.bst
 - freedesktop-sdk.bst:public-stacks/buildsystem-autotools.bst
+
 depends:
 - sdk/gdk-pixbuf.bst
 - sdk/glib.bst
 - sdk/pango.bst
 - freedesktop-sdk.bst:components/cairo.bst
 - freedesktop-sdk.bst:bootstrap-import.bst
+
 variables:
   conf-local: >-
     --enable-gtk-doc
     --enable-vala
+
 public:
   bst:
     split-rules:
diff --git a/include/aliases.yml b/include/aliases.yml
index 83c2bcbd3..6c1a1fe1e 100644
--- a/include/aliases.yml
+++ b/include/aliases.yml
@@ -9,6 +9,7 @@
 aliases:
   # file aliases (e.g. tarballs)
   cairo: https://cairographics.org/
+  crates: https://static.crates.io/
   freedesktop_files: https://gitlab.freedesktop.org/
   ftp_gnu_org: https://ftp.gnu.org/gnu/
   github_files: https://github.com/
diff --git a/project.conf b/project.conf
index bc56f5993..b634b95a2 100644
--- a/project.conf
+++ b/project.conf
@@ -131,6 +131,9 @@ sources:
     config:
       checkout-submodules: false
       track-tags: false
+  cargo:
+    config:
+      url: crates:crates
 
 split-rules:
   devel:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]