From 209c13038e215a2b06bc9026e124446e5ec4421c Mon Sep 17 00:00:00 2001
From: "Takumi.Matsunobu" <Takumi.Matsunobu@physik.uni-muenchen.de>
Date: Fri, 18 Aug 2023 14:13:33 +0200
Subject: [PATCH] Update icon-nwp package.py for the latest dkrz mirror

---
 spack_repo/packages/icon-nwp/package.py | 27 +++++++++++--------------
 1 file changed, 12 insertions(+), 15 deletions(-)

diff --git a/spack_repo/packages/icon-nwp/package.py b/spack_repo/packages/icon-nwp/package.py
index 6b0b40f..95de07b 100644
--- a/spack_repo/packages/icon-nwp/package.py
+++ b/spack_repo/packages/icon-nwp/package.py
@@ -112,27 +112,24 @@ class IconNwp(Package):
         """
         git_submodules_file = Path().cwd() / ".gitmodules"
 
-        git_mirror = "git@gitlab.lrz.de:dkrz-mirror"
+        git_mirror = "https://gitlab.dkrz.de"
 
         git_modules_patch = f"""
         [submodule "externals/mtime"]
                 path = externals/mtime
-                url = {git_mirror}/libmtime.git
+                url = {git_mirror}/icon-libraries/libmtime.git
         [submodule "externals/jsbach"]
                 path = externals/jsbach
-                url = {git_mirror}/jsbach.git
+                url = {git_mirror}/jsbach/jsbach.git
         [submodule "externals/yac"]
                 path = externals/yac
-                url = {git_mirror}/YAC.git
-        [submodule "externals/self"]
-                path = externals/self
-                url = {git_mirror}/libself.git
+                url = {git_mirror}/dkrz-sw/YAC.git
         [submodule "externals/tixi"]
                 path = externals/tixi
-                url = {git_mirror}/libtixi.git
+                url = {git_mirror}/icon-libraries/libtixi.git
         [submodule "externals/yaxt"]
                 path = externals/yaxt
-                url = {git_mirror}/yaxt.git
+                url = {git_mirror}/dkrz-sw/yaxt.git
         [submodule "externals/rte-rrtmgp"]
                 path = externals/rte-rrtmgp
                 url = https://github.com/earth-system-radiation/rte-rrtmgp.git
@@ -144,25 +141,25 @@ class IconNwp(Package):
                 url = https://github.com/claw-project/omni-xmod-pool.git
         [submodule "externals/cdi"]
                 path = externals/cdi
-                url = {git_mirror}/libcdi.git
+                url = {git_mirror}/mpim-sw/libcdi.git
         [submodule "externals/sct"]
                 path = externals/sct
-                url = {git_mirror}/sct.git
+                url = {git_mirror}/dkrz-sw/sct.git
         [submodule "externals/ecrad"]
                 path = externals/ecrad
-                url = {git_mirror}/libecrad.git
+                url = {git_mirror}/dwd-sw/libecrad.git
         [submodule "externals/dace_icon"]
                 path = externals/dace_icon
-                url = {git_mirror}/dace-icon-interface.git
+                url = {git_mirror}/dwd-sw/dace-icon-interface.git
         [submodule "externals/emvorado"]
                 path = externals/emvorado
-                url = {git_mirror}/emvorado-for-icon.git
+                url = {git_mirror}/dwd-sw/emvorado-for-icon.git
         [submodule "utils/mkexp"]
                 path = utils/mkexp
                 url = https://git.mpimet.mpg.de/public/mkexp
         [submodule "externals/art"]
                 path = externals/art
-                url = {git_mirror}/art.git
+                url = {git_mirror}/art/art.git
         [submodule "externals/ppm"]
                 path = externals/ppm
                 url = https://gitlab.dkrz.de/jahns/ppm.git
-- 
GitLab