From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3427415838C for ; Thu, 18 Jan 2024 14:21:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54B7FE2A40; Thu, 18 Jan 2024 14:21:26 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 378E9E2A40 for ; Thu, 18 Jan 2024 14:21:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 06C673430B8 for ; Thu, 18 Jan 2024 14:21:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A96313AA for ; Thu, 18 Jan 2024 14:21:23 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1705587677.593d033f6b1af46842a0513e1c053516de69c01e.flow@gentoo> Subject: [gentoo-commits] proj/tex-overlay:main commit in: eclass/ X-VCS-Repository: proj/tex-overlay X-VCS-Files: eclass/texlive-common.eclass X-VCS-Directories: eclass/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 593d033f6b1af46842a0513e1c053516de69c01e X-VCS-Branch: main Date: Thu, 18 Jan 2024 14:21:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c90d8df2-7d26-4c45-8ab7-73a8fc355c1d X-Archives-Hash: 2228009965c382766aaf0267a6616536 commit: 593d033f6b1af46842a0513e1c053516de69c01e Author: Florian Schmaus gentoo org> AuthorDate: Thu Jan 18 14:21:17 2024 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Thu Jan 18 14:21:17 2024 +0000 URL: https://gitweb.gentoo.org/proj/tex-overlay.git/commit/?id=593d033f texlive-common.eclass: add CTAN_MIRROR_URL eclass variable Signed-off-by: Florian Schmaus gentoo.org> eclass/texlive-common.eclass | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass index 55f3f8d..fab6ff6 100644 --- a/eclass/texlive-common.eclass +++ b/eclass/texlive-common.eclass @@ -25,6 +25,21 @@ esac if [[ -z ${_TEXLIVE_COMMON_ECLASS} ]]; then _TEXLIVE_COMMON_ECLASS=1 +# @ECLASS_VARIABLE: CTAN_MIRROR_URL +# @USER_VARIABLE +# @DESCRIPTION: +# This variable can be used to set the CTAN mirror that will be used to fetch +# CTAN artifacts. Note that this mirror is usually only used as fallback +# in case the Gentoo mirrors do not hold the requested files. +# +# Only Gentoo TeX developers may want to set this. +# +# Example: +# @CODE +# CTAN_MIRROR_URL='https://ftp.fau.de/ctan/' emerge -1v app-text/texlive-core +# @CODE +: "${CTAN_MIRROR_URL:="https://mirrors.ctan.org"}" + # @FUNCTION: texlive-common_handle_config_files # @DESCRIPTION: # Has to be called in src_install after having installed the files in ${D} @@ -218,7 +233,7 @@ texlive-common_append_to_src_uri() { done else local texlive_ge_2023_devs=( flow ) - local tl_mirror="https://mirrors.ctan.org/systems/texlive/tlnet/archive/" + local tl_mirror="${CTAN_MIRROR_URL%/}/systems/texlive/tlnet/archive/" tl_uri=( "${tl_uri[@]/%/.${tl_pkgext}}" ) SRC_URI+=" ${tl_uri[*]/#/${tl_mirror}}"